Mine for shadcn/ui

Mine is a shadcn/ui theme built around a vivid deep green primary color (#063707) with vivid deep red accents (#370706). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the vivid deep green primary (#063707) on a green-tinted background (#041004).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#041004black
Foreground
#031203black
#ffffffwhite
Card
#f8fcf8mintcream
#041004black
Card foreground
#031203black
#ffffffwhite
Popover
#f8fcf8mintcream
#041004black
Popover foreground
#031203black
#ffffffwhite
Primary
#063707darkgreen
#063707darkgreen
Primary foreground
#23e726limegreen
#23e726limegreen
Secondary
#070637black
#070637black
Secondary foreground
#dbdafblavender
#dbdafblavender
Muted
#ececf4lavender
#0c0b13black
Muted foreground
#4e4e50darkslategray
#afafb1darkgray
Accent
#370706black
#370706black
Accent foreground
#f1807elightcoral
#f1807elightcoral
Destructive
#690d07maroon
#f2392ccrimson
Destructive foreground
#f9aea9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#063707darkgreen
#063707darkgreen

Contrast

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

Light mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button8.03:1AAA
Secondary button14.14:1AAA
Muted text7.05:1AAA
Accent6.79:1AA
Destructive6.98:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button8.03:1AAA
Secondary button14.14:1AAA
Muted text8.92:1AAA
Accent6.79:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 146.006);
  --foreground: oklch(0.16 0.041 143.834);
  --muted: oklch(0.945 0.01 286.97);
  --muted-foreground: oklch(0.425 0.003 287.058);
  --popover: oklch(0.986 0.006 146.006);
  --popover-foreground: oklch(0.16 0.041 143.834);
  --card: oklch(0.986 0.006 146.006);
  --card-foreground: oklch(0.16 0.041 143.834);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.295 0.091 143.053);
  --primary-foreground: oklch(0.806 0.263 142.765);
  --secondary: oklch(0.175 0.091 272.59);
  --secondary-foreground: oklch(0.9 0.044 286.234);
  --accent: oklch(0.223 0.076 26.844);
  --accent-foreground: oklch(0.726 0.138 22.065);
  --destructive: oklch(0.337 0.126 29.663);
  --destructive-foreground: oklch(0.822 0.089 23.747);
  --ring: oklch(0.295 0.091 143.053);
  --chart-1: oklch(0.295 0.091 143.053);
  --chart-2: oklch(0.175 0.091 272.59);
  --chart-3: oklch(0.223 0.076 26.844);
  --chart-4: oklch(0.197 0.108 271.412);
  --chart-5: oklch(0.297 0.093 143);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.033 144.267);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.156 0.016 285.124);
  --muted-foreground: oklch(0.755 0.002 287.115);
  --popover: oklch(0.157 0.033 144.267);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.033 144.267);
  --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.295 0.091 143.053);
  --primary-foreground: oklch(0.806 0.263 142.765);
  --secondary: oklch(0.175 0.091 272.59);
  --secondary-foreground: oklch(0.9 0.044 286.234);
  --accent: oklch(0.223 0.076 26.844);
  --accent-foreground: oklch(0.726 0.138 22.065);
  --destructive: oklch(0.629 0.222 29.128);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.295 0.091 143.053);
  --chart-1: oklch(0.295 0.091 143.053);
  --chart-2: oklch(0.175 0.091 272.59);
  --chart-3: oklch(0.223 0.076 26.844);
  --chart-4: oklch(0.197 0.108 271.412);
  --chart-5: oklch(0.297 0.093 143);
}