Skip to Content
Habi

Color

Habi's palette, and the tokens that say what each color is for.

Habi has two layers of color tokens:

  • Semantic tokens say what a color is for, like link/primary or button/danger. Use these in designs and code.
  • Primitives are the raw palette, like blue/70. Semantic tokens point at them. Don't use primitives directly.

In code, every token is a CSS variable (--link-primary) and a Tailwind color you can use with any color utility: text-link-primary, bg-button-primary, border-border-subtle-01.

Every text and background pair below passes WCAG 2.2 AA. If you combine tokens in a new way, check the contrast first.

Semantic tokens

Background

TokenValueCSS variable
background/defaultneutral/5 · #f9f9f9--background-default
background/hoverneutral/10 · #f3f3f3--background-hover
background/activeneutral/20 · #e4e4e4--background-active
background/inverseneutral/90 · #333333--background-inverse
background/brandblue/80 · #0038a8--background-brand

Layer

Surfaces that sit on the background, like cards and panels.

TokenValueCSS variable
layer/01white · #ffffff--layer-01
layer/02neutral/5 · #f9f9f9--layer-02
layer/hover-01neutral/5 · #f9f9f9--layer-hover-01
layer/accent-01neutral/10 · #f3f3f3--layer-accent-01

Field

TokenValueCSS variable
field/01white · #ffffff--field-01
field/02neutral/5 · #f9f9f9--field-02

Border

TokenValueCSS variable
border/subtle-01neutral/20 · #e4e4e4--border-subtle-01
border/strong-01neutral/60 · #767676--border-strong-01
border/interactiveblue/70 · #164fc3--border-interactive
border/disabledneutral/30 · #cfcfcf--border-disabled
border/hoverneutral/80 · #464646--border-hover

Text

TokenValueCSS variable
text/primaryneutral/100 · #212121--text-primary
text/secondaryneutral/70 · #5b5b5b--text-secondary
text/placeholderneutral/70 · #5b5b5b--text-placeholder
text/helperneutral/70 · #5b5b5b--text-helper
text/errorred/60 · #ce1126--text-error
text/on-colorwhite · #ffffff--text-on-color
text/inverseneutral/5 · #f9f9f9--text-inverse
text/disabledneutral/50 · #949494--text-disabled
TokenValueCSS variable
link/primaryblue/70 · #164fc3--link-primary
link/primary-hoverblue/80 · #0038a8--link-primary-hover
link/visitedviolet/70 · #6a3ea6--link-visited
link/inverseblue/40 · #89b2ff--link-inverse

Icon

TokenValueCSS variable
icon/primaryneutral/100 · #212121--icon-primary
icon/secondaryneutral/70 · #5b5b5b--icon-secondary
icon/on-colorwhite · #ffffff--icon-on-color
icon/interactiveblue/70 · #164fc3--icon-interactive

Interactive and focus

TokenValueCSS variable
interactive/defaultblue/70 · #164fc3--interactive-default
interactive/hoverblue/80 · #0038a8--interactive-hover
TokenValueCSS variable
focus/defaultblue/60 · #2e6ce9--focus-default
focus/insetwhite · #ffffff--focus-inset
focus/inversewhite · #ffffff--focus-inverse

Button

TokenValueCSS variable
button/primaryblue/80 · #0038a8--button-primary
button/primary-hoverblue/90 · #02297a--button-primary-hover
button/primary-activeblue/100 · #021b51--button-primary-active
button/secondaryneutral/100 · #212121--button-secondary
button/secondary-hoverneutral/90 · #333333--button-secondary-hover
button/tertiaryblue/70 · #164fc3--button-tertiary
button/tertiary-hover-bgblue/10 · #edf4ff--button-tertiary-hover-bg
button/subtleneutral/30 · #cfcfcf--button-subtle
button/subtle-hoverneutral/40 · #b2b2b2--button-subtle-hover
button/dangerred/60 · #ce1126--button-danger
button/danger-hoverred/70 · #ac001b--button-danger-hover
button/disabledneutral/20 · #e4e4e4--button-disabled

Support

Status colors for notifications and validation.

TokenValueCSS variable
support/errorred/60 · #ce1126--support-error
support/successgreen/60 · #008e47--support-success
support/warninggold/30 · #fcd116--support-warning
support/infoblue/70 · #164fc3--support-info
support/error-subtlered/10 · #ffefee--support-error-subtle
support/success-subtlegreen/10 · #e7f9eb--support-success-subtle
support/warning-subtlegold/10 · #faf4dc--support-warning-subtle
support/info-subtleblue/10 · #edf4ff--support-info-subtle

Badge

TokenValueCSS variable
badge/neutral-bgneutral/20 · #e4e4e4--badge-neutral-bg
badge/neutral-textneutral/70 · #5b5b5b--badge-neutral-text
badge/info-bgblue/10 · #edf4ff--badge-info-bg
badge/info-textblue/70 · #164fc3--badge-info-text
badge/success-bggreen/10 · #e7f9eb--badge-success-bg
badge/success-textgreen/70 · #006e35--badge-success-text
badge/warning-bggold/10 · #faf4dc--badge-warning-bg
badge/warning-textgold/70 · #6d5900--badge-warning-text
badge/error-bgred/10 · #ffefee--badge-error-bg
badge/error-textred/70 · #ac001b--badge-error-text

Accent, highlight and skeleton

TokenValueCSS variable
accent/sungold/30 · #fcd116--accent-sun
accent/sun-subtlegold/10 · #faf4dc--accent-sun-subtle
TokenValueCSS variable
highlight/defaultblue/10 · #edf4ff--highlight-default
TokenValueCSS variable
skeleton/backgroundneutral/10 · #f3f3f3--skeleton-background
skeleton/elementneutral/30 · #cfcfcf--skeleton-element

Primitives

Blue, red and gold echo the Philippine flag: red/60 is the flag's red and gold/30 its sun.

blue

blue/10#edf4ff
blue/20#d7e5ff
blue/30#b6d0ff
blue/40#89b2ff
blue/50#558fff
blue/60#2e6ce9
blue/70#164fc3
blue/80#0038a8
blue/90#02297a
blue/100#021b51

red

red/10#ffefee
red/20#ffdbd7
red/30#ffbcb6
red/40#ff8d85
red/50#fa4d4d
red/60#ce1126
red/70#ac001b
red/80#880013
red/90#65000b
red/100#450005

gold

gold/10#faf4dc
gold/20#f2e4b5
gold/30#fcd116
gold/40#d3b023
gold/50#b09100
gold/60#8d7300
gold/70#6d5900
gold/80#554500
gold/90#3e3200
gold/100#282000

green

green/10#e7f9eb
green/20#cbf0d3
green/30#a1e1b2
green/40#6fca8a
green/50#38ad64
green/60#008e47
green/70#006e35
green/80#005528
green/90#003e1c
green/100#002910

violet

violet/10#f5f1ff
violet/20#e9deff
violet/30#d7c3ff
violet/40#c19dff
violet/50#a577eb
violet/60#8758c9
violet/70#6a3ea6
violet/80#55298a
violet/90#3e1d66
violet/100#281243

neutral

neutral/5#f9f9f9
neutral/10#f3f3f3
neutral/20#e4e4e4
neutral/30#cfcfcf
neutral/40#b2b2b2
neutral/50#949494
neutral/60#767676
neutral/70#5b5b5b
neutral/80#464646
neutral/90#333333
neutral/100#212121

white

white#ffffff

On this page