Storeware Docs
Theme reference

Tokens

The 12 values a theme may set under tokens, and the CSS custom property each becomes.

A token the table does not name is refused, and so is a value that is not the kind beside it. themeCss(tokens) writes the ones that pass as custom properties on :root.

TokenCSS propertyAccepts
bg--sw-bgA colour
surface--sw-surfaceA colour
fg--sw-fgA colour
muted--sw-mutedA colour
line--sw-lineA colour
accent--sw-accentA colour
accentFg--sw-accent-fgA colour
accent2--sw-accent2A colour
accent2Fg--sw-accent2-fgA colour
radius--sw-radiusA length
fontSans--sw-font-sansA font stack
fontMono--sw-font-monoA font stack