Specific for shadcn/ui

Specific is a shadcn/ui theme built around a vivid green primary color (#04f614) with vivid red accents (#f61404). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid green primary (#04f614) on a green-tinted background (#070e07).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#070e07black
Foreground
#010401black
#fcfdfcwhite
Card
#f7fdf7mintcream
#070e07black
Card foreground
#010401black
#fcfdfcwhite
Popover
#f7fdf7mintcream
#070e07black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#04f614lime
#04f614lime
Primary foreground
#012d04black
#012d04black
Secondary
#1404f6blue
#1404f6blue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcdbebgainsboro
#151424black
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#f61404red
#f61404red
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6c1d04maroon
#e63d0aorangered
Destructive foreground
#fbbba7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#04f614lime
#04f614lime

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button10.31:1AAA
Secondary button8.82:1AAA
Muted text6.77:1AA
Accent4.17:1AA Large
Destructive7.06:1AAA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button10.31:1AAA
Secondary button8.82:1AAA
Muted text9.16:1AAA
Accent4.17:1AA Large
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 147.438);
  --foreground: oklch(0.098 0.022 145.82);
  --muted: oklch(0.896 0.023 288.995);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.988 0.011 147.438);
  --popover-foreground: oklch(0.098 0.022 145.82);
  --card: oklch(0.988 0.011 147.438);
  --card-foreground: oklch(0.098 0.022 145.82);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.844 0.284 142.734);
  --primary-foreground: oklch(0.259 0.083 143.812);
  --secondary: oklch(0.445 0.302 265.671);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.616 0.247 29.767);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.356 0.116 36.063);
  --destructive-foreground: oklch(0.845 0.08 37.611);
  --ring: oklch(0.844 0.284 142.734);
  --chart-1: oklch(0.844 0.284 142.734);
  --chart-2: oklch(0.445 0.302 265.671);
  --chart-3: oklch(0.616 0.247 29.767);
  --chart-4: oklch(0.457 0.302 266.831);
  --chart-5: oklch(0.854 0.288 142.704);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.019 146.5);
  --foreground: oklch(0.993 0.002 147.521);
  --muted: oklch(0.2 0.033 286.017);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.152 0.019 146.5);
  --popover-foreground: oklch(0.993 0.002 147.521);
  --card: oklch(0.152 0.019 146.5);
  --card-foreground: oklch(0.993 0.002 147.521);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.844 0.284 142.734);
  --primary-foreground: oklch(0.259 0.083 143.812);
  --secondary: oklch(0.445 0.302 265.671);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.616 0.247 29.767);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.611 0.212 34.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.844 0.284 142.734);
  --chart-1: oklch(0.844 0.284 142.734);
  --chart-2: oklch(0.445 0.302 265.671);
  --chart-3: oklch(0.616 0.247 29.767);
  --chart-4: oklch(0.457 0.302 266.831);
  --chart-5: oklch(0.854 0.288 142.704);
}