Theming: css variables, globals & locals

Last updated


  • values are declared in $settings
  • custom properties are declared in :root {} in global css base
  • custom properties are used in global css, also in base
  • custom properties are used in local css, in components


  • explore uses cases of run-time themeing
    • user settings, local storage (will it FOUC?)
    • styling with overrides, locally in components


  • super involved, some scss cruft
  • it's a progressive enhancement, not fully polyfilled at the moment, but fallbacks are always provided

Read More

this meta was published and updated: under