Safe for shadcn/ui

Safe is a shadcn/ui theme built around a light cyan primary color (#b5d3d9) with light red accents (#d9bab5). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the light cyan primary (#b5d3d9) on a cyan-tinted background (#050a0b).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050a0bblack
Foreground
#050e10black
#f9fbfbghostwhite
Card
#f8fbfcghostwhite
#060d0eblack
Card foreground
#040a0cblack
#fcfdfdwhite
Popover
#f8fbfcghostwhite
#060d0eblack
Popover foreground
#040a0cblack
#fcfdfdwhite
Primary
#b5d3d9lightblue
#b5d3d9lightblue
Primary foreground
#1f383ddarkslategray
#1f383ddarkslategray
Secondary
#d9bab5silver
#d9bab5silver
Secondary foreground
#3d241fdarkslategray
#3d241fdarkslategray
Muted
#e4d6d3gainsboro
#2c1e1bblack
Muted foreground
#484241darkslategray
#beb8b7silver
Accent
#d9bab5silver
#d9bab5silver
Accent foreground
#3d241fdarkslategray
#3d241fdarkslategray
Destructive
#772109maroon
#f0633dtomato
Destructive foreground
#fac6b8lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b5d3d9lightblue
#b5d3d9lightblue

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.18:1AAA
Primary button7.88:1AAA
Secondary button7.93:1AAA
Muted text6.94:1AA
Accent7.93:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.21:1AAA
Primary button7.88:1AAA
Secondary button7.93:1AAA
Muted text8.20:1AAA
Accent7.93:1AAA
Destructive6.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 209.464);
  --foreground: oklch(0.155 0.016 208.466);
  --muted: oklch(0.885 0.016 29.537);
  --muted-foreground: oklch(0.386 0.008 29.553);
  --popover: oklch(0.986 0.003 209.459);
  --popover-foreground: oklch(0.139 0.014 206.912);
  --card: oklch(0.986 0.003 209.459);
  --card-foreground: oklch(0.139 0.014 206.912);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.848 0.033 209.443);
  --primary-foreground: oklch(0.323 0.032 209.93);
  --secondary: oklch(0.815 0.036 29.687);
  --secondary-foreground: oklch(0.289 0.039 30.541);
  --accent: oklch(0.815 0.036 29.687);
  --accent-foreground: oklch(0.289 0.039 30.541);
  --destructive: oklch(0.382 0.124 35.231);
  --destructive-foreground: oklch(0.869 0.062 35.979);
  --ring: oklch(0.848 0.033 209.443);
  --chart-1: oklch(0.848 0.033 209.443);
  --chart-2: oklch(0.815 0.036 29.687);
  --chart-3: oklch(0.815 0.036 29.687);
  --chart-4: oklch(0.84 0.031 29.638);
  --chart-5: oklch(0.849 0.036 209.451);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.01 207.07);
  --foreground: oklch(0.986 0.002 209.462);
  --muted: oklch(0.251 0.023 30.057);
  --muted-foreground: oklch(0.786 0.007 29.498);
  --popover: oklch(0.152 0.012 208.67);
  --popover-foreground: oklch(0.993 0.001 209.465);
  --card: oklch(0.152 0.012 208.67);
  --card-foreground: oklch(0.993 0.001 209.465);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.848 0.033 209.443);
  --primary-foreground: oklch(0.323 0.032 209.93);
  --secondary: oklch(0.815 0.036 29.687);
  --secondary-foreground: oklch(0.289 0.039 30.541);
  --accent: oklch(0.815 0.036 29.687);
  --accent-foreground: oklch(0.289 0.039 30.541);
  --destructive: oklch(0.674 0.182 36.205);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.848 0.033 209.443);
  --chart-1: oklch(0.848 0.033 209.443);
  --chart-2: oklch(0.815 0.036 29.687);
  --chart-3: oklch(0.815 0.036 29.687);
  --chart-4: oklch(0.84 0.031 29.638);
  --chart-5: oklch(0.849 0.036 209.451);
}