Styles

Lily ships components with no visual decisions in them. Everything you see on these pages comes from a theme: a set of tokens that any of 63 reference stylesheets, or your own, fills in. Change the theme with the picker in the header and every specimen below changes with it.

Six topics

How the styles fit together

  1. Tokens name roles, not values: a primary colour, a body font, a medium space.
  2. Themes give every token a value, and are plain CSS files you can read and fork.
  3. Components carry only a class hook such as button or card; a theme styles the hook.
  4. Your service adds a brand overlay of at most twenty declarations, never a fork.

Each topic page is a specimen sheet as well as guidance. The colours, type and spacing you see are read from the theme live, so what you check here is what your users get.