Brown for shadcn/ui

Brown is a shadcn/ui theme built around a teal primary color (#4db392) with yellow accents (#b3924d). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#4db392) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050a09black
Foreground
#04100cblack
#f9fbfamintcream
Card
#f6fdfbmintcream
#070e0cblack
Card foreground
#030c09black
#fcfdfdwhite
Popover
#f6fdfbmintcream
#070e0cblack
Popover foreground
#030c09black
#fcfdfdwhite
Primary
#4db392cadetblue
#4db392cadetblue
Primary foreground
#0f241dblack
#0f241dblack
Secondary
#924db3darkorchid
#924db3darkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeeceewhitesmoke
#121113black
Muted foreground
#564f59dimgray
#ada6b0darkgray
Accent
#b3924dperu
#b3924dperu
Accent foreground
#000000black
#000000black
Destructive
#731e0dmaroon
#eb6347tomato
Destructive foreground
#f7c4balightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4db392cadetblue
#4db392cadetblue

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.25:1AAA
Primary button6.30:1AA
Secondary button5.35:1AA
Muted text6.71:1AA
Accent7.13:1AAA
Destructive7.08:1AAA
Dark mode
Text on background19.15:1AAA
Text on card19.16:1AAA
Primary button6.30:1AA
Secondary button5.35:1AA
Muted text7.95:1AAA
Accent7.13:1AAA
Destructive6.38:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 175.502);
  --foreground: oklch(0.159 0.02 173.143);
  --muted: oklch(0.945 0.004 315.411);
  --muted-foreground: oklch(0.438 0.019 315.25);
  --popover: oklch(0.989 0.008 175.387);
  --popover-foreground: oklch(0.143 0.017 175.328);
  --card: oklch(0.989 0.008 175.387);
  --card-foreground: oklch(0.143 0.017 175.328);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.696 0.107 169.447);
  --primary-foreground: oklch(0.239 0.03 171.164);
  --secondary: oklch(0.546 0.165 313.806);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.676 0.097 84.821);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.371 0.122 33.101);
  --destructive-foreground: oklch(0.864 0.06 31.347);
  --ring: oklch(0.696 0.107 169.447);
  --chart-1: oklch(0.696 0.107 169.447);
  --chart-2: oklch(0.546 0.165 313.806);
  --chart-3: oklch(0.676 0.097 84.821);
  --chart-4: oklch(0.572 0.156 314.048);
  --chart-5: oklch(0.705 0.113 168.998);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 175.755);
  --foreground: oklch(0.986 0.002 175.557);
  --muted: oklch(0.179 0.006 315.293);
  --muted-foreground: oklch(0.733 0.016 315.334);
  --popover: oklch(0.154 0.013 173.991);
  --popover-foreground: oklch(0.993 0.001 175.587);
  --card: oklch(0.154 0.013 173.991);
  --card-foreground: oklch(0.993 0.001 175.587);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.696 0.107 169.447);
  --primary-foreground: oklch(0.239 0.03 171.164);
  --secondary: oklch(0.546 0.165 313.806);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.676 0.097 84.821);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.665 0.174 33.074);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.696 0.107 169.447);
  --chart-1: oklch(0.696 0.107 169.447);
  --chart-2: oklch(0.546 0.165 313.806);
  --chart-3: oklch(0.676 0.097 84.821);
  --chart-4: oklch(0.572 0.156 314.048);
  --chart-5: oklch(0.705 0.113 168.998);
}