Colors
Colors in the Socra UI system.
Semantic roles
These @socra/theme roles are the normative contract. Each platform maps them through its adapter without changing their meaning.
Color, Surface, And Content
Renderer-agnostic brand, feedback, border, surface, content, and contrast roles. Color carries meaning, hierarchy, and state; it is never local decoration.
Brand primary
The primary brand action and emphasis for the active color mode.
Brand hover
The hover emphasis for a primary brand interaction.
Brand active
The pressed or active emphasis for a primary brand interaction.
On brand
Content that appears on the primary brand surface.
Brand accent
Supporting brand emphasis that does not compete with the primary action.
info foreground
Readable content for info feedback.
info background
Containing surface for info feedback.
info border
Boundary for info feedback.
success foreground
Readable content for success feedback.
success background
Containing surface for success feedback.
success border
Boundary for success feedback.
warning foreground
Readable content for warning feedback.
warning background
Containing surface for warning feedback.
warning border
Boundary for warning feedback.
danger foreground
Readable content for danger feedback.
danger background
Containing surface for danger feedback.
danger border
Boundary for danger feedback.
subtle border
subtle structural separation by semantic strength.
standard border
standard structural separation by semantic strength.
strong border
strong structural separation by semantic strength.
focus border
focus structural separation by semantic strength.
text contrast
Minimum contrast relationship for text.
largeText contrast
Minimum contrast relationship for largeText.
nonText contrast
Minimum contrast relationship for nonText.
canvas surface
The deepest application canvas.
base surface
The ordinary content surface.
inset surface
Content or controls visually set into a surface.
interactive surface
A surface that communicates direct interaction.
selected surface
A surface carrying current selection.
primary content
Essential labels, content, and decisions.
secondary content
Explanatory copy and supporting metadata.
muted content
Quiet enabled copy with reduced emphasis.
disabled content
Content for unavailable controls only.
inverse content
Content on an inverse surface.
link content
Navigational content.
Web adapter preview
This specimen resolves the same semantic roles through @socra/web-token. It is browser conformance evidence, not part of the cross-platform contract.
primary
hover
active
onPrimary
accent
ramp.faint
ramp.soft
ramp.strong
ramp.vivid
primary
secondary
muted
disabled
inverse
link
canvas
base
inset
interactive
selected
subtle
standard
strong
focus
info.foreground
info.background
info.border
success.foreground
success.background
success.border
warning.foreground
warning.background
warning.border
danger.foreground
danger.background
danger.border