Comma Agents
@comma-agents/tuiTheme

Theme Tokens

The Theme token set — colors, spacing, typography, borders, separators, and breakpoints.

Theme Tokens

The Theme interface is a flat object of token categories. Each category groups related design values. Component theme hooks consume these tokens and transform them into Ink-style props.

ThemeColors

TokenDescription
primaryPrimary accent (headers, active elements)
secondarySecondary accent (descriptions, hints)
successSuccess state
warningWarning state
errorError state
mutedMuted/dim text
backgroundApp background color
backgroundLayerOneDepth background for first-layer widgets
backgroundLayerTwoDepth background for second-layer widgets
backgroundLayerThreeDepth background for third-layer widgets
surfaceElevated surface (input fields, modals, panels)
cursorCursor highlight color
scrollThumbScrollbar thumb (active region)
scrollTrackScrollbar track (inactive region)
userMessageUser message color
agentMessageAgent message color
systemMessageSystem message color
promptInput prompt color
waitingInputWaiting-for-input state

ThemeSpacing

TokenValue
none0
xs1
sm1
md2
lg3

ThemeTypography

TokenTypeDescription
headerBoldbooleanWhether headers are bold
labelBoldbooleanWhether labels are bold
secondaryDimbooleanWhether dim styling is used for secondary text

ThemeBorders

TokenTypeDescription
stylestringDefault border style (e.g. "single", "double")
colorstringDefault border color

ThemeSeparator

TokenTypeDescription
charstringCharacter used for horizontal separators (e.g. "─")
widthnumberWidth in characters

ThemeBreakpoints

Mobile-first (min-width) breakpoints in terminal columns:

NameTypical Default
xs0
sm40
md60
lg90
xl120

ThemeContainerWidths

Max content width per breakpoint. undefined means full terminal width.

BreakpointTypical Default
xsundefined
smundefined
md80
lg100
xl120

On this page