Insurance for shadcn/ui

Insurance is a shadcn/ui theme built around a muted blue primary color (#434c7a) with muted violet accents (#55437a). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted blue primary (#434c7a) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#020308black
Foreground
#020308black
#fcfcfdwhite
Card
#f2f4fcaliceblue
#03050cblack
Card foreground
#010204black
#ffffffwhite
Popover
#f2f4fcaliceblue
#03050cblack
Popover foreground
#010204black
#ffffffwhite
Primary
#434c7adarkslateblue
#434c7adarkslateblue
Primary foreground
#f5f6fawhitesmoke
#f5f6fawhitesmoke
Secondary
#43677adimgray
#43677adimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8e0e4gainsboro
#1b2327black
Muted foreground
#4f5d64dimgray
#9ba9b0darkgray
Accent
#55437adarkslateblue
#55437adarkslateblue
Accent foreground
#f7f5fawhitesmoke
#f7f5fawhitesmoke
Destructive
#b71b10firebrick
#e62214crimson
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#434c7adarkslateblue
#434c7adarkslateblue

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card18.91:1AAA
Primary button7.61:1AAA
Secondary button6.03:1AA
Muted text5.08:1AA
Accent7.85:1AAA
Destructive6.42:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.37:1AAA
Primary button7.61:1AAA
Secondary button6.03:1AA
Muted text6.59:1AA
Accent7.85:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 277.153);
  --foreground: oklch(0.1 0.018 270.072);
  --muted: oklch(0.901 0.01 228.9);
  --muted-foreground: oklch(0.468 0.021 229.432);
  --popover: oklch(0.968 0.011 277.096);
  --popover-foreground: oklch(0.079 0.014 270.072);
  --card: oklch(0.968 0.011 277.096);
  --card-foreground: oklch(0.079 0.014 270.072);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.43 0.076 274.163);
  --primary-foreground: oklch(0.973 0.005 277.189);
  --secondary: oklch(0.495 0.051 230.812);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.427 0.09 297.843);
  --accent-foreground: oklch(0.973 0.006 301.392);
  --destructive: oklch(0.5 0.19 29.66);
  --destructive-foreground: oklch(0.99 0.004 22.263);
  --ring: oklch(0.43 0.076 274.163);
  --chart-1: oklch(0.43 0.076 274.163);
  --chart-2: oklch(0.495 0.051 230.812);
  --chart-3: oklch(0.427 0.09 297.843);
  --chart-4: oklch(0.523 0.054 230.84);
  --chart-5: oklch(0.425 0.084 273.73);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.017 270.755);
  --foreground: oklch(0.991 0.002 277.237);
  --muted: oklch(0.251 0.014 229.61);
  --muted-foreground: oklch(0.727 0.019 229.118);
  --popover: oklch(0.116 0.019 270.849);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.116 0.019 270.849);
  --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.43 0.076 274.163);
  --primary-foreground: oklch(0.973 0.005 277.189);
  --secondary: oklch(0.495 0.051 230.812);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.427 0.09 297.843);
  --accent-foreground: oklch(0.973 0.006 301.392);
  --destructive: oklch(0.592 0.227 29.705);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.43 0.076 274.163);
  --chart-1: oklch(0.43 0.076 274.163);
  --chart-2: oklch(0.495 0.051 230.812);
  --chart-3: oklch(0.427 0.09 297.843);
  --chart-4: oklch(0.523 0.054 230.84);
  --chart-5: oklch(0.425 0.084 273.73);
}