Create a dark/light switch theme with css variables
Closed this issue · 0 comments
beatrizsmerino commented
Tasks:
- Create a new component vue called
SwitchTheme
. - Create the structure as used in this repo: git-bible
- Places the
SwitchTheme
inside thePageHeader
, to the right of the navigation menu.
- The
SwitchTheme
adds a css classis-theme-dark
oris-theme-light
to thehtml
tag for overwrides the elements of the page.
- Overwrite the
background-color
,color
andfill
css properties for the dark mode, inside each component
Important
- For the colors use scss variables and scss functions as
mix($color-white, $color-brand-1, 90%)
. - When finished, execute the command
npm run lint
to format the code.