Semantic colors

Style every screen with these tokens, never with raw palette values. Each token has a light and a dark value; the names follow Figma, so Colors/surface/raised is bg-surface-raised.

Figma: 01 / Foundations / Semantic colors

Using the tokens

Prefix the token name with the property: bg- for fills, text- for copy, border- for outlines, fill- and stroke- for SVG.
<div className='rounded-xl border border-border-default bg-surface-raised p-6'>
    <h3 className='text-text-primary'>Supporter growth</h3>
    <p className='text-text-secondary'>New supporters this month</p>
</div>

Surface

Backgrounds, from the page to raised cards and overlays.
LightDarkFigma tokenTailwindValues
Colors/surface/pagesurface-page
Colors/surface/subtlesurface-subtle
Colors/surface/mutedsurface-muted
Colors/surface/raisedsurface-raised
Colors/surface/overlaysurface-overlay
Colors/surface/inversesurface-inverse
Colors/surface/scrimsurface-scrim

Border

Dividers, outlines, selection and focus.
LightDarkFigma tokenTailwindValues
Colors/border/subtleborder-subtle
Colors/border/defaultborder-default
Colors/border/strongborder-strong
Colors/border/selectedborder-selected
Colors/border/focusborder-focus

Text

Copy, links and text on colored backgrounds.
LightDarkFigma tokenTailwindValues
Colors/text/primarytext-primary
Colors/text/secondarytext-secondary
Colors/text/tertiarytext-tertiary
Colors/text/placeholdertext-placeholder
Colors/text/disabledtext-disabled
Colors/text/inversetext-inverse
Colors/text/brandtext-brand
Colors/text/linktext-link
Colors/text/link-hovertext-link-hover
Colors/text/on-brandtext-on-brand
Colors/text/on-colortext-on-color
Colors/text/selection/backgroundtext-selection-background
Colors/text/selection/foregroundtext-selection-foreground

Icon

Icons follow the same steps as text.
LightDarkFigma tokenTailwindValues
Colors/icon/primaryicon-primary
Colors/icon/secondaryicon-secondary
Colors/icon/tertiaryicon-tertiary
Colors/icon/hovericon-hover
Colors/icon/disabledicon-disabled
Colors/icon/inverseicon-inverse
Colors/icon/brandicon-brand
Colors/icon/selectedicon-selected
Colors/icon/on-brandicon-on-brand

Brand

The GoodUnited green.
LightDarkFigma tokenTailwindValues
Colors/brand/primarybrand-primary
Colors/brand/strongbrand-strong
Colors/brand/subtlebrand-subtle
Colors/brand/foregroundbrand-foreground

Action

Buttons, segmented controls and destructive actions.
LightDarkFigma tokenTailwindValues
Colors/action/primary/defaultaction-primary
Colors/action/primary/hoveraction-primary-hover
Colors/action/primary/pressedaction-primary-pressed
Colors/action/primary/foregroundaction-primary-foreground
Colors/action/secondary/defaultaction-secondary
Colors/action/secondary/hoveraction-secondary-hover
Colors/action/secondary/pressedaction-secondary-pressed
Colors/action/secondary/foregroundaction-secondary-foreground
Colors/action/secondary/borderaction-secondary-border
Colors/action/inverse/defaultaction-inverse
Colors/action/inverse/hoveraction-inverse-hover
Colors/action/inverse/foregroundaction-inverse-foreground
Colors/action/segment/trackaction-segment-track
Colors/action/segment/activeaction-segment-active
Colors/action/segment/active-foregroundaction-segment-active-foreground
Colors/action/segment/inactive-foregroundaction-segment-inactive-foreground
Colors/action/destructive/defaultaction-destructive
Colors/action/destructive/hoveraction-destructive-hover
Colors/action/destructive/pressedaction-destructive-pressed
Colors/action/destructive/foregroundaction-destructive-foreground
Colors/action/disabled/backgroundaction-disabled
Colors/action/disabled/foregroundaction-disabled-foreground

Input

Inputs, selects, checkboxes and radios.
LightDarkFigma tokenTailwindValues
Colors/input/backgroundinput-background
Colors/input/borderinput-border
Colors/input/border-hoverinput-border-hover
Colors/input/border-focusinput-border-focus
Colors/input/foregroundinput-foreground

Status

Success, warning, error and info, each as a foreground and a tint.
LightDarkFigma tokenTailwindValues
Colors/status/success/foregroundstatus-success-foreground
Colors/status/success/backgroundstatus-success-background
Colors/status/warning/foregroundstatus-warning-foreground
Colors/status/warning/backgroundstatus-warning-background
Colors/status/error/foregroundstatus-error-foreground
Colors/status/error/backgroundstatus-error-background
Colors/status/info/foregroundstatus-info-foreground
Colors/status/info/backgroundstatus-info-background

Progress and avatar

Progress bars, step badges and the avatar placeholder.
LightDarkFigma tokenTailwindValues
Colors/progress/fillprogress-fill
Colors/progress/trackprogress-track
Colors/progress/step-badgeprogress-step-badge
Colors/progress/avatar/backgroundavatar-background
Colors/progress/avatar/foregroundavatar-foreground
Colors/progress/external/messengerexternal-messenger
Colors/progress/effect/shadoweffect-shadow
GoodUnited navigation stays dark in both modes.
LightDarkFigma tokenTailwindValues
Colors/nav/backgroundnav-background
Colors/nav/dividernav-divider
Colors/nav/icon/defaultnav-icon
Colors/nav/icon/hovernav-icon-hover
Colors/nav/icon/activenav-icon-active
Colors/nav/label/defaultnav-label
Colors/nav/label/hovernav-label-hover
Colors/nav/label/activenav-label-active
Colors/nav/item/active-backgroundnav-item-active
Colors/nav/org-switcher/backgroundnav-org-switcher
Colors/nav/org-switcher/foregroundnav-org-switcher-foreground
Colors/nav/topbar/backgroundtopbar-background
Colors/nav/topbar/titletopbar-title
Colors/nav/topbar/sectiontopbar-section

Journey

Journey builder nodes and their icons.
LightDarkFigma tokenTailwindValues
Colors/journey/node/messagejourney-node-message
Colors/journey/node/message-24hjourney-node-message-24h
Colors/journey/node/compliancejourney-node-compliance
Colors/journey/node/triggerjourney-node-trigger
Colors/journey/node/time-delayjourney-node-time-delay
Colors/journey/node/conditionjourney-node-condition
Colors/journey/node/actionjourney-node-action
Colors/journey/icon/time-delayjourney-icon-time-delay
Colors/journey/icon/websitejourney-icon-website
Colors/journey/icon/triggerjourney-icon-trigger
Colors/journey/icon/actionjourney-icon-action
Colors/journey/icon/conditionjourney-icon-condition
Colors/journey/icon/no-respondjourney-icon-no-respond
Colors/journey/icon/commentjourney-icon-comment

Chart

Nine approved series (start and end of each gradient) and the chart chrome.
LightDarkFigma tokenTailwindValues
Colors/chart/platform/startchart-platform
Colors/chart/challenges/startchart-challenges
Colors/chart/facebook/startchart-facebook
Colors/chart/instagram/startchart-instagram
Colors/chart/messenger/startchart-messenger
Colors/chart/birthdays/startchart-birthdays
Colors/chart/other/startchart-other
Colors/chart/negative/startchart-negative
Colors/chart/misc/startchart-misc
Colors/chart/gridchart-grid
Colors/chart/axis-linechart-axis-line
Colors/chart/highlight-bandchart-highlight-band
Colors/chart/axis-textchart-axis-text
Colors/chart/label-lightchart-label-light
Colors/chart/label-darkchart-label-dark

shadcn names

The shadcn theme names point at GoodUnited tokens, so any shadcn component picks up the brand automatically.
shadcnGoodUnited token
backgroundColors/surface/page
foregroundColors/text/primary
cardColors/surface/raised
popoverColors/surface/overlay
primaryColors/action/primary/default
primary-foregroundColors/action/primary/foreground
secondary, mutedColors/surface/muted
muted-foregroundColors/text/secondary
accentColors/surface/subtle
destructiveColors/action/destructive/default
borderColors/border/default
inputColors/input/border
ringColors/border/focus
chart-1 to chart-5Colors/chart/platform, facebook, messenger, challenges, instagram
sidebarColors/nav/background
sidebar-primary, sidebar-accent-foregroundColors/nav/label/active
sidebar-accentColors/nav/item/active-background
sidebar-borderColors/nav/divider

GoodUnited design system. The Figma file is the source of truth for every color, type size and component.

Made with Modulify