Coverall for shadcn/ui

Coverall is a shadcn/ui theme built around a violet primary color (#541881) with green accents (#458118). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#541881) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030104black
Foreground
#030104black
#f8f6f9whitesmoke
Card
#fdfbfewhite
#030104black
Card foreground
#030104black
#f8f6f9whitesmoke
Popover
#fdfbfewhite
#030104black
Popover foreground
#030104black
#f8f6f9whitesmoke
Primary
#541881indigo
#541881indigo
Primary foreground
#e8d4f7lavender
#e8d4f7lavender
Secondary
#458118darkolivegreen
#458118darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2ebdbgainsboro
#1b2414black
Muted foreground
#5a6a4edimgray
#a1b195darkseagreen
Accent
#458118darkolivegreen
#458118darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ba1708firebrick
#dc1b09red
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#541881indigo
#541881indigo

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button8.34:1AAA
Secondary button4.74:1AA
Muted text4.74:1AA
Accent4.74:1AA
Destructive6.14:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button8.34:1AAA
Secondary button4.74:1AA
Muted text7.06:1AAA
Accent4.74:1AA
Destructive4.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 311.04);
  --foreground: oklch(0.08 0.02 313.139);
  --muted: oklch(0.928 0.023 131.303);
  --muted-foreground: oklch(0.502 0.046 131.949);
  --popover: oklch(0.99 0.005 311.04);
  --popover-foreground: oklch(0.08 0.02 313.139);
  --card: oklch(0.99 0.005 311.04);
  --card-foreground: oklch(0.08 0.02 313.139);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.366 0.164 304.985);
  --primary-foreground: oklch(0.897 0.052 310.583);
  --secondary: oklch(0.543 0.147 135.269);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.147 135.269);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.503 0.196 30.092);
  --destructive-foreground: oklch(0.98 0.009 23.675);
  --ring: oklch(0.366 0.164 304.985);
  --chart-1: oklch(0.366 0.164 304.985);
  --chart-2: oklch(0.543 0.147 135.269);
  --chart-3: oklch(0.543 0.147 135.269);
  --chart-4: oklch(0.581 0.159 135.335);
  --chart-5: oklch(0.366 0.168 304.574);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.019 312.943);
  --foreground: oklch(0.974 0.005 311.037);
  --muted: oklch(0.246 0.031 132.326);
  --muted-foreground: oklch(0.74 0.042 131.603);
  --popover: oklch(0.081 0.019 312.943);
  --popover-foreground: oklch(0.974 0.005 311.037);
  --card: oklch(0.081 0.019 312.943);
  --card-foreground: oklch(0.974 0.005 311.037);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.366 0.164 304.985);
  --primary-foreground: oklch(0.897 0.052 310.583);
  --secondary: oklch(0.543 0.147 135.269);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.147 135.269);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.57 0.223 30.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.366 0.164 304.985);
  --chart-1: oklch(0.366 0.164 304.985);
  --chart-2: oklch(0.543 0.147 135.269);
  --chart-3: oklch(0.543 0.147 135.269);
  --chart-4: oklch(0.581 0.159 135.335);
  --chart-5: oklch(0.366 0.168 304.574);
}