beatrizsmerino/vue-users

Create a dark/light switch theme with css variables

Closed this issue · 0 comments

Tasks:

  • Create a new component vue called SwitchTheme.
  • Create the structure as used in this repo: git-bible
    image
  • Places the SwitchTheme inside the PageHeader, to the right of the navigation menu.
    image
  • The SwitchTheme adds a css class is-theme-dark or is-theme-light to the html tag for overwrides the elements of the page.
    image
  • Overwrite the background-color, color and fill 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.

Designs

SwitchTheme component

is-theme-light

image

is-theme-dark

image

Pages is-theme-dark

Home

image

Users

image
image

User

image