Bitter for shadcn/ui

Bitter is a shadcn/ui theme built around a green primary color (#66d684) with orange accents (#d68466). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#66d684) on a green-tinted background (#041007).

Color palette

TokenLightDark
Background
#fbfefcwhite
#041007black
Foreground
#020d05black
#fcfdfcwhite
Card
#fbfefcwhite
#041007black
Card foreground
#020d05black
#fcfdfcwhite
Popover
#fbfefcwhite
#041007black
Popover foreground
#020d05black
#fcfdfcwhite
Primary
#66d684mediumaquamarine
#66d684mediumaquamarine
Primary foreground
#020804black
#020804black
Secondary
#8466d6mediumpurple
#8466d6mediumpurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d2cae8thistle
#1f1735midnightblue
Muted foreground
#555062dimgray
#a29dafdarkgray
Accent
#d68466darksalmon
#d68466darksalmon
Accent foreground
#080402black
#080402black
Destructive
#6f1201maroon
#e32402orangered
Destructive foreground
#feb2a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#66d684mediumaquamarine
#66d684mediumaquamarine

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button11.11:1AAA
Secondary button4.33:1AA Large
Muted text4.91:1AA
Accent7.14:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button11.11:1AAA
Secondary button4.33:1AA Large
Muted text6.45:1AA
Accent7.14:1AAA
Destructive4.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 154.46);
  --foreground: oklch(0.144 0.029 153.418);
  --muted: oklch(0.854 0.042 297.707);
  --muted-foreground: oklch(0.444 0.029 297.395);
  --popover: oklch(0.994 0.004 154.46);
  --popover-foreground: oklch(0.144 0.029 153.418);
  --card: oklch(0.994 0.004 154.46);
  --card-foreground: oklch(0.144 0.029 153.418);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.791 0.156 150.171);
  --primary-foreground: oklch(0.123 0.02 153.909);
  --secondary: oklch(0.593 0.166 292.935);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.693 0.111 40.664);
  --accent-foreground: oklch(0.112 0.014 49.275);
  --destructive: oklch(0.351 0.129 32.627);
  --destructive-foreground: oklch(0.832 0.092 30.266);
  --ring: oklch(0.791 0.156 150.171);
  --chart-1: oklch(0.791 0.156 150.171);
  --chart-2: oklch(0.593 0.166 292.935);
  --chart-3: oklch(0.693 0.111 40.664);
  --chart-4: oklch(0.624 0.153 293.8);
  --chart-5: oklch(0.797 0.163 149.959);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.026 152.926);
  --foreground: oklch(0.993 0.003 154.481);
  --muted: oklch(0.233 0.056 293.856);
  --muted-foreground: oklch(0.705 0.026 297.915);
  --popover: oklch(0.158 0.026 152.926);
  --popover-foreground: oklch(0.993 0.003 154.481);
  --card: oklch(0.158 0.026 152.926);
  --card-foreground: oklch(0.993 0.003 154.481);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.791 0.156 150.171);
  --primary-foreground: oklch(0.123 0.02 153.909);
  --secondary: oklch(0.593 0.166 292.935);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.693 0.111 40.664);
  --accent-foreground: oklch(0.112 0.014 49.275);
  --destructive: oklch(0.587 0.225 31.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.791 0.156 150.171);
  --chart-1: oklch(0.791 0.156 150.171);
  --chart-2: oklch(0.593 0.166 292.935);
  --chart-3: oklch(0.693 0.111 40.664);
  --chart-4: oklch(0.624 0.153 293.8);
  --chart-5: oklch(0.797 0.163 149.959);
}