Single for shadcn/ui

Single is a shadcn/ui theme built around a vivid light green primary color (#bdfda0) with muted green accents (#b6ceab). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#bdfda0) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#ffffffwhite
#020302black
Foreground
#050e02black
#fcfdfbsnow
Card
#fcfcfcsnow
#040703black
Card foreground
#040901black
#ffffffwhite
Popover
#ffffffwhite
#020302black
Popover foreground
#050e02black
#fcfdfbsnow
Primary
#bdfda0palegreen
#bdfda0palegreen
Primary foreground
#020500black
#020500black
Secondary
#ced9c9lightgrey
#2f352cdarkslategray
Secondary foreground
#34422edarkslategray
#c8cec5silver
Muted
#dadfd7gainsboro
#222820black
Muted foreground
#484e46darkslategray
#b3b9b1darkgray
Accent
#b6ceabsilver
#3c4a36darkslategray
Accent foreground
#202d1ablack
#d7dfd3gainsboro
Destructive
#df0101red
#fe0606red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdfda0palegreen
#bdfda0palegreen

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.66:1AAA
Primary button17.32:1AAA
Secondary button7.34:1AAA
Muted text6.33:1AA
Accent8.55:1AAA
Destructive5.05:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.25:1AAA
Primary button17.32:1AAA
Secondary button7.87:1AAA
Muted text7.55:1AAA
Accent6.92:1AA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.034 133.527);
  --muted: oklch(0.898 0.012 135.485);
  --muted-foreground: oklch(0.417 0.016 135.601);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.034 133.527);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.029 133.204);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.137 136.2);
  --primary-foreground: oklch(0.104 0.028 132.761);
  --secondary: oklch(0.873 0.025 135.555);
  --secondary-foreground: oklch(0.361 0.038 135.937);
  --accent: oklch(0.824 0.054 135.722);
  --accent-foreground: oklch(0.279 0.037 136.102);
  --destructive: oklch(0.568 0.233 29.196);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.137 136.2);
  --chart-1: oklch(0.93 0.137 136.2);
  --chart-2: oklch(0.873 0.025 135.555);
  --chart-3: oklch(0.824 0.054 135.722);
  --chart-4: oklch(0.895 0.021 135.53);
  --chart-5: oklch(0.932 0.141 136.227);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 134.425);
  --foreground: oklch(0.994 0.003 135.441);
  --muted: oklch(0.267 0.016 135.701);
  --muted-foreground: oklch(0.78 0.014 135.506);
  --popover: oklch(0.096 0.01 134.425);
  --popover-foreground: oklch(0.994 0.003 135.441);
  --card: oklch(0.121 0.013 134.425);
  --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.93 0.137 136.2);
  --primary-foreground: oklch(0.104 0.028 132.761);
  --secondary: oklch(0.319 0.017 135.668);
  --secondary-foreground: oklch(0.844 0.015 135.504);
  --accent: oklch(0.39 0.038 135.889);
  --accent-foreground: oklch(0.893 0.019 135.519);
  --destructive: oklch(0.627 0.255 29.075);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.137 136.2);
  --chart-1: oklch(0.93 0.137 136.2);
  --chart-2: oklch(0.319 0.017 135.668);
  --chart-3: oklch(0.39 0.038 135.889);
  --chart-4: oklch(0.351 0.019 135.676);
  --chart-5: oklch(0.932 0.141 136.227);
}