Insurance for shadcn/ui

Insurance is a shadcn/ui theme built around a green primary color (#82ed87) with muted light green accents (#bcd7bd). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#82ed87) on a green-tinted background (#070d07).

Color palette

TokenLightDark
Background
#fbfefbwhite
#070d07black
Foreground
#000000black
#ffffffwhite
Card
#fbfefbwhite
#070d07black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefbwhite
#070d07black
Popover foreground
#000000black
#ffffffwhite
Primary
#82ed87lightgreen
#82ed87lightgreen
Primary foreground
#08360adarkgreen
#08360adarkgreen
Secondary
#d4e2d5gainsboro
#121712black
Secondary foreground
#355036darkslategray
#a3b8a4darkgray
Muted
#e9ece9linen
#131613black
Muted foreground
#516c52dimgray
#93ae95darkseagreen
Accent
#bcd7bdsilver
#233424darkslategray
Accent foreground
#243d26darkslategray
#b9d0basilver
Destructive
#d20f04red
#fb3328orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#82ed87lightgreen
#82ed87lightgreen

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button9.35:1AAA
Secondary button6.67:1AA
Muted text4.88:1AA
Accent7.67:1AAA
Destructive5.51:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button9.35:1AAA
Secondary button8.59:1AAA
Muted text7.57:1AAA
Accent8.06:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 146.993);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.005 146.985);
  --muted-foreground: oklch(0.501 0.05 146.051);
  --popover: oklch(0.994 0.005 146.993);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.005 146.993);
  --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.858 0.17 144.935);
  --primary-foreground: oklch(0.29 0.086 143.631);
  --secondary: oklch(0.9 0.024 146.789);
  --secondary-foreground: oklch(0.401 0.053 145.711);
  --accent: oklch(0.852 0.045 146.533);
  --accent-foreground: oklch(0.331 0.05 145.491);
  --destructive: oklch(0.546 0.219 29.587);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.17 144.935);
  --chart-1: oklch(0.858 0.17 144.935);
  --chart-2: oklch(0.9 0.024 146.789);
  --chart-3: oklch(0.852 0.045 146.533);
  --chart-4: oklch(0.921 0.019 146.849);
  --chart-5: oklch(0.862 0.176 144.862);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.151 0.017 146.134);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.008 146.652);
  --muted-foreground: oklch(0.723 0.046 146.423);
  --popover: oklch(0.151 0.017 146.134);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.151 0.017 146.134);
  --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.858 0.17 144.935);
  --primary-foreground: oklch(0.29 0.086 143.631);
  --secondary: oklch(0.197 0.013 146.411);
  --secondary-foreground: oklch(0.761 0.037 146.578);
  --accent: oklch(0.304 0.037 145.82);
  --accent-foreground: oklch(0.834 0.04 146.584);
  --destructive: oklch(0.64 0.235 28.852);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.17 144.935);
  --chart-1: oklch(0.858 0.17 144.935);
  --chart-2: oklch(0.197 0.013 146.411);
  --chart-3: oklch(0.304 0.037 145.82);
  --chart-4: oklch(0.232 0.017 146.333);
  --chart-5: oklch(0.862 0.176 144.862);
}