Colors
Explore semantic color roles and primitive palettes for light and dark product surfaces.
Color starts with intent. Zenos components use semantic roles for surfaces, content, structure, and feedback, while primitive ramps provide the building blocks for a custom theme.
Semantic roles
Section titled “Semantic roles”Use the role that describes the job a color performs, rather than the color it happens to render. Every swatch below uses the active theme value, so the same role adapts when you switch between light and dark mode.
Surfaces
Surface roles establish depth without tying a component to a fixed light or dark value.
Backgrounds & surfaces
-
bg-background-default--background-default Page and application canvas -
bg-sidebar--sidebar Side navigation, header, and content surfaces -
bg-background-neutral-card--background-neutral-card Cards and raised content regions -
bg-background-neutral-default--background-neutral-default Grouped and secondary content -
bg-background-muted--background-muted Quiet or disabled regions -
bg-background-input-default--background-input-default Inputs and editable controls -
bg-background-neutral-subtle-default--background-neutral-subtle-default Low-emphasis fills -
bg-background-neutral-bold-default--background-neutral-bold-default High-emphasis neutral fills -
bg-background-contrary-subtle-default--background-contrary-subtle-default Subtle surface on an inverse canvas
Content
Foreground roles create a readable hierarchy and keep text and icons legible as surfaces change.
Text & foreground
-
text-text-default--text-default Primary text and headings -
text-text-subtle--text-subtle Supporting copy and descriptions -
text-text-subtlest--text-subtlest Metadata and low-emphasis labels -
text-text-contrary--text-contrary Text on strong or inverse fills -
text-text-muted--text-muted Unavailable and disabled text -
text-text-selected--text-selected Selected text and active values -
text-text-brand--text-brand Branded emphasis -
text-link-default--link-default Inline and navigational links
Icons
-
text-icon-default--icon-default Primary interface icons -
text-icon-subtle--icon-subtle Supporting icons -
text-icon-subtlest--icon-subtlest Decorative and quiet icons -
text-icon-contrary--icon-contrary Icons on strong or inverse fills -
text-icon-muted--icon-muted Unavailable and disabled icons -
text-icon-brand--icon-brand Branded icon emphasis
Structure
Borders separate regions and communicate focus or selection without introducing another surface.
Borders & focus
-
border-border-default--border-default Dividers and component outlines -
border-border-muted--border-muted Quiet structural boundaries -
border-border-input--border-input Form control outlines -
border-border-bold--border-bold High-emphasis boundaries -
border-border-focused--border-focused Keyboard focus indicators -
border-border-selected--border-selected Selected controls and regions -
border-border-brand--border-brand Brand-accented boundaries -
border-border-contrary--border-contrary Boundaries on inverse surfaces
Feedback
Intent roles pair surfaces and foregrounds so status remains consistent across components.
Status surfaces
-
bg-background-danger-subtler-default--background-danger-subtler-default Errors and destructive warnings -
bg-background-warning-subtler-default--background-warning-subtler-default Caution and attention -
bg-background-information-subtler-default--background-information-subtler-default Informational guidance -
bg-background-success-subtler-default--background-success-subtler-default Success and completion
Status foregrounds
-
text-text-danger-default--text-danger-default Error and destructive content -
text-text-warning-default--text-warning-default Warning content -
text-text-information-default--text-information-default Informational content -
text-text-success-default--text-success-default Success content -
text-icon-danger--icon-danger Error and destructive icons -
text-icon-warning--icon-warning Warning icons -
text-icon-information--icon-information Informational icons -
text-icon-success--icon-success Success icons
Interaction & depth
State overlays, covers, elevation surfaces, and loading fills describe temporary UI changes.
Interaction layers
-
bg-interaction-hovered--interaction-hovered Hover feedback over any surface -
bg-interaction-pressed--interaction-pressed Pressed feedback over any surface -
bg-cover-default--cover-default Neutral scrims and image covers -
bg-cover-selected--cover-selected Selected-region covers -
bg-cover-danger--cover-danger Destructive-action covers -
bg-skeleton-default--skeleton-default Primary loading placeholders -
bg-skeleton-subtle--skeleton-subtle Quiet loading placeholders
Elevation surfaces
-
bg-elevation-surface-sunken-default--elevation-surface-sunken-default Recessed regions -
bg-elevation-surface-default--elevation-surface-default Base component surfaces -
bg-elevation-surface-container-default--elevation-surface-container-default Grouped content containers -
bg-elevation-surface-raised-default--elevation-surface-raised-default Floating controls and panels -
bg-elevation-surface-overlay-default--elevation-surface-overlay-default Menus, dialogs, and overlays
Data visualization
Chart roles provide categorical and semantic series colors with dedicated interactive states.
Chart series
-
bg-chart-brand-default--chart-brand-default Primary or highlighted series -
bg-chart-neutral-default--chart-neutral-default Neutral comparison series -
bg-chart-danger-default--chart-danger-default Negative or critical values -
bg-chart-warning-default--chart-warning-default Values requiring attention -
bg-chart-information-default--chart-information-default Informational values -
bg-chart-success-default--chart-success-default Positive or completed values -
bg-chart-visited-default--chart-visited-default Previously viewed values -
bg-chart-blue-bolder-default--chart-blue-bolder-default Categorical series color
The list focuses on the roles used most often in product interfaces. The public @zentara-co/zenos-ui/colors.css stylesheet also includes the complete accent ramps, interaction states, and chart permutations for specialist cases.
Add package CSS imports to your global index.css: use @zentara-co/zenos-ui/tailwind.css after tailwindcss for Tailwind v4, @zentara-co/zenos-ui/styles.css without Tailwind, or @zentara-co/zenos-ui/colors.css when you only need the color tokens. Reference semantic variables in application styles:
.product-card { background: var(--background-neutral-card); color: var(--text-default); border: 1px solid var(--border-default);} .product-card__description { color: var(--text-subtle);} .product-card__error { background: var(--background-danger-subtlest-default); color: var(--text-danger-default); border-color: var(--border-danger-subtle);}Tailwind consumers can use the corresponding semantic utilities, such as bg-background-neutral-card, text-text-default, and border-border-default. The --color-* aliases connect these utilities to the same mode-aware semantic variables.
Set data-theme="light" or data-theme="dark" on a theme container to choose a mode explicitly. The .dark class also enables dark mode; without an explicit mode, the stylesheet follows the system preference.
Primitive palettes
Section titled “Primitive palettes”Primitive ramps are mode-independent building blocks for themes, data visualizations, and application-specific color roles. Each ramp is available as a CSS variable and a Tailwind color utility. Hover or focus a swatch to inspect its token name. The palette scrolls horizontally on narrow screens.
--color-neutral-0 --color-neutral-50 --color-neutral-100 --color-neutral-200 --color-neutral-300 --color-neutral-400 --color-neutral-500 --color-neutral-600 --color-neutral-700 --color-neutral-800 --color-neutral-900 --color-neutral-1000 --color-dark-neutral-0 --color-dark-neutral-50 --color-dark-neutral-100 --color-dark-neutral-200 --color-dark-neutral-300 --color-dark-neutral-400 --color-dark-neutral-500 --color-dark-neutral-600 --color-dark-neutral-700 --color-dark-neutral-800 --color-dark-neutral-900 --color-dark-neutral-1000 --color-red-0 --color-red-50 --color-red-100 --color-red-200 --color-red-300 --color-red-400 --color-red-500 --color-red-600 --color-red-700 --color-red-800 --color-red-900 --color-red-1000 --color-orange-0 --color-orange-50 --color-orange-100 --color-orange-200 --color-orange-300 --color-orange-400 --color-orange-500 --color-orange-600 --color-orange-700 --color-orange-800 --color-orange-900 --color-orange-1000 --color-yellow-0 --color-yellow-50 --color-yellow-100 --color-yellow-200 --color-yellow-300 --color-yellow-400 --color-yellow-500 --color-yellow-600 --color-yellow-700 --color-yellow-800 --color-yellow-900 --color-yellow-1000 --color-lime-0 --color-lime-50 --color-lime-100 --color-lime-200 --color-lime-300 --color-lime-400 --color-lime-500 --color-lime-600 --color-lime-700 --color-lime-800 --color-lime-900 --color-lime-1000 --color-green-0 --color-green-50 --color-green-100 --color-green-200 --color-green-300 --color-green-400 --color-green-500 --color-green-600 --color-green-700 --color-green-800 --color-green-900 --color-green-1000 --color-teal-0 --color-teal-50 --color-teal-100 --color-teal-200 --color-teal-300 --color-teal-400 --color-teal-500 --color-teal-600 --color-teal-700 --color-teal-800 --color-teal-900 --color-teal-1000 --color-cyan-0 --color-cyan-50 --color-cyan-100 --color-cyan-200 --color-cyan-300 --color-cyan-400 --color-cyan-500 --color-cyan-600 --color-cyan-700 --color-cyan-800 --color-cyan-900 --color-cyan-1000 --color-sky-0 --color-sky-50 --color-sky-100 --color-sky-200 --color-sky-300 --color-sky-400 --color-sky-500 --color-sky-600 --color-sky-700 --color-sky-800 --color-sky-900 --color-sky-1000 --color-blue-0 --color-blue-50 --color-blue-100 --color-blue-200 --color-blue-300 --color-blue-400 --color-blue-500 --color-blue-600 --color-blue-700 --color-blue-800 --color-blue-900 --color-blue-1000 --color-indigo-0 --color-indigo-50 --color-indigo-100 --color-indigo-200 --color-indigo-300 --color-indigo-400 --color-indigo-500 --color-indigo-600 --color-indigo-700 --color-indigo-800 --color-indigo-900 --color-indigo-1000 --color-purple-0 --color-purple-50 --color-purple-100 --color-purple-200 --color-purple-300 --color-purple-400 --color-purple-500 --color-purple-600 --color-purple-700 --color-purple-800 --color-purple-900 --color-purple-1000 --color-pink-0 --color-pink-50 --color-pink-100 --color-pink-200 --color-pink-300 --color-pink-400 --color-pink-500 --color-pink-600 --color-pink-700 --color-pink-800 --color-pink-900 --color-pink-1000 --color-gray-0 --color-gray-50 --color-gray-100 --color-gray-200 --color-gray-300 --color-gray-400 --color-gray-500 --color-gray-600 --color-gray-700 --color-gray-800 --color-gray-900 --color-gray-1000 Alpha palettes
Alpha primitives preserve the surrounding surface. The checker pattern makes opacity visible.
--color-neutral-alpha-0 --color-neutral-alpha-50 --color-neutral-alpha-100 --color-neutral-alpha-200 --color-neutral-alpha-300 --color-neutral-alpha-400 --color-neutral-alpha-500 --color-neutral-alpha-600 --color-neutral-alpha-700 --color-neutral-alpha-800 --color-neutral-alpha-900 --color-neutral-alpha-1000 --color-dark-neutral-alpha-0 --color-dark-neutral-alpha-50 --color-dark-neutral-alpha-100 --color-dark-neutral-alpha-200 --color-dark-neutral-alpha-300 --color-dark-neutral-alpha-400 --color-dark-neutral-alpha-500 --color-dark-neutral-alpha-600 --color-dark-neutral-alpha-700 --color-dark-neutral-alpha-800 --color-dark-neutral-alpha-900 --color-dark-neutral-alpha-1000 Zentara brand colors
Section titled “Zentara brand colors”—color-zentara-red—color-zentara-black—color-zentara-whitePrimitive values stay the same between light and dark mode. Theme authors map them to semantic roles whose values can change by mode.
Best practices
Section titled “Best practices”- Prefer semantic roles in components; reserve primitive ramps for theme definitions and application-specific color roles.
- Pair background, text, icon, and border tokens with matching intent and appropriate contrast. Strong fills may need a contrary foreground, including the dedicated warning-contrary roles.
- Use status colors only for their meaning, not as arbitrary decoration.
- Check contrast on the actual rendered surface in both modes, especially for alpha colors and low-emphasis text.
- Preserve focus indicators and communicate state with labels, icons, or patterns as well as color.
- Override semantic variables in a scoped theme rather than hardcoding light-mode colors in component styles.