Mincemeat for shadcn/ui

Mincemeat is a shadcn/ui theme built around a light green primary color (#e2e9b9) with neutral gray accents (#dbdbd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e2e9b9) on a green-tinted background (#0a0b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0b05black
Foreground
#080902black
#ffffffwhite
Card
#fcfcfcsnow
#0d0e06black
Card foreground
#040401black
#ffffffwhite
Popover
#fcfcfcsnow
#0d0e06black
Popover foreground
#040401black
#ffffffwhite
Primary
#e2e9b9palegoldenrod
#e2e9b9palegoldenrod
Primary foreground
#4d551bdarkolivegreen
#4d551bdarkolivegreen
Secondary
#dbdbd6gainsboro
#343725darkslategray
Secondary foreground
#43443bdarkslategray
#ced2bcsilver
Muted
#dadbd7gainsboro
#282824darkslategray
Muted foreground
#454644darkslategray
#bbbbb9silver
Accent
#dbdbd6gainsboro
#343725darkslategray
Accent foreground
#43443bdarkslategray
#ced2bcsilver
Destructive
#84370bsaddlebrown
#e25f12chocolate
Destructive foreground
#fad9c6bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2e9b9palegoldenrod
#e2e9b9palegoldenrod

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card20.08:1AAA
Primary button6.30:1AA
Secondary button7.11:1AAA
Muted text6.80:1AA
Accent7.11:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.39:1AAA
Primary button6.30:1AA
Secondary button7.92:1AAA
Muted text7.69:1AAA
Accent7.92:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.022 114.422);
  --muted: oklch(0.889 0.005 113.415);
  --muted-foreground: oklch(0.392 0.002 113.416);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.105 0.018 114.422);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.018 114.422);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.917 0.063 114.585);
  --primary-foreground: oklch(0.43 0.081 117.211);
  --secondary: oklch(0.891 0.007 113.459);
  --secondary-foreground: oklch(0.383 0.015 114.026);
  --accent: oklch(0.891 0.007 113.459);
  --accent-foreground: oklch(0.383 0.015 114.026);
  --destructive: oklch(0.437 0.118 45.014);
  --destructive-foreground: oklch(0.909 0.045 51.948);
  --ring: oklch(0.917 0.063 114.585);
  --chart-1: oklch(0.917 0.063 114.585);
  --chart-2: oklch(0.891 0.007 113.459);
  --chart-3: oklch(0.891 0.007 113.459);
  --chart-4: oklch(0.913 0.006 113.424);
  --chart-5: oklch(0.92 0.066 114.651);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.014 114.024);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.276 0.007 113.775);
  --muted-foreground: oklch(0.791 0.002 113.352);
  --popover: oklch(0.16 0.016 114.824);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.016 114.824);
  --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.917 0.063 114.585);
  --primary-foreground: oklch(0.43 0.081 117.211);
  --secondary: oklch(0.327 0.029 114.985);
  --secondary-foreground: oklch(0.854 0.029 113.939);
  --accent: oklch(0.327 0.029 114.985);
  --accent-foreground: oklch(0.854 0.029 113.939);
  --destructive: oklch(0.643 0.181 43.92);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.917 0.063 114.585);
  --chart-1: oklch(0.917 0.063 114.585);
  --chart-2: oklch(0.327 0.029 114.985);
  --chart-3: oklch(0.327 0.029 114.985);
  --chart-4: oklch(0.361 0.033 115.035);
  --chart-5: oklch(0.92 0.066 114.651);
}