Tints
Primary tints
The UI tokens built on the three primary colours. An alias points at the brand colour; a shade is its own value.
packages/ui/src/styles/tokens.css
- --nt-accentPrimary actions, links, focus ringshadcn: --primary, --accent-foreground, --ring#5156A46.5:1 on whiteAlias of the brand colour
- --nt-accent-hoverPrimary actions on hover#3F43888.8:1 on whiteShade, its own value
- --nt-accent-softSelected and highlighted backgroundsshadcn: --accent#DFE0F11.3:1 on whiteShade, its own value
- --nt-inkText and dark surfacesshadcn: --foreground, --card-foreground, --popover-foreground, --secondary-foreground#29324112.9:1 on whiteAlias of the brand colour
- --nt-ink-2Secondary text#4A51607.9:1 on whiteShade, its own value
- --nt-ink-3Meta text, muted foregroundshadcn: --muted-foreground#646A795.4:1 on whiteShade, its own value
- --nt-surfacePage background, panelsshadcn: --secondary, --muted#EBEBF51.1:1 on whiteAlias of the brand colour
- --nt-lineBorders and input outlinesshadcn: --border, --input#D8D8E61.4:1 on whiteShade, its own value
Secondary tints
States and supporting tones. Each state has a strong value for text or icons and a soft one for backgrounds.
packages/ui/src/styles/tokens.css
- --nt-okVerified, used, savings#436B695.9:1 on whiteAlias of the brand colour
- --nt-ok-softBackground of positive states#E1EAE81.2:1 on whiteShade, its own value
- --nt-highlightHighlights as a fill or graphic#F87C002.6:1 on whiteAlias of the brand colour
- --nt-warnWarning text (orange darkened)#A04E005.8:1 on whiteShade, its own value
- --nt-warn-softBackground of warnings#FEE9D31.1:1 on whiteShade, its own value
- --nt-badErrors, destructive actionsshadcn: --destructive#C32F2F5.5:1 on whiteAlias of the brand colour
- --nt-bad-softBackground of errors#FBEBEB1.1:1 on whiteShade, its own value
- --nt-violetData visualisation, decoration#9DA0C72.5:1 on whiteAlias of the brand colour
- --nt-grassData visualisation, categories#BAC4A31.8:1 on whiteAlias of the brand colour
White
White is not a brand colour in the guide; the UI uses it for cards and for text on the accent.
packages/ui/src/styles/tokens.css
- --nt-paperCards, popovers, inputsshadcn: --background, --card, --popover#FFFFFF1.0:1 on whitePlain white
- --nt-accent-inkText on primary actionsshadcn: --primary-foreground#FFFFFF1.0:1 on whitePlain white
Colour classes
Every colour class in the theme, with the tokens it resolves through and its uses in apps/web and packages/ui/src.
packages/ui/src/styles/globals.css
NewsTech tokens
- ink--nt-ink → --nt-anchors-aweigh#293241Not used
- ink-2--nt-ink-2#4A5160text 4
- ink-3--nt-ink-3#646A79text 2
- paper--nt-paper#FFFFFFbg 10 · ring 1
- surface--nt-surface → --nt-silver-phoenix#EBEBF5bg 6
- line--nt-line#D8D8E6border 16 · divide 5 · text 1
- accent-hover--nt-accent-hover#3F4388bg 1
- accent-soft--nt-accent-soft#DFE0F1bg 1
- ok--nt-ok → --nt-shady-palm#436B69text 1
- ok-soft--nt-ok-soft#E1EAE8bg 1
- warn--nt-warn#A04E00Not used
- warn-soft--nt-warn-soft#FEE9D3Not used
- bad--nt-bad → --nt-knockout#C32F2FNot used
- bad-soft--nt-bad-soft#FBEBEBNot used
- highlight--nt-highlight → --nt-orange#F87C00Not used
- violet--nt-violet → --nt-opulent-violet#9DA0C7Not used
- grass--nt-grass → --nt-quaking-grass#BAC4A3Not used
shadcn/ui semantic colours
- background--background → --nt-paper#FFFFFFbg 1
- foreground--foreground → --nt-ink → --nt-anchors-aweigh#293241text 7 · ring 2
- card--card → --nt-paper#FFFFFFbg 3
- card-foreground--card-foreground → --nt-ink → --nt-anchors-aweigh#293241text 2
- popover--popover → --nt-paper#FFFFFFbg 3
- popover-foreground--popover-foreground → --nt-ink → --nt-anchors-aweigh#293241text 1
- primary--primary → --nt-accent → --nt-purple-frenzy#5156A4bg 5 · text 3 · border 3
- primary-foreground--primary-foreground → --nt-accent-ink#FFFFFFtext 2
- secondary--secondary → --nt-surface → --nt-silver-phoenix#EBEBF5bg 2
- secondary-foreground--secondary-foreground → --nt-ink → --nt-anchors-aweigh#293241text 2
- muted--muted → --nt-surface → --nt-silver-phoenix#EBEBF5bg 4
- muted-foreground--muted-foreground → --nt-ink-3#646A79text 6 · placeholder 3
- accent--accent → --nt-accent-soft#DFE0F1bg 1
- accent-foreground--accent-foreground → --nt-accent → --nt-purple-frenzy#5156A4text 2
- destructive--destructive → --nt-bad → --nt-knockout#C32F2Fring 11 · border 10 · text 5 · bg 4
- border--border → --nt-line#D8D8E6bg 2 · border 1
- input--input → --nt-line#D8D8E6bg 7 · border 5
- ring--ring → --nt-accent → --nt-purple-frenzy#5156A4border 6 · ring 6
Used outside the theme
white 6 · current 3 · transparent 2 · [color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] 1
Radii
The corner radii next to the colours in the same token file.
packages/ui/src/styles/tokens.css
Corner scale
newThe corner radii of the new components, defined in brand-ui in whole pixels. Cards set their own radius (16 or 24px) through --card-radius.
packages/brand-ui/src/styles/theme.css