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

TokenCSS variableValueDescription
color.orange.500--ht-color-orange-500#FF6600Placeholder taken from the portfolio's code; replaced after the color session.
color.orange.600--ht-color-orange-600#E55A00Placeholder taken from the portfolio's code; replaced after the color session.

color.neutral

TokenCSS variableValueDescription
color.neutral.0--ht-color-neutral-0#FFFFFFPlaceholder taken from the portfolio's code; replaced after the color session.
color.neutral.100--ht-color-neutral-100#F0EFE8Placeholder taken from the portfolio's code; replaced after the color session.
color.neutral.900--ht-color-neutral-900#1A1A1APlaceholder 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.

TokenCSS variableAliasesValueWhen to use
color.text.primary--ht-color-text-primarycolor.neutral.900#1A1A1APlaceholder. Body text and headings on any surface.
color.surface.page--ht-color-surface-pagecolor.neutral.100#F0EFE8Placeholder. The page background.
color.surface.raised--ht-color-surface-raisedcolor.neutral.0#FFFFFFPlaceholder. Cards and panels that sit on the page.
color.accent.default--ht-color-accent-defaultcolor.orange.500#FF6600Placeholder. Links, primary actions and emphasis.
color.accent.hover--ht-color-accent-hovercolor.orange.600#E55A00Placeholder. 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.

TextBackgroundRatioMinimumResult
color.text.primarycolor.surface.page15.10:14.5:1Pass
color.text.primarycolor.surface.raised17.40:14.5:1Pass

Not covered by a contrast pair

Semantic colours that no pair mentions. Do not set text on or in these until a pair exists.