Assured for shadcn/ui

Assured is a shadcn/ui theme built around a muted teal primary color (#78a594) with muted pink accents (#a5788a). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the muted teal primary (#78a594) on a neutral background (#020806).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#020806black
Foreground
#03160fblack
#fcfdfdwhite
Card
#f3fbf8mintcream
#040c09black
Card foreground
#03120cblack
#ffffffwhite
Popover
#f7fdfbmintcream
#020806black
Popover foreground
#03160fblack
#fcfdfdwhite
Primary
#78a594cadetblue
#78a594cadetblue
Primary foreground
#000000black
#000000black
Secondary
#a5788arosybrown
#a5788arosybrown
Secondary foreground
#000000black
#000000black
Muted
#e2d5dagainsboro
#2a1d22black
Muted foreground
#604851dimgray
#b79fa8darkgray
Accent
#a5788arosybrown
#a5788arosybrown
Accent foreground
#000000black
#000000black
Destructive
#710909maroon
#ed2626crimson
Destructive foreground
#f9b4b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78a594cadetblue
#78a594cadetblue

Contrast

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

Light mode
Text on background18.07:1AAA
Text on card18.28:1AAA
Primary button7.63:1AAA
Secondary button5.67:1AA
Muted text5.79:1AA
Accent5.67:1AA
Destructive6.98:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.81:1AAA
Primary button7.63:1AAA
Secondary button5.67:1AA
Muted text6.56:1AA
Accent5.67:1AA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 171.407);
  --foreground: oklch(0.181 0.03 166.88);
  --muted: oklch(0.884 0.016 352.089);
  --muted-foreground: oklch(0.431 0.035 353.783);
  --popover: oklch(0.988 0.006 171.407);
  --popover-foreground: oklch(0.181 0.03 166.88);
  --card: oklch(0.982 0.009 171.312);
  --card-foreground: oklch(0.164 0.026 168.548);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.685 0.055 169.03);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.624 0.061 354.213);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.624 0.061 354.213);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.351 0.136 27.981);
  --destructive-foreground: oklch(0.833 0.081 18.928);
  --ring: oklch(0.685 0.055 169.03);
  --chart-1: oklch(0.685 0.055 169.03);
  --chart-2: oklch(0.624 0.061 354.213);
  --chart-3: oklch(0.624 0.061 354.213);
  --chart-4: oklch(0.65 0.056 353.915);
  --chart-5: oklch(0.691 0.062 168.649);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 171.849);
  --foreground: oklch(0.993 0.001 171.574);
  --muted: oklch(0.25 0.022 353.954);
  --muted-foreground: oklch(0.726 0.03 352.747);
  --popover: oklch(0.124 0.015 171.849);
  --popover-foreground: oklch(0.993 0.001 171.574);
  --card: oklch(0.142 0.017 171.469);
  --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.685 0.055 169.03);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.624 0.061 354.213);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.624 0.061 354.213);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.609 0.23 27.59);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.055 169.03);
  --chart-1: oklch(0.685 0.055 169.03);
  --chart-2: oklch(0.624 0.061 354.213);
  --chart-3: oklch(0.624 0.061 354.213);
  --chart-4: oklch(0.65 0.056 353.915);
  --chart-5: oklch(0.691 0.062 168.649);
}