Canvas
--color-bgColor-default
Page background
20 jetons sémantiques officiels
20 couleurs
Primer, le design system de GitHub, structure la couleur en primitives fonctionnelles : canvas, foreground, border et accent. Chacune se divise en rôles default, muted et emphasis.
Référencez des variables CSS comme --fgColor-default ou --bgColor-accent-emphasis. Les primitives de Primer gardent le sens stable entre thèmes clair et sombre.
--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
Aucune couleur correspondante
Source: Primer · @primer/primitives 11.10.0 light