Talisman LogoTalisman Logo Design System
Browse documentation
Foundations

Colors

Semantic color tokens for surfaces, text and strokes, read directly from the product stylesheet in every theme.

Every color in the product comes from a CSS variable in packages/ui/src/globals.css, exposed as a Tailwind class by packages/ui/tailwind.config.ts. The tables on this page read both files at build time, so they always match the code.

Swatches paint the live variable. Switch the theme in the header to see Light, Dark and Darker values.

// Good: semantic tokens
<div className="border border-primary bg-secondary text-primary">…</div>
<button className="bg-brand text-on-brand">Salvar</button>

// Bad: hardcoded color breaks themes
<div className="bg-[#171717] text-white">…</div>

Token families

Family Variable prefix Tailwind class Purpose
Background --bg-* bg-* Surface fills
Text --text-* text-* Foreground copy and icons
Stroke --stroke-* border-* Borders, dividers, focus

Use semantic tokens in product code. The base palette at the end of this page is a reference for defining tokens.

Backgrounds

bg-primary is the page. bg-secondary and bg-tertiary step up for grouped surfaces. bg-inverse is for high-emphasis dark surfaces on a light page, such as toasts, not for page backgrounds. bg-brand belongs on the primary action: one per screen at most.

Status fills (bg-success, bg-warning, bg-critical, bg-information and the *-strong variants) are for feedback only: alerts, toasts, badges, progress. Do not use them for decoration. The bg-progress-* tokens are compatibility aliases for the *-strong tokens; use the *-strong names in new code.

TokenTailwind classLightDarkDarker
--bg-primarybg-primaryvar(--neutral-white)var(--tinted-gray-950)var(--tinted-gray-950)
--bg-secondarybg-secondaryvar(--gray-50)var(--tinted-gray-900)var(--tinted-gray-900)
--bg-tertiarybg-tertiaryvar(--gray-100)var(--tinted-gray-800)var(--tinted-gray-700)
--bg-disabledbg-disabledvar(--gray-200)var(--tinted-gray-900)var(--tinted-gray-900)
--bg-surfacebg-surfacevar(--neutral-black) / 0.05var(--neutral-white) / 0.05var(--neutral-white) / 0.05
--bg-brandbg-brandvar(--orange-300)var(--orange-300)var(--orange-300)
--bg-brand-lightbg-brand-lightvar(--orange-200)var(--orange-800)var(--orange-800)
--bg-critical-strongbg-critical-strongvar(--red-500)var(--red-400)Not set
--bg-progress-criticalbg-progress-criticalvar(--bg-critical-strong)var(--bg-critical-strong)Not set
--bg-warning-strongbg-warning-strongvar(--orange-400)var(--orange-300)Not set
--bg-progress-warningbg-progress-warningvar(--bg-warning-strong)var(--bg-warning-strong)Not set
--bg-caution-strongbg-caution-strongvar(--yellow-400)var(--yellow-300)Not set
--bg-progress-cautionbg-progress-cautionvar(--bg-caution-strong)var(--bg-caution-strong)Not set
--bg-positive-strongbg-positive-strongvar(--green-400)var(--green-300)Not set
--bg-progress-positivebg-progress-positivevar(--bg-positive-strong)var(--bg-positive-strong)Not set
--bg-success-strongbg-success-strongvar(--green-600)var(--green-500)Not set
--bg-progress-successbg-progress-successvar(--bg-success-strong)var(--bg-success-strong)Not set
--bg-inversebg-inversevar(--tinted-gray-950)var(--tinted-gray-50)var(--tinted-gray-50)
--bg-accentbg-accentvar(--cyan-100)var(--cyan-800)var(--cyan-800)
--bg-informationbg-informationvar(--purple-200)var(--purple-800)var(--purple-800)
--bg-successbg-successvar(--green-100)var(--green-800)var(--green-800)
--bg-warningbg-warningvar(--yellow-100)var(--yellow-800)var(--yellow-800)
--bg-criticalbg-criticalvar(--red-100)var(--red-800)var(--red-800)
--bg-critical-subtlebg-critical-subtlevar(--red-50)var(--red-800)var(--red-800)

Text

Text tokens convey hierarchy more than color. text-primary is the default; use text-secondary for helper text, captions and table metadata.

TokenTailwind classLightDarkDarker
--text-primarytext-primaryvar(--gray-900)var(--tinted-gray-100)var(--tinted-gray-100)
--text-secondarytext-secondaryvar(--gray-600)var(--tinted-gray-400)var(--tinted-gray-400)
--text-tertiarytext-tertiaryvar(--gray-400)var(--tinted-gray-500)var(--tinted-gray-500)
--text-disabledtext-disabledvar(--gray-400)var(--tinted-gray-800)var(--tinted-gray-800)
--text-brandtext-brandvar(--orange-400)var(--orange-300)var(--orange-300)
--text-on-brandtext-on-brandvar(--gray-950)var(--gray-950)var(--gray-950)
--text-inversetext-inversevar(--gray-50)var(--gray-900)var(--gray-900)
--text-accenttext-accentvar(--cyan-700)var(--cyan-200)var(--cyan-200)
--text-informationtext-informationvar(--purple-700)var(--purple-200)var(--purple-200)
--text-successtext-successvar(--green-700)var(--green-200)var(--green-200)
--text-warningtext-warningvar(--yellow-700)var(--yellow-200)var(--yellow-200)
--text-criticaltext-criticalvar(--red-700)var(--red-200)var(--red-200)

Strokes

TokenTailwind classLightDarkDarker
--stroke-primaryborder-primaryvar(--neutral-black) / 0.15var(--neutral-white) / 0.15var(--neutral-white) / 0.15
--stroke-secondaryborder-secondaryvar(--neutral-black) / 0.1var(--neutral-white) / 0.1var(--neutral-white) / 0.1
--stroke-tertiaryborder-tertiaryvar(--neutral-black) / 0.05var(--neutral-white) / 0.05var(--neutral-white) / 0.05
--stroke-focusborder-focusvar(--neutral-black)var(--neutral-white)var(--neutral-white)
--stroke-highlightborder-highlightvar(--cyan-400)var(--cyan-400)var(--cyan-400)
--stroke-disabledborder-disabledvar(--neutral-black) / 0.05var(--neutral-white) / 0.05var(--neutral-white) / 0.05
--stroke-brandborder-brand36, 100%, 66%36, 100%, 66%36, 100%, 66%
--stroke-inverseborder-inversevar(--neutral-white) / 0.15var(--neutral-black) / 0.15var(--neutral-black) / 0.15
--stroke-accentborder-accentvar(--cyan-500)var(--cyan-500)var(--cyan-500)
--stroke-informationborder-informationvar(--purple-500)var(--purple-500)var(--purple-500)
--stroke-successborder-successvar(--green-500)var(--green-500)var(--green-500)
--stroke-warningborder-warningvar(--yellow-500)var(--yellow-400)var(--yellow-400)
--stroke-criticalborder-criticalvar(--red-500)var(--red-400)var(--red-400)

Light and dark

Tokens change value when .dark or .darker is set on a parent element. Do not write dark: variants for tokenized colors. If a token looks wrong in one theme, fix the token in globals.css.

Contrast and accessibility

  • Token pairs must meet WCAG AA: 4.5:1 for body text, 3:1 for large text and UI components.
  • Never communicate state with color alone. Pair status colors with an icon and a label.
  • Prefer solid surfaces with a stroke over translucent overlays such as bg-black/40.

Base palette

Primitive scales from Figma. Reference only: product code uses the semantic tokens above.

neutral

black--neutral-black
white--neutral-white

gray

50--gray-50
100--gray-100
200--gray-200
300--gray-300
400--gray-400
500--gray-500
600--gray-600
700--gray-700
800--gray-800
900--gray-900
950--gray-950

tinted-gray

50--tinted-gray-50
100--tinted-gray-100
200--tinted-gray-200
300--tinted-gray-300
400--tinted-gray-400
500--tinted-gray-500
600--tinted-gray-600
700--tinted-gray-700
800--tinted-gray-800
900--tinted-gray-900
950--tinted-gray-950

orange

50--orange-50
100--orange-100
200--orange-200
300--orange-300
400--orange-400
500--orange-500
600--orange-600
700--orange-700
800--orange-800
900--orange-900
950--orange-950

red

50--red-50
100--red-100
200--red-200
300--red-300
400--red-400
500--red-500
600--red-600
700--red-700
800--red-800
900--red-900
950--red-950

green

50--green-50
100--green-100
200--green-200
300--green-300
400--green-400
500--green-500
600--green-600
700--green-700
800--green-800
900--green-900
950--green-950

yellow

50--yellow-50
100--yellow-100
200--yellow-200
300--yellow-300
400--yellow-400
500--yellow-500
600--yellow-600
700--yellow-700
800--yellow-800
900--yellow-900
950--yellow-950

cyan

50--cyan-50
100--cyan-100
200--cyan-200
300--cyan-300
400--cyan-400
500--cyan-500
600--cyan-600
700--cyan-700
800--cyan-800
900--cyan-900
950--cyan-950

purple

50--purple-50
100--purple-100
200--purple-200
300--purple-300
400--purple-400
500--purple-500
600--purple-600
700--purple-700
800--purple-800
900--purple-900
950--purple-950
Edit this page on GitHub