Skip to documentation

Design system / Colors

CreativeXHub design system

Colors

Color primitives, OKLCH notation and the distinction between palette values and semantic roles.

Primitive palette

Color primitives define palette values in src/theming/primitives/colors.css. Semantic tokens assign those values to interface purposes. In components, prefer utilities such as bg-primary and text-text-muted over direct palette steps. The swatches resolve the declared CSS variables.

src/theming/primitives/colors.css
neutral · 12 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-neutral-0
oklch(1 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-50
oklch(0.985 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-100
oklch(0.97 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-200
oklch(0.922 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-300
oklch(0.87 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-400
oklch(0.708 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-500
oklch(0.556 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-600
oklch(0.439 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-700
oklch(0.371 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-800
oklch(0.269 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-900
oklch(0.205 0 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-950
oklch(0.145 0 0)

light

src/theming/primitives/colors.css
charcoal-canvas · 1 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-charcoal-canvas
oklch(0.225 0 0)

light

src/theming/primitives/colors.css
charcoal-raised · 1 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-charcoal-raised
oklch(0.27 0 0)

light

src/theming/primitives/colors.css
charcoal-sunken · 1 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-charcoal-sunken
oklch(0.205 0 0)

light

src/theming/primitives/colors.css
neutral-alpha · 5 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-neutral-alpha-0
oklch(1 0 0 / 0)

light

src/theming/primitives/colors.css
--cxh-color-neutral-alpha-50
oklch(1 0 0 / 0.05)

light

src/theming/primitives/colors.css
--cxh-color-neutral-alpha-100
oklch(1 0 0 / 0.1)

light

src/theming/primitives/colors.css
--cxh-color-neutral-alpha-150
oklch(1 0 0 / 0.15)

light

src/theming/primitives/colors.css
--cxh-color-neutral-alpha-200
oklch(1 0 0 / 0.2)

light

src/theming/primitives/colors.css
brand · 11 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-brand-50
oklch(0.985 0.005 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-100
oklch(0.97 0.01 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-200
oklch(0.922 0.02 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-300
oklch(0.87 0.04 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-400
oklch(0.708 0.1 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-500
oklch(0.556 0.14 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-600
oklch(0.439 0.16 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-700
oklch(0.371 0.15 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-800
oklch(0.269 0.12 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-900
oklch(0.205 0.08 255)

light

src/theming/primitives/colors.css
--cxh-color-brand-950
oklch(0.145 0.05 255)

light

src/theming/primitives/colors.css
red · 11 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-red-50
oklch(0.971 0.013 17.38)

light

src/theming/primitives/colors.css
--cxh-color-red-100
oklch(0.936 0.032 17.38)

light

src/theming/primitives/colors.css
--cxh-color-red-200
oklch(0.885 0.062 17.38)

light

src/theming/primitives/colors.css
--cxh-color-red-300
oklch(0.808 0.114 17.38)

light

src/theming/primitives/colors.css
--cxh-color-red-400
oklch(0.712 0.194 17.38)

light

src/theming/primitives/colors.css
--cxh-color-red-500
oklch(0.577 0.245 27.325)

light

src/theming/primitives/colors.css
--cxh-color-red-600
oklch(0.505 0.213 27.325)

light

src/theming/primitives/colors.css
--cxh-color-red-700
oklch(0.444 0.177 27.325)

light

src/theming/primitives/colors.css
--cxh-color-red-800
oklch(0.334 0.137 27.325)

light

src/theming/primitives/colors.css
--cxh-color-red-900
oklch(0.258 0.092 27.325)

light

src/theming/primitives/colors.css
--cxh-color-red-950
oklch(0.148 0.052 27.325)

light

src/theming/primitives/colors.css
green · 11 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-green-50
oklch(0.982 0.018 155.1)

light

src/theming/primitives/colors.css
--cxh-color-green-100
oklch(0.95 0.038 155.1)

light

src/theming/primitives/colors.css
--cxh-color-green-200
oklch(0.905 0.075 155.1)

light

src/theming/primitives/colors.css
--cxh-color-green-300
oklch(0.833 0.127 155.1)

light

src/theming/primitives/colors.css
--cxh-color-green-400
oklch(0.723 0.192 155.1)

light

src/theming/primitives/colors.css
--cxh-color-green-500
oklch(0.627 0.194 149.214)

light

src/theming/primitives/colors.css
--cxh-color-green-600
oklch(0.527 0.177 149.214)

light

src/theming/primitives/colors.css
--cxh-color-green-700
oklch(0.448 0.156 149.214)

light

src/theming/primitives/colors.css
--cxh-color-green-800
oklch(0.34 0.119 149.214)

light

src/theming/primitives/colors.css
--cxh-color-green-900
oklch(0.262 0.079 149.214)

light

src/theming/primitives/colors.css
--cxh-color-green-950
oklch(0.147 0.045 149.214)

light

src/theming/primitives/colors.css
amber · 11 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-amber-50
oklch(0.987 0.022 95.32)

light

src/theming/primitives/colors.css
--cxh-color-amber-100
oklch(0.962 0.044 95.32)

light

src/theming/primitives/colors.css
--cxh-color-amber-200
oklch(0.925 0.084 95.32)

light

src/theming/primitives/colors.css
--cxh-color-amber-300
oklch(0.879 0.135 95.32)

light

src/theming/primitives/colors.css
--cxh-color-amber-400
oklch(0.828 0.189 95.32)

light

src/theming/primitives/colors.css
--cxh-color-amber-500
oklch(0.681 0.162 75.834)

light

src/theming/primitives/colors.css
--cxh-color-amber-600
oklch(0.588 0.142 75.834)

light

src/theming/primitives/colors.css
--cxh-color-amber-700
oklch(0.5 0.119 75.834)

light

src/theming/primitives/colors.css
--cxh-color-amber-800
oklch(0.381 0.091 75.834)

light

src/theming/primitives/colors.css
--cxh-color-amber-900
oklch(0.291 0.061 75.834)

light

src/theming/primitives/colors.css
--cxh-color-amber-950
oklch(0.169 0.034 75.834)

light

src/theming/primitives/colors.css
blue · 11 tokens
Current token declarations from repository CSS. Swatches resolve the active documentation mode.
TokenDeclarationMode / source
--cxh-color-blue-50
oklch(0.977 0.017 259.8)

light

src/theming/primitives/colors.css
--cxh-color-blue-100
oklch(0.955 0.04 259.8)

light

src/theming/primitives/colors.css
--cxh-color-blue-200
oklch(0.901 0.083 259.8)

light

src/theming/primitives/colors.css
--cxh-color-blue-300
oklch(0.809 0.142 259.8)

light

src/theming/primitives/colors.css
--cxh-color-blue-400
oklch(0.707 0.165 259.8)

light

src/theming/primitives/colors.css
--cxh-color-blue-500
oklch(0.588 0.209 256.03)

light

src/theming/primitives/colors.css
--cxh-color-blue-600
oklch(0.488 0.186 256.03)

light

src/theming/primitives/colors.css
--cxh-color-blue-700
oklch(0.415 0.154 256.03)

light

src/theming/primitives/colors.css
--cxh-color-blue-800
oklch(0.318 0.119 256.03)

light

src/theming/primitives/colors.css
--cxh-color-blue-900
oklch(0.242 0.08 256.03)

light

src/theming/primitives/colors.css
--cxh-color-blue-950
oklch(0.139 0.046 256.03)

light

src/theming/primitives/colors.css

From a primitive to a component

/* Foundation */
--cxh-color-neutral-900: oklch(0.205 0 0);

/* Semantic role; inspect the current mapping below */
--primary: var(--cxh-color-neutral-900);

/* Component */
<Button variant="default">Continue</Button>

This snippet illustrates the dependency chain. Check the source for current light and dark mappings before changing a theme value.

src/theming/semantics/core.css
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.