Coverage for shadcn/ui

Coverage is a shadcn/ui theme built around a vivid purple primary color (#c11bde) with vivid teal accents (#1bdec1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#c11bde) on a neutral background (#070308).

Color palette

TokenLightDark
Background
#ffffffwhite
#070308black
Foreground
#040105black
#fdfcfdwhite
Card
#fcfcfcsnow
#0a040bblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070308black
Popover foreground
#040105black
#fdfcfdwhite
Primary
#c11bdedarkorchid
#c11bdedarkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dec11bgoldenrod
#dec11bgoldenrod
Secondary foreground
#292305black
#292305black
Muted
#f0efealinen
#15140fblack
Muted foreground
#686764dimgray
#9b9a97darkgray
Accent
#1bdec1darkturquoise
#1bdec1darkturquoise
Accent foreground
#052923black
#052923black
Destructive
#a4300afirebrick
#f46c3etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c11bdedarkorchid
#c11bdedarkorchid

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button4.67:1AA
Secondary button8.81:1AAA
Muted text4.91:1AA
Accent9.13:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.29:1AAA
Primary button4.67:1AA
Secondary button8.81:1AAA
Muted text6.56:1AA
Accent9.13:1AAA
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.028 323.662);
  --muted: oklch(0.952 0.007 98.414);
  --muted-foreground: oklch(0.515 0.005 98.465);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.028 323.662);
  --card: oklch(0.992 0 161.565);
  --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.596 0.272 320.529);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.812 0.163 97.711);
  --secondary-foreground: oklch(0.257 0.047 99.283);
  --accent: oklch(0.809 0.145 178.388);
  --accent-foreground: oklch(0.254 0.041 180.82);
  --destructive: oklch(0.482 0.158 36.257);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.272 320.529);
  --chart-1: oklch(0.596 0.272 320.529);
  --chart-2: oklch(0.812 0.163 97.711);
  --chart-3: oklch(0.809 0.145 178.388);
  --chart-4: oklch(0.831 0.164 98.076);
  --chart-5: oklch(0.601 0.277 320.412);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.021 322.687);
  --foreground: oklch(0.992 0.002 321.071);
  --muted: oklch(0.19 0.01 98.962);
  --muted-foreground: oklch(0.687 0.005 98.421);
  --popover: oklch(0.108 0.021 322.687);
  --popover-foreground: oklch(0.992 0.002 321.071);
  --card: oklch(0.123 0.025 322.492);
  --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.596 0.272 320.529);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.812 0.163 97.711);
  --secondary-foreground: oklch(0.257 0.047 99.283);
  --accent: oklch(0.809 0.145 178.388);
  --accent-foreground: oklch(0.254 0.041 180.82);
  --destructive: oklch(0.69 0.178 38.478);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.596 0.272 320.529);
  --chart-1: oklch(0.596 0.272 320.529);
  --chart-2: oklch(0.812 0.163 97.711);
  --chart-3: oklch(0.809 0.145 178.388);
  --chart-4: oklch(0.831 0.164 98.076);
  --chart-5: oklch(0.601 0.277 320.412);
}