Colors
Nuvex UI organizes color into semantic tokens for product meaning, surface tokens for structural context, and primitive palettes for tonal range. Use this page to choose the right layer, apply helper classes correctly, and reference the CSS variables behind each token family.
Background helpers
Background helpers such as .primary or .success apply background color with matching contrast treatment from the token system. Use them for fast prototyping, status emphasis, and simple UI states without custom CSS.
Text helpers
Use --text helpers when the surrounding surface should remain neutral but the content still needs semantic or tonal emphasis. These helpers affect text color, caret color, and SVG fill inheritance.
.primary--text for primary actions, .secondary--text for supporting information, .success--text for success feedback, .warning--text for warnings, .error--text for errors, and .info--text for informational states. When a design needs more tonal range, use primitive helpers such as .blue-500--text, .teal-600--text, .purple-400--text, and .neutral-700--text.Semantic colors
Use these tokens for actions, feedback, and status meanings that should remain consistent across the product.
primary
var(--e-color-primary)
secondary
var(--e-color-secondary)
tertiary
var(--e-color-tertiary)
success
var(--e-color-success)
warning
var(--e-color-warning)
error
var(--e-color-error)
info
var(--e-color-info)
Surface and utility tokens
Use these tokens for canvas, panels, fields, labels, borders, and disabled states so structural surfaces stay predictable across themes.
surface-canvas
var(--e-color-surface-canvas)
surface-base
var(--e-color-surface-base)
surface-raised
var(--e-color-surface-raised)
surface-subtle
var(--e-color-surface-subtle)
input
var(--e-color-input)
label
var(--e-color-label)
disabled
var(--e-color-disabled)
border
var(--e-color-border)
Primitive palettes
Use primitive palettes when a design needs additional tonal range beyond the semantic layer, whether through helper classes or direct CSS variable references.
red
pink
purple
indigo
blue
cyan
teal
green
lime
yellow
amber
orange
brown
neutral