Beancurd for shadcn/ui

Beancurd is a shadcn/ui theme built around a teal primary color (#55c3a8) with yellow accents (#c3a855). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#55c3a8) on a teal-tinted background (#030c0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c0ablack
Foreground
#05100dblack
#ffffffwhite
Card
#fcfcfcsnow
#04100dblack
Card foreground
#040c0ablack
#ffffffwhite
Popover
#fcfcfcsnow
#04100dblack
Popover foreground
#040c0ablack
#ffffffwhite
Primary
#55c3a8mediumaquamarine
#55c3a8mediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#a855c3mediumorchid
#a855c3mediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eee3f2lavender
#180d1cblack
Muted foreground
#544d56darkslategray
#b0a9b2darkgray
Accent
#c3a855darkkhaki
#c3a855darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#df2e01orangered
#e42f01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#55c3a8mediumaquamarine
#55c3a8mediumaquamarine

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.34:1AAA
Primary button9.78:1AAA
Secondary button4.41:1AA Large
Muted text6.58:1AA
Accent9.04:1AAA
Destructive4.63:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.34:1AAA
Primary button9.78:1AAA
Secondary button4.41:1AA Large
Muted text8.23:1AAA
Accent9.04:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.159 0.018 177.556);
  --muted: oklch(0.93 0.023 317.723);
  --muted-foreground: oklch(0.43 0.018 317.693);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.142 0.015 179.486);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.142 0.015 179.486);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.746 0.109 174.206);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.594 0.179 316.964);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.738 0.107 91.198);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.586 0.217 32.861);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.746 0.109 174.206);
  --chart-1: oklch(0.746 0.109 174.206);
  --chart-2: oklch(0.594 0.179 316.964);
  --chart-3: oklch(0.738 0.107 91.198);
  --chart-4: oklch(0.619 0.167 317.111);
  --chart-5: oklch(0.754 0.114 173.868);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.017 179.317);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.034 317.409);
  --muted-foreground: oklch(0.742 0.016 317.728);
  --popover: oklch(0.16 0.02 177.362);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.02 177.362);
  --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.746 0.109 174.206);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.594 0.179 316.964);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.738 0.107 91.198);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.596 0.22 32.828);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.746 0.109 174.206);
  --chart-1: oklch(0.746 0.109 174.206);
  --chart-2: oklch(0.594 0.179 316.964);
  --chart-3: oklch(0.738 0.107 91.198);
  --chart-4: oklch(0.619 0.167 317.111);
  --chart-5: oklch(0.754 0.114 173.868);
}