NicolasOmar / my-pets

A react-based web application for daily activity log of family pets.
https://my-pets-prod.netlify.app
MIT License
4 stars 0 forks source link

Add Dark Mode #25

Closed NicolasOmar closed 1 year ago

NicolasOmar commented 2 years ago

Objective

Add dark mode in the following contexts

To do so, I will need to investigate about possible alternatives which will need the lowest code maintenance, as well as a clean implementation.


Is blocked by: none


Tasks:

NicolasOmar commented 2 years ago

Articles which I will be basing my investigation for this implementations

NicolasOmar commented 2 years ago

Bulma has been installed from its npm package and reused with node-sass to create style files for storybook and the public app Scripts have been included in the PR.

Used article

NicolasOmar commented 2 years ago

Have in mind that update react-scripts from 4.0.X to 5 could arise some build errors related to JSON object deconstruction. The way to solve that is to make the same deconstruction but as a JS constant (the JSON reference must be imported as a const)

Used article

NicolasOmar commented 2 years ago

The best tutorial to implement Dark mode in storybook (based on my approach using prefers-color-scheme) is this long but carefully explained article