Skip to content
#

css-variables

Here are 193 public repositories matching this topic...

Switzerland

🇨🇭Switzerland takes a functional approach to Web Components by applying middleware to your components. Supports Redux, attribute mutations, CSS variables, React-esque setState/state, etc… out-of-the-box, along with Shadow DOM for style encapsulation and Custom Elements for interoperability.

  • Updated Nov 18, 2020
  • JavaScript
josefaidt
josefaidt commented Nov 27, 2020

Support prefers-color-scheme with window.matchMedia() to determine user theme on first visit.

Current Behavior:

on visit, active theme choice is decided by

  1. local storage (if exists)
  2. fallback to first theme in themes array

Proposed Behavior:

on visit, active theme choice is decided by

  1. local storage (if exists)
  2. prefers-color-scheme choice (will be light or `

Improve this page

Add a description, image, and links to the css-variables topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the css-variables topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.