Usable for shadcn/ui

Usable is a shadcn/ui theme built around a teal primary color (#70e6b9) with pink accents (#e6709d). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#70e6b9) on a teal-tinted background (#04100c).

Color palette

TokenLightDark
Background
#ffffffwhite
#04100cblack
Foreground
#020906black
#f6f9f8whitesmoke
Card
#fcfcfcsnow
#05140eblack
Card foreground
#010403black
#f9fbfamintcream
Popover
#fcfcfcsnow
#05140eblack
Popover foreground
#010403black
#f9fbfamintcream
Primary
#70e6b9mediumaquamarine
#70e6b9mediumaquamarine
Primary foreground
#051e15black
#051e15black
Secondary
#e6709dpalevioletred
#e6709dpalevioletred
Secondary foreground
#1e050fblack
#1e050fblack
Muted
#dbd6d8gainsboro
#292426darkslategray
Muted foreground
#64545adimgray
#ab9ba1darkgray
Accent
#e6709dpalevioletred
#e6709dpalevioletred
Accent foreground
#1e050fblack
#1e050fblack
Destructive
#ae2c0ffirebrick
#ed4f2ctomato
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#70e6b9mediumaquamarine
#70e6b9mediumaquamarine

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.10:1AAA
Text on card20.14:1AAA
Primary button11.36:1AAA
Secondary button6.60:1AA
Muted text4.95:1AA
Accent6.60:1AA
Destructive6.10:1AA
Dark mode
Text on background18.26:1AAA
Text on card18.12:1AAA
Primary button11.36:1AAA
Secondary button6.60:1AA
Muted text5.79:1AA
Accent6.60:1AA
Destructive3.65:1AA Large

CSS variables

Paste this into your globals.css to use Usable in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.018 171.904);
  --muted: oklch(0.881 0.006 351.801);
  --muted-foreground: oklch(0.463 0.024 353.01);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.1 0.014 171.904);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.014 171.904);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.126 165.932);
  --primary-foreground: oklch(0.213 0.037 165.112);
  --secondary: oklch(0.695 0.153 357.648);
  --secondary-foreground: oklch(0.169 0.047 358.334);
  --accent: oklch(0.695 0.153 357.648);
  --accent-foreground: oklch(0.169 0.047 358.334);
  --destructive: oklch(0.496 0.17 33.462);
  --destructive-foreground: oklch(0.973 0.012 32.664);
  --ring: oklch(0.843 0.126 165.932);
  --chart-1: oklch(0.843 0.126 165.932);
  --chart-2: oklch(0.695 0.153 357.648);
  --chart-3: oklch(0.695 0.153 357.648);
  --chart-4: oklch(0.72 0.139 356.825);
  --chart-5: oklch(0.849 0.13 165.694);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.021 169.121);
  --foreground: oklch(0.979 0.004 171.486);
  --muted: oklch(0.265 0.009 352.519);
  --muted-foreground: oklch(0.706 0.021 352.436);
  --popover: oklch(0.176 0.025 167.588);
  --popover-foreground: oklch(0.986 0.002 171.522);
  --card: oklch(0.176 0.025 167.588);
  --card-foreground: oklch(0.986 0.002 171.522);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.843 0.126 165.932);
  --primary-foreground: oklch(0.213 0.037 165.112);
  --secondary: oklch(0.695 0.153 357.648);
  --secondary-foreground: oklch(0.169 0.047 358.334);
  --accent: oklch(0.695 0.153 357.648);
  --accent-foreground: oklch(0.169 0.047 358.334);
  --destructive: oklch(0.642 0.2 34.009);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.126 165.932);
  --chart-1: oklch(0.843 0.126 165.932);
  --chart-2: oklch(0.695 0.153 357.648);
  --chart-3: oklch(0.695 0.153 357.648);
  --chart-4: oklch(0.72 0.139 356.825);
  --chart-5: oklch(0.849 0.13 165.694);
}