Firm for shadcn/ui

Firm is a shadcn/ui theme built around a yellow primary color (#c59330) with violet accents (#9330c5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#c59330) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fefdfbsnow
#040301black
Foreground
#000000black
#ffffffwhite
Card
#fefdfbsnow
#040301black
Card foreground
#000000black
#ffffffwhite
Popover
#fefdfbsnow
#040301black
Popover foreground
#000000black
#ffffffwhite
Primary
#c59330peru
#c59330peru
Primary foreground
#211908black
#211908black
Secondary
#30c593lightseagreen
#30c593lightseagreen
Secondary foreground
#082119black
#082119black
Muted
#d0e6dfgainsboro
#192f27darkslategray
Muted foreground
#3d524bdarkslategray
#adc2bbsilver
Accent
#9330c5darkorchid
#9330c5darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#832807saddlebrown
#f4602atomato
Destructive foreground
#fcd0c0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c59330peru
#c59330peru

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button6.30:1AA
Secondary button7.68:1AAA
Muted text6.42:1AA
Accent6.04:1AA
Destructive6.58:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button6.30:1AA
Secondary button7.68:1AAA
Muted text7.61:1AAA
Accent6.04:1AA
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 84.557);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.908 0.025 173.746);
  --muted-foreground: oklch(0.419 0.029 172.379);
  --popover: oklch(0.994 0.002 84.557);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.002 84.557);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.695 0.127 80.625);
  --primary-foreground: oklch(0.217 0.031 83.282);
  --secondary: oklch(0.735 0.142 165.26);
  --secondary-foreground: oklch(0.224 0.035 168.398);
  --accent: oklch(0.527 0.222 311.374);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.413 0.131 37.486);
  --destructive-foreground: oklch(0.891 0.054 40.965);
  --ring: oklch(0.695 0.127 80.625);
  --chart-1: oklch(0.695 0.127 80.625);
  --chart-2: oklch(0.735 0.142 165.26);
  --chart-3: oklch(0.527 0.222 311.374);
  --chart-4: oklch(0.762 0.145 165.553);
  --chart-5: oklch(0.701 0.131 80.165);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 89.373);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.283 0.032 170.695);
  --muted-foreground: oklch(0.797 0.025 173.626);
  --popover: oklch(0.097 0.009 89.373);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.009 89.373);
  --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.695 0.127 80.625);
  --primary-foreground: oklch(0.217 0.031 83.282);
  --secondary: oklch(0.735 0.142 165.26);
  --secondary-foreground: oklch(0.224 0.035 168.398);
  --accent: oklch(0.527 0.222 311.374);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.672 0.193 38.74);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.695 0.127 80.625);
  --chart-1: oklch(0.695 0.127 80.625);
  --chart-2: oklch(0.735 0.142 165.26);
  --chart-3: oklch(0.527 0.222 311.374);
  --chart-4: oklch(0.762 0.145 165.553);
  --chart-5: oklch(0.701 0.131 80.165);
}