Coleslaw for shadcn/ui

Coleslaw is a shadcn/ui theme built around a vivid light green primary color (#edfdf2) with muted light green accents (#c7d1cb). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the vivid light green primary (#edfdf2) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#f7fcf9mintcream
#010402black
Foreground
#031108black
#fcfdfcwhite
Card
#f7fcf9mintcream
#010402black
Card foreground
#031108black
#fcfdfcwhite
Popover
#f7fcf9mintcream
#010402black
Popover foreground
#031108black
#fcfdfcwhite
Primary
#edfdf2honeydew
#edfdf2honeydew
Primary foreground
#09481fdarkgreen
#09481fdarkgreen
Secondary
#c7d1cblightgrey
#1c211eblack
Secondary foreground
#2e3832darkslategray
#b3bdb6silver
Muted
#d8e8degainsboro
#17271cblack
Muted foreground
#3d5244darkslategray
#adc2b4silver
Accent
#c7d1cblightgrey
#1c211eblack
Accent foreground
#2e3832darkslategray
#b3bdb6silver
Destructive
#6e2508maroon
#f06128chocolate
Destructive foreground
#f9c3aelightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#edfdf2honeydew
#edfdf2honeydew

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.67:1AAA
Primary button10.15:1AAA
Secondary button7.74:1AAA
Muted text6.65:1AA
Accent7.74:1AAA
Destructive6.99:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button10.15:1AAA
Secondary button8.46:1AAA
Muted text8.34:1AAA
Accent8.46:1AAA
Destructive6.44:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 157.841);
  --foreground: oklch(0.161 0.029 156.02);
  --muted: oklch(0.917 0.022 157.476);
  --muted-foreground: oklch(0.417 0.035 156.064);
  --popover: oklch(0.988 0.007 157.841);
  --popover-foreground: oklch(0.161 0.029 156.02);
  --card: oklch(0.988 0.007 157.841);
  --card-foreground: oklch(0.161 0.029 156.02);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.979 0.021 157.522);
  --primary-foreground: oklch(0.354 0.092 149.695);
  --secondary: oklch(0.851 0.013 157.664);
  --secondary-foreground: oklch(0.328 0.016 156.905);
  --accent: oklch(0.851 0.013 157.664);
  --accent-foreground: oklch(0.328 0.016 156.905);
  --destructive: oklch(0.37 0.11 39.134);
  --destructive-foreground: oklch(0.861 0.069 42.607);
  --ring: oklch(0.979 0.021 157.522);
  --chart-1: oklch(0.979 0.021 157.522);
  --chart-2: oklch(0.851 0.013 157.664);
  --chart-3: oklch(0.851 0.013 157.664);
  --chart-4: oklch(0.873 0.011 157.721);
  --chart-5: oklch(0.979 0.022 157.504);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.012 157.747);
  --foreground: oklch(0.993 0.002 157.953);
  --muted: oklch(0.253 0.029 155.252);
  --muted-foreground: oklch(0.795 0.03 157.157);
  --popover: oklch(0.097 0.012 157.747);
  --popover-foreground: oklch(0.993 0.002 157.953);
  --card: oklch(0.097 0.012 157.747);
  --card-foreground: oklch(0.993 0.002 157.953);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.979 0.021 157.522);
  --primary-foreground: oklch(0.354 0.092 149.695);
  --secondary: oklch(0.241 0.008 157.252);
  --secondary-foreground: oklch(0.787 0.014 157.599);
  --accent: oklch(0.241 0.008 157.252);
  --accent-foreground: oklch(0.787 0.014 157.599);
  --destructive: oklch(0.668 0.189 39.82);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.979 0.021 157.522);
  --chart-1: oklch(0.979 0.021 157.522);
  --chart-2: oklch(0.241 0.008 157.252);
  --chart-3: oklch(0.241 0.008 157.252);
  --chart-4: oklch(0.274 0.01 157.202);
  --chart-5: oklch(0.979 0.022 157.504);
}