/light-dark-theme-demo

demo for CSS prefers-color-scheme brownbag for @englishcentral

Primary LanguageJavaScriptMIT LicenseMIT

Light / Dark Theme Demo

demo for implementing Light/Dark theme using CSS prefers-color-scheme or JS

made as a brown bag topic for for @englishcentral

view the project in action here: https://jetfontanilla.github.io/light-dark-theme-demo/

CLI Commands

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# test the production build locally
npm run serve

# run tests with jest and enzyme
npm run test

For detailed explanation on how things work, checkout the CLI Readme.

Preact