molecules
Utility sample
One documented utility class, with its note, syntax, source file, and a grid of live swatches. The Decoration pages are built from it.
Specimens
Gel
Translucent colour plates.
gel · gel-<color> · styles/backgrounds/Gel.css
-
gel gel-primary -
gel gel-accent
{{ UtilitySample.render({
id: "gel-specimen",
name: "Gel",
note: "Translucent colour plates.",
syntax: "gel · gel-<color>",
file: "styles/backgrounds/Gel.css",
examples: ["gel gel-primary", "gel gel-accent"]
}) }}Params
| Param | Type | Description |
|---|---|---|
id | string | Suffix for the heading id (utility-<id>). Unique on the page. |
name | string | The heading text. |
level | number | Heading level, 2 to 6. Defaults to 2; use 3 when the sample sits under a page section. |
note | string | One paragraph on what the utility does. |
syntax | string | The class forms the utility takes. |
file | string | The stylesheet that defines it. |
examples | array | Class lists, one per swatch. Each is applied to a swatch and printed under it. |
Fixed design: takes no styling params. It sets its own spacing for the docs
ground, and the swatches draw on neutral-900.