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
Principles
Eight commitments that settle design arguments before they start, each with the check that enforces it.
Colours
Role-based colour tokens that every one of the 63 themes fills in, with a live contrast table for whichever theme you have chosen.
Typographies
Font stacks that follow the reader’s language, the heading scale, line height, and the seven-step text size the reader controls.
Icons
One icon family drawn on one grid, the contract an icon must meet, and when words should do the job instead.
Layouts
Intrinsic sizing before breakpoints, a spacing scale, container queries, logical properties and reflow at 320 pixels.
Templates
Whole-page structures for content pages, dashboards and clinical workspaces, with working examples you can open.
How the styles fit together
- Tokens name roles, not values: a primary colour, a body font, a medium space.
- Themes give every token a value, and are plain CSS files you can read and fork.
- Components carry only a class hook such as
buttonorcard; a theme styles the hook. - 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.