Usable for shadcn/ui

Usable is a shadcn/ui theme built around a vivid deep yellow primary color (#292705) with muted light yellow accents (#deddce). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid deep yellow primary (#292705) on a yellow-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fcfcf8snow
#0a0a05black
Foreground
#0d0c03black
#ffffffwhite
Card
#fcfcf8snow
#0a0a05black
Card foreground
#0d0c03black
#ffffffwhite
Popover
#fcfcf8snow
#0a0a05black
Popover foreground
#0d0c03black
#ffffffwhite
Primary
#292705black
#292705black
Primary foreground
#e1d419gold
#e1d419gold
Secondary
#e6e6e0gainsboro
#262621darkslategray
Secondary foreground
#535241darkolivegreen
#c1c1b8silver
Muted
#f5f4ealinen
#15140ablack
Muted foreground
#5f5f58dimgray
#a7a6a0darkgray
Accent
#deddcegainsboro
#3b3a2bdarkslategray
Accent foreground
#494831darkolivegreen
#d4d3c4lightgrey
Destructive
#750801maroon
#e91101red
Destructive foreground
#ffaea9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#292705black
#292705black

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button9.83:1AAA
Secondary button6.31:1AA
Muted text5.84:1AA
Accent6.82:1AA
Destructive6.64:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button9.83:1AAA
Secondary button8.39:1AAA
Muted text7.57:1AAA
Accent7.61:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 103.187);
  --foreground: oklch(0.152 0.023 106.037);
  --muted: oklch(0.966 0.014 103.34);
  --muted-foreground: oklch(0.484 0.011 103.472);
  --popover: oklch(0.989 0.005 103.187);
  --popover-foreground: oklch(0.152 0.023 106.037);
  --card: oklch(0.989 0.005 103.187);
  --card-foreground: oklch(0.152 0.023 106.037);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.267 0.051 105.35);
  --primary-foreground: oklch(0.853 0.177 104.837);
  --secondary: oklch(0.923 0.008 103.259);
  --secondary-foreground: oklch(0.433 0.026 104.055);
  --accent: oklch(0.895 0.02 103.483);
  --accent-foreground: oklch(0.396 0.036 104.476);
  --destructive: oklch(0.357 0.14 30.494);
  --destructive-foreground: oklch(0.828 0.095 23.848);
  --ring: oklch(0.267 0.051 105.35);
  --chart-1: oklch(0.267 0.051 105.35);
  --chart-2: oklch(0.923 0.008 103.259);
  --chart-3: oklch(0.895 0.02 103.483);
  --chart-4: oklch(0.944 0.006 103.215);
  --chart-5: oklch(0.269 0.053 105.368);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.011 104.846);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.189 0.019 104.616);
  --muted-foreground: oklch(0.725 0.01 103.33);
  --popover: oklch(0.142 0.011 104.846);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.011 104.846);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.267 0.051 105.35);
  --primary-foreground: oklch(0.853 0.177 104.837);
  --secondary: oklch(0.267 0.008 103.622);
  --secondary-foreground: oklch(0.808 0.012 103.353);
  --accent: oklch(0.345 0.025 104.236);
  --accent-foreground: oklch(0.864 0.021 103.499);
  --destructive: oklch(0.591 0.238 29.825);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.267 0.051 105.35);
  --chart-1: oklch(0.267 0.051 105.35);
  --chart-2: oklch(0.267 0.008 103.622);
  --chart-3: oklch(0.345 0.025 104.236);
  --chart-4: oklch(0.3 0.01 103.647);
  --chart-5: oklch(0.269 0.053 105.368);
}