DocsBlog

Get Started

Components

Data Grid

Signals

Styling

Theming

↑↓Navigate
↵Select
cmd + cCopy URL
EscClose
  • 1.9.0

  • Day

    Night

    Preview

    Switch mode
  • cerberus

    acheron

    elysium

    oceanus

Get Started
Components
Data Grid
Signals
Styling
Theming

Concepts

OverviewTokensSemantic TokensRecipesSlot Recipes

Design Tokens

AnimationsColorsGradientsSpacingShadowsFontZ-Index

Colors

A list of colors available in Cerberus.

View as Markdown
Open this page in Markdown
Anthropic
Open in Claude
Ask questions about this page
OpenAI
Open in ChatGPT
Ask questions about this page

Semantic Tokens

Cerberus provides a set of palettes that have an intentional purpose which contribtutes to the overall theme. This creates a clear, consistent color scheme that can be easily customized.

Warning

We recommend always using Semantic Tokens and not primtives for color values. Primitives will eventually become private and are static by nature (e.g., they have no context of the theme or color mode).

Naming Convention

Cerberus uses a naming convention for semantic tokens to ensure clarity and maintainability. Each color is named based on its purpose and context, making it easier to understand its intended use.

Semantic token naming convention:

[palette].[usage].[prominence?].[interaction?]
NameDescription
PaletteThe category/context of where the color is used.
UsageHow the color is used within the context.
ProminenceOptional.The hierarchy of the color used within the page context.
InteractionOptional. The element interaction type the color should be applied to.

Page

Used for pages, layouts, and any other container that is relative to a page.

page.bg.100{colors.neutral.80}#201935
page.bg.200{colors.neutral.70}#2d2246
page.bg.300{colors.neutral.60}#392e55
page.bg.initial{colors.brand.100}#130024
page.border.100{colors.neutral.60}#392e55
page.border.200{colors.neutral.50}#605579
page.border.initial{colors.neutral.70}#2d2246
page.surface.100{colors.neutral.90}#130a2a
page.surface.200{colors.neutral.80}#201935
page.surface.300{colors.neutral.70}#2d2246
page.surface.400{colors.neutral.60}#392e55
page.surface.initial{colors.neutral.100}#0c0420
page.surface.inverse{colors.neutral.5}#f9f9fb
page.text.100{colors.neutral.20}#dedce5
page.text.200{colors.neutral.10}#eeedf2
page.text.300{colors.neutral.white}#ffffff
page.text.initial{colors.brand.5}#fcfbfe
page.text.inverse{colors.neutral.100}#0c0420
page.text.static{colors.neutral.60}#392e55

Action

The primary palette for actions, such as buttons, links, and other interactive elements.

action.bg.initial{colors.brand.60}#5f00b5
action.bg.hover{colors.brand.50}#7f33c4
action.bg.active{colors.brand.70}#4c0091
action.border.100{colors.neutral.30}#a6a0b6
action.border.initial{colors.brand.30}#bb93e1
action.border.focus{colors.brand.40}#9f66d3
action.ghost.hover{colors.brand.80}#39006d
action.ghost.active{colors.brand.70}#4c0091
action.navigation.initial{colors.brand.30}#bb93e1
action.navigation.hover{colors.brand.20}#dfccf0
action.navigation.visited{colors.neutral.20}#dedce5
action.text.100{colors.brand.40}#9f66d3
action.text.200{colors.brand.30}#bb93e1
action.text.initial{colors.brand.5}#fcfbfe
action.text.inverse{colors.brand.5}#fcfbfe
action.text.static{colors.brand.60}#5f00b5

Secondary Action

The secondary palette for actions, such as buttons, links, and other interactive elements.

secondaryAction.bg.initial{colors.neutral.60}#392e55
secondaryAction.bg.hover{colors.neutral.50}#605579
secondaryAction.bg.active{colors.brand.30}#bb93e1
secondaryAction.border.100{colors.brand.70}#4c0091
secondaryAction.border.initial{colors.brand.50}#7f33c4
secondaryAction.ghost.hover{colors.neutral.80}#201935
secondaryAction.ghost.active{colors.neutral.80}#201935
secondaryAction.navigation.initial{colors.brand.10}#efe5f8
secondaryAction.navigation.hover{colors.brand.30}#bb93e1
secondaryAction.navigation.visited{colors.brand.20}#dfccf0
secondaryAction.text.100{colors.brand.10}#efe5f8
secondaryAction.text.200{colors.brand.30}#bb93e1
secondaryAction.text.initial{colors.brand.20}#dfccf0
secondaryAction.text.static{colors.brand.40}#9f66d3

Info

Used for informational elements, such as badges, tags, and other non-interactive elements.

info.border.100{colors.info.70}#026daa
info.border.initial{colors.info.50}#35a0dd
info.bg.initial{colors.info.70}#026daa
info.bg.hover{colors.info.90}#013655
info.bg.active{colors.info.50}#35a0dd
info.ghost.hover{colors.info.90}#013655
info.ghost.active{colors.info.80}#015280
info.surface.100{colors.info.90}#013655
info.surface.200{colors.info.70}#026daa
info.surface.initial{colors.info.80}#015280
info.text.100{colors.info.40}#67b8e6
info.text.200{colors.info.10}#e6f3fb
info.text.initial{colors.info.50}#35a0dd
info.text.static{colors.info.60}#0288d5

Success

Used for success states, such as success messages, notifications, and other positive feedback.

success.border.initial{colors.success.50}#41c16e
success.bg.initial{colors.success.50}#41c16e
success.bg.hover{colors.success.60}#12b24a
success.bg.active{colors.success.40}#71d192
success.ghost.hover{colors.success.90}#07471e
success.ghost.active{colors.success.80}#0b6b2c
success.surface.100{colors.success.90}#07471e
success.surface.200{colors.success.80}#0b6b2c
success.surface.initial{colors.success.60}#12b24a
success.text.100{colors.success.30}#a0e0b7
success.text.200{colors.success.10}#e8f8ed
success.text.initial{colors.success.60}#12b24a
success.text.inverse{colors.success.100}#04240f
success.text.static{colors.success.70}#0e8e3b

Warning

Used for warning states, such as warning messages, notifications, and other cautionary feedback.

warning.border.initial{colors.warning.20}#fcf6d1
warning.bg.initial{colors.warning.70}#c1a716
warning.bg.hover{colors.warning.60}#f1d11b
warning.bg.active{colors.warning.40}#f7e376
warning.ghost.hover{colors.warning.90}#60540b
warning.ghost.active{colors.warning.80}#917d10
warning.surface.100{colors.warning.90}#60540b
warning.surface.200{colors.warning.50}#f4da49
warning.surface.initial{colors.warning.70}#c1a716
warning.text.100{colors.warning.30}#f9eda4
warning.text.200{colors.warning.100}#302a05
warning.text.initial{colors.warning.40}#f7e376
warning.text.inverse{colors.warning.100}#302a05
warning.text.static{colors.warning.80}#917d10

Danger

Used for danger states, such as error messages, notifications, and other negative feedback.

danger.bg.initial{colors.danger.70}#d31d27
danger.bg.hover{colors.danger.50}#fc5e57
danger.bg.active{colors.danger.30}#fdafab
danger.border.initial{colors.danger.30}#fdafab
danger.ghost.hover{colors.danger.90}#641612
danger.ghost.active{colors.danger.80}#97201b
danger.surface.100{colors.danger.90}#641612
danger.surface.200{colors.danger.70}#d31d27
danger.surface.initial{colors.danger.80}#97201b
danger.text.100{colors.danger.20}#fed7d5
danger.text.200{colors.danger.10}#ffebea
danger.text.initial{colors.danger.60}#fb362d
danger.text.inverse{colors.danger.100}#320b09
danger.text.static{colors.danger.80}#97201b

Data-Visualization

Used for data visualization elements, such as charts, graphs, and other visual representations of data.

dataViz.diverging.50{colors.warning.60}#f1d11b
dataViz.diverging.100{colors.warning.50}#f4da49
dataViz.diverging.200{colors.warning.40}#f7e376
dataViz.diverging.300{colors.warning.30}#f9eda4
dataViz.diverging.400{colors.warning.20}#fcf6d1
dataViz.diverging.500{colors.neutral.10}#eeedf2
dataViz.diverging.600{colors.brand.30}#bb93e1
dataViz.diverging.700{colors.brand.40}#9f66d3
dataViz.diverging.800{colors.brand.50}#7f33c4
dataViz.diverging.900{colors.brand.60}#5f00b5
dataViz.sequential.100{colors.brand.80}#39006d
dataViz.sequential.200{colors.brand.60}#5f00b5
dataViz.sequential.300{colors.brand.50}#7f33c4
dataViz.sequential.400{colors.brand.40}#9f66d3
dataViz.sequential.500{colors.brand.20}#dfccf0
dataViz.sequential.600{colors.brand.10}#efe5f8
dataViz.qualitative.100{colors.brand.50}#7f33c4
dataViz.qualitative.200{colors.warning.60}#f1d11b
dataViz.qualitative.300{colors.success.60}#12b24a
dataViz.qualitative.400{colors.info.50}#35a0dd
dataViz.qualitative.500{colors.brand.30}#bb93e1
dataViz.qualitative.600{colors.accent.70}#3fb6b4
dataViz.qualitative.700{colors.neutral.40}#776f90
dataViz.progress.start{colors.brand.40}#9f66d3
dataViz.progress.end{colors.brand.70}#4c0091
dataViz.progress.complete{colors.success.60}#12b24a

Primitives

Cerberus provides a comprehensive set of primitive colors (theme.tokens.colors) that serve as the foundation for all semantic tokens. These are the raw color values that semantic tokens reference.

Primitive colors are organized by color families and include numerical scales (e.g., neutral.0 to neutral.100) that provide fine-grained control over color variations. These colors form the building blocks that semantic tokens reference to create meaningful, contextual color usage.

How Primitives Relate to Semantic Tokens:

  • Semantic tokens like page.bg.initial reference primitive colors using token syntax: {colors.cerberus.neutral.5}
  • This creates a clear hierarchy: primitives → semantic tokens → component usage
  • Customizing primitive colors automatically updates all semantic tokens that reference them

On this page

  • Semantic Tokens
    • Naming Convention
    • Page
    • Action
    • Secondary Action
    • Info
    • Success
    • Warning
    • Danger
    • Data-Visualization
  • Primitives
Edit this page on Github