Part of [Design system](https://docs.mapcairn.com/design.md), which is built from [DESIGN.md](https://github.com/MapCairn/mapcairn/blob/main/DESIGN.md) in the repository, where it is edited.

The few places that may hold raw values instead of tokens.

These surfaces hold raw values on purpose and are exempt from the harmony lint (`npm run lint:harmony`, `scripts/harmony`):

- the tokens file (`packages/theme/src/tokens.css.ts`, `tokenValues.ts` and the contrast code and tests)
- the map engine style file (`packages/adapter-maplibre/src/styles.css.ts`), the only place MapLibre selectors (`.maplibregl-*`) and raw engine z-index values may appear
- basemap definitions (`packages/core/src/basemaps`): committed basemap assets and map style definitions are data, and carry their own colours, such as a picker swatch
- the documentation site (`sites/docs`), which the scanner does not read (it walks `packages` and `examples`). Its stylesheet is generated from the exported tokens (`scripts/themeCss.ts`), and `themeCss.test.ts` and `customCss.test.ts` hold it to token references, with no colour literal and no `!important`. Its syntax colours are values in the tokens file (`tokenValues.syntaxPalette`), generated into custom properties, so the stylesheet still holds none
- tests, fixtures and test support
- `node_modules` and build output

Text baked into basemap tiles comes from the tile source and keeps its own typeface. The inline theme script in `packages/web/src/root.tsx` is a string, so no rule reads it. The scanner's header and `scripts/harmony/config.mjs` list the same surfaces.

One other list exists. `scripts/harmony/allowlist.mjs` holds one-off, justified exceptions (rule, file, snippet and reason), and a stale entry fails the lint. The one entry for the `logical-property` rule covers the loading bar's keyframes, which cannot carry a `:dir(rtl)` selector, so the sweep is written twice.
