Brand Examples
Two reference configs show a complete set of seeds for very different brands: a fast-food brand (red and
gold) and a fashion retailer (editorial black and champagne). They live in the repository under
packages/tokens/docs/examples/themes/ as fast-food.theme.json and fashion-retail.theme.json.Token Build
Color groups
Group | Keys | Role |
|---|---|---|
Brand | main, opposite, complementary | identity |
Contrast | baseDark, baseLight, deepDark, deepLight | the light/dark anchors |
Function | primary, secondary, tertiary | actions and hierarchy |
Response | success, information, warning, danger | feedback |
Scrolls sideways inside the table. The page does not.
The .dark, .light, .action and .active steps and the neutral and grayscale ramps are derived.
See Colors.
Fast food (abridged)
{
"brands": {
"fast-food": { "main": "#C8102E", "complementary": "#FFC72C", "primary": "#E31837", "baseLight": "#FFF8F0" }
},
"modes": ["light"],
"surfaces": ["positive"],
"dimensions": ["normal"],
"output": { "css": true, "json": true, "ts": true }
}The examples build a single variant. Widen modes, surfaces and dimensions to the full lists for all
twelve variants per brand.
Use a brand
- Static tokens — copy
brands.<name>into yourapollion.config.mjsand runyarn apollion-tokens build. See Build CLI. - React runtime — pass the same seeds to
ApollionProvider:
import { ApollionProvider } from '@apollion-dsi/core/themes';
<ApollionProvider colors={{ main: '#C8102E', complementary: '#FFC72C', primary: '#E31837' }}>
<App />
</ApollionProvider>;