Single for shadcn/ui

Single is a shadcn/ui theme built around a vivid deep green primary color (#061c02) with vivid deep red accents (#1c0206). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the vivid deep green primary (#061c02) on a green-tinted background (#050b05).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#050b05black
Foreground
#000000black
#f6faf5whitesmoke
Card
#f5faf4whitesmoke
#070e06black
Card foreground
#000000black
#f9fbf8mintcream
Popover
#f5faf4whitesmoke
#070e06black
Popover foreground
#000000black
#f9fbf8mintcream
Primary
#061c02black
#061c02black
Primary foreground
#2cd912limegreen
#2cd912limegreen
Secondary
#02061cblack
#02061cblack
Secondary foreground
#bdc5falightsteelblue
#bdc5falightsteelblue
Muted
#ebecf5lavender
#0a0c14black
Muted foreground
#3d3f4ddarkslategray
#b2b4c2silver
Accent
#1c0206black
#1c0206black
Accent foreground
#f25f72salmon
#f25f72salmon
Destructive
#802e05saddlebrown
#f65f13orangered
Destructive foreground
#fdd0bapeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#061c02black
#061c02black

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card19.92:1AAA
Primary button9.37:1AAA
Secondary button11.99:1AAA
Muted text8.85:1AAA
Accent6.26:1AA
Destructive6.46:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.75:1AAA
Primary button9.37:1AAA
Secondary button11.99:1AAA
Muted text9.49:1AAA
Accent6.26:1AA
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 141.573);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.945 0.011 279.156);
  --muted-foreground: oklch(0.371 0.025 278.246);
  --popover: oklch(0.981 0.01 141.564);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.01 141.564);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.202 0.058 140.026);
  --primary-foreground: oklch(0.771 0.253 141.713);
  --secondary: oklch(0.134 0.051 267.671);
  --secondary-foreground: oklch(0.835 0.074 277.841);
  --accent: oklch(0.153 0.05 13.891);
  --accent-foreground: oklch(0.678 0.181 15.374);
  --destructive: oklch(0.415 0.123 41.529);
  --destructive-foreground: oklch(0.891 0.058 48.044);
  --ring: oklch(0.202 0.058 140.026);
  --chart-1: oklch(0.202 0.058 140.026);
  --chart-2: oklch(0.134 0.051 267.671);
  --chart-3: oklch(0.153 0.05 13.891);
  --chart-4: oklch(0.161 0.069 267.968);
  --chart-5: oklch(0.203 0.06 139.963);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.018 140.391);
  --foreground: oklch(0.98 0.007 141.571);
  --muted: oklch(0.156 0.018 277.305);
  --muted-foreground: oklch(0.773 0.02 278.93);
  --popover: oklch(0.154 0.021 140.595);
  --popover-foreground: oklch(0.987 0.005 141.578);
  --card: oklch(0.154 0.021 140.595);
  --card-foreground: oklch(0.987 0.005 141.578);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.202 0.058 140.026);
  --primary-foreground: oklch(0.771 0.253 141.713);
  --secondary: oklch(0.134 0.051 267.671);
  --secondary-foreground: oklch(0.835 0.074 277.841);
  --accent: oklch(0.153 0.05 13.891);
  --accent-foreground: oklch(0.678 0.181 15.374);
  --destructive: oklch(0.674 0.2 41.164);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.202 0.058 140.026);
  --chart-1: oklch(0.202 0.058 140.026);
  --chart-2: oklch(0.134 0.051 267.671);
  --chart-3: oklch(0.153 0.05 13.891);
  --chart-4: oklch(0.161 0.069 267.968);
  --chart-5: oklch(0.203 0.06 139.963);
}