Theme

Surfaces

Design tokens for backgrounds, text, and borders — the foundational layers of the Ontopix visual system.

Production

Surface tokens define the visual layering system. They control backgrounds, text colors, and borders across light and dark modes, driven from color_modes.yaml.

Background Tokens

Background surfaces create visual depth through layering. Each level provides a distinct contrast step.

bg-aside Special background tone for sidebars and possiblly some modals. Is very accented from default.

bg-default Default background. Soft and subtle, but there.

bg-muted Slight elevated, not capturing much attention.

bg-elevated Define clearly boundary from the surroundings and captures attention.

bg-accented Radical elevated. Use wisely.

bg-inverted The oposite of the normal background. Can't capture more attention.

TokenTailwind ClassDescription
--ui-bg-asidebg-asideSpecial background tone for sidebars and possiblly some modals. Is very accented from default.
--ui-bgbg-defaultDefault background. Soft and subtle, but there.
--ui-bg-mutedbg-mutedSlight elevated, not capturing much attention.
--ui-bg-elevatedbg-elevatedDefine clearly boundary from the surroundings and captures attention.
--ui-bg-accentedbg-accentedRadical elevated. Use wisely.
--ui-bg-invertedbg-invertedThe oposite of the normal background. Can't capture more attention.

Text Tokens

Text tokens ensure readable contrast across all surface levels.

text-dimmed Barely readable. Use to signal disabled or unimportant text.

text-muted Readable, but way less prominent than default text.

text-toned Second tier text tone, after normal text.

text-default Normal text. Use by default.

text-highlighted Slightly prominent than default. Should be use with bolder fonts.

text-inverted To use only with inverted background. This text have no contrast with normal background.

TokenTailwind ClassDescription
--ui-text-dimmedtext-dimmedBarely readable. Use to signal disabled or unimportant text.
--ui-text-mutedtext-mutedReadable, but way less prominent than default text.
--ui-text-tonedtext-tonedSecond tier text tone, after normal text.
--ui-texttext-defaultNormal text. Use by default.
--ui-text-highlightedtext-highlightedSlightly prominent than default. Should be use with bolder fonts.
--ui-text-invertedtext-invertedTo use only with inverted background. This text have no contrast with normal background.

Border Tokens

Border tokens provide visual separation between content areas.

border-default Default border. Subtle. Set the reference for the rest. Use commonly when needing border.

border-muted Like the default or very slightly pronounced.

border-accented This border is very accented. Use wisely.

border-inverted Radical border tone, inverted from the background. Use to catch all attention.

TokenTailwind ClassDescription
--ui-borderborder-defaultDefault border. Subtle. Set the reference for the rest. Use commonly when needing border.
--ui-border-mutedborder-mutedLike the default or very slightly pronounced.
--ui-border-accentedborder-accentedThis border is very accented. Use wisely.
--ui-border-invertedborder-invertedRadical border tone, inverted from the background. Use to catch all attention.

Layered Surfaces

Surfaces nest to create visual depth hierarchy. Each layer adds subtle contrast.

bg-default

bg-muted

bg-elevated

bg-accented

Cards on Surfaces

Cards adapt their appearance when placed on different background surfaces.

bg-default

Outline

Card on default surface.

Soft

Card on default surface.

Subtle

Card on default surface.

bg-muted

Outline

Card on muted surface.

Soft

Card on muted surface.

Subtle

Card on muted surface.

Inverted Surface

Inverted surfaces provide maximum contrast for hero sections, CTAs, or footer areas.

Inverted Hero Section

This surface uses bg-inverted and text-inverted tokens. Useful for hero sections, CTAs, or footer areas that need maximum contrast.