--text-primary
Main body and default copy text.
Use for: body, headings by default
Value: supplied by your design.
Modern CSS toolset
Express emphasis, interaction, and status without coupling copy to a palette step. Check contrast against the actual background; a pairing describes intent, not a guarantee of accessibility.
.byline {
color: var(--text-secondary);
}
a {
color: var(--text-interactive);
}
a:hover {
color: var(--text-interactive-hover);
}
These examples show how to consume the tokens. Assign values before using them.
--text-primaryMain body and default copy text.
Use for: body, headings by default
Value: supplied by your design.
--text-secondarySupporting copy with less emphasis than primary.
Use for: subtitles, metadata, secondary labels
Value: supplied by your design.
--text-subtleQuietest text for hints, captions, and de-emphasized content.
Use for: captions, placeholder-adjacent hints
Value: supplied by your design.
--text-interactiveDefault color for text links and text-styled controls. Hover/active use text-interactive-hover and text-interactive-active.
Use for: links, text buttons
Value: supplied by your design.
--text-interactive-hoverHover state for interactive text.
Value: supplied by your design.
--text-interactive-activeActive/pressed state for interactive text.
Value: supplied by your design.
--text-brandText colored with the primary brand accent.
Value: supplied by your design.
--text-brand-secondaryText colored with a secondary brand accent.
Value: supplied by your design.
--text-successText for success messaging and status.
Value: supplied by your design.
--text-warningText for warning messaging and status.
Value: supplied by your design.
--text-dangerText for danger/error messaging and status.
Value: supplied by your design.
--text-infoText for informational messaging and status.
Value: supplied by your design.
--text-disabledText on disabled controls or unavailable actions.
Value: supplied by your design.
--text-inverseText intended for inverse or high-contrast surfaces.
Value: supplied by your design.