# Alloy CSS > One stylesheet for HTML a server renders: utilities, plus dialogs, menus, > drawers, tabs, tooltips and toasts that work with no JavaScript. MIT. > Version 1.0.13. Docs with live examples: https://alloyhtml.com/docs Link it in the : The examples use Google's Material Icons, which are not part of the kit: Dark mode, following the visitor's device (optional): A whole page built this way, to copy from: https://alloyhtml.com/example.html Alloy CSS is one stylesheet of utilities and parts (buttons, fields, dialogs, menus, tabs) for HTML a server renders. Every page you write with it must look like it belongs with the others, so you write with the kit's classes and values and nothing else. The reference below lists every class with examples. Read the topic you need before you write a part you haven't written in this project yet: a modal, a menu, tabs, a form field. ## Rules 1. **Only classes the kit defines.** Never invent one, and never bring Tailwind or Bootstrap names (`mt-4`, `btn`, `p-4`, `text-sm`). If no class does what you need, see rule 6. 2. **Only the kit's values.** Spacing is 0, 2, 4, 8, 12, 16, 20, 24, 32, 40, 48, 60, 80, 100, 120, 140 (px). Gaps and gutters are 0, 4, 8, 12, 16, 20, 24, 32, 40. Radius is 0, 4, 8, 12, 16, 20. Widths are percentages (`width-50`) or fractions (`width-1-3`). There is no `padding-15`. 3. **Semantic colours for the page, palette colours for meaning.** Surfaces are `bg-base` (the page), `bg-surface`, `bg-raised` (cards, dialogs), `bg-sunken`, `bg-inverse`. Text is `text-primary`, `text-secondary`, `text-muted`, `text-inverse`. Borders are `border-subtle`, `border-strong`. These follow the theme. The brand is `primary-1`; red, green, orange and the rest are for status. A tint is `-light-1`, text on a tint `-dark-1`. 4. **No JavaScript for interactions.** A modal is a `` opened with `commandfor` and `command="show-modal"`. A menu or drawer is a `popover`. An accordion is a `
`. Tabs are radio buttons. Look each one up in `reference.md` and copy its markup. 5. **Breakpoints go down.** A suffix applies at that width and below: `-lg` 1200px, `-md` 992px, `-sm` 768px, `-xs` 576px. Write the desktop class first, then the smaller ones: `width-50 width-100-sm`. Not every family has them; the reference says which. 6. **One-offs go inline.** A size or position the kit doesn't have (a 420px panel, a 3/4 image ratio) goes in a `style` attribute. A colour, radius, shadow or spacing never does: pick the nearest kit value. CSS of your own is only for what inline can't do (a media query, `:hover` on a child, `::before`), in the page's `