Skip to content

vlrmprjct/reactjs-theme-switch-cssvars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Description

ReactJS Example switching css4-vars something like this:

:root {
   --background-primary: $color-eastbay;
   --text-primary:       $color-gray1;
}

Browser Support

To support IE11 we have to use the css-vars-ponyfill npm package.

Todo

  • add saving user settings, maybe use localstorage
  • add useful themenames instead numbers [Check feature/get-theme-by-name branch]
  • add (background)image handling
  • add errorhandling

Releases

No releases published

Packages

No packages published