Canvas
--color-bgColor-default
Page background
20 official semantic tokens
20 colors
Primer, GitHub’s design system, structures color as functional primitives: canvas, foreground, border, and accent. Each splits into default, muted, and emphasis roles.
Reference CSS variables like --fgColor-default or --bgColor-accent-emphasis. Primer’s primitives keep meaning stable across light and dark themes.
--color-bgColor-default
Page background
--color-bgColor-inset
Recessed wells and code blocks
--color-bgColor-neutral-muted
Muted section background
--color-fgColor-default
Default text
--color-fgColor-muted
Secondary text
--color-fgColor-disabled
Placeholder text
--color-fgColor-onEmphasis
Text on emphasis backgrounds
--color-bgColor-accent-emphasis
Links, selected nav items
--color-fgColor-accent
Link text color
--color-bgColor-accent-muted
Hover states and inline backgrounds
--color-bgColor-success-emphasis
Open states and confirm buttons
--color-bgColor-attention-emphasis
Caution highlights
--color-bgColor-severe-emphasis
Urgent warnings
--color-bgColor-danger-emphasis
Closed states and destructive actions
--color-bgColor-done-emphasis
Merged / complete states
--color-bgColor-sponsors-emphasis
Sponsor hearts and buttons
--color-bgColor-neutral-emphasis
Gray buttons and counters
--color-border-default
Primary borders
--color-border-muted
Secondary borders
--color-border-emphasis
Strong contrast borders
No matching colors
Source: Primer · @primer/primitives 11.10.0 light