Color
Colour primitives, the semantic colour roles that alias them, and the contrast pairs the system allows.
Primitives
Raw values. Sites do not use these directly; they use the semantic tokens below, which alias them.
color.orange
| Token | CSS variable | Value | Description |
|---|---|---|---|
color.orange.500 | --ht-color-orange-500 | #FF6600 | Placeholder taken from the portfolio's code; replaced after the color session. |
color.orange.600 | --ht-color-orange-600 | #E55A00 | Placeholder taken from the portfolio's code; replaced after the color session. |
color.neutral
| Token | CSS variable | Value | Description |
|---|---|---|---|
color.neutral.0 | --ht-color-neutral-0 | #FFFFFF | Placeholder taken from the portfolio's code; replaced after the color session. |
color.neutral.100 | --ht-color-neutral-100 | #F0EFE8 | Placeholder taken from the portfolio's code; replaced after the color session. |
color.neutral.900 | --ht-color-neutral-900 | #1A1A1A | Placeholder taken from the portfolio's code; replaced after the color session. |
Semantic tokens
Purpose-named tokens. Pick one by its description. In CSS each one references its primitive, so the alias is visible in the browser's inspector.
| Token | CSS variable | Aliases | Value | When to use |
|---|---|---|---|---|
color.text.primary | --ht-color-text-primary | color.neutral.900 | #1A1A1A | Placeholder. Body text and headings on any surface. |
color.surface.page | --ht-color-surface-page | color.neutral.100 | #F0EFE8 | Placeholder. The page background. |
color.surface.raised | --ht-color-surface-raised | color.neutral.0 | #FFFFFF | Placeholder. Cards and panels that sit on the page. |
color.accent.default | --ht-color-accent-default | color.orange.500 | #FF6600 | Placeholder. Links, primary actions and emphasis. |
color.accent.hover | --ht-color-accent-hover | color.orange.600 | #E55A00 | Placeholder. The accent in its hover state. |
Contrast pairs
The text-on-background combinations the system allows, with their WCAG 2 contrast ratio. The build fails if any pair is below its minimum, so every pair listed here passes.
| Text | Background | Ratio | Minimum | Result |
|---|---|---|---|---|
color.text.primary | color.surface.page | 15.10:1 | 4.5:1 | Pass |
color.text.primary | color.surface.raised | 17.40:1 | 4.5:1 | Pass |
Not covered by a contrast pair
Semantic colours that no pair mentions. Do not set text on or in these until a pair exists.
- color.accent.default
- color.accent.hover