Safari for shadcn/ui

Safari is a shadcn/ui theme built around a vivid green primary color (#05941d) with muted green accents (#b9c6bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#05941d) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#060e07black
Foreground
#031607black
#ffffffwhite
Card
#fcfcfcsnow
#081209black
Card foreground
#031205black
#ffffffwhite
Popover
#fcfcfcsnow
#081209black
Popover foreground
#031205black
#ffffffwhite
Primary
#05941dforestgreen
#05941dforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cecfcelightgrey
#1f2320black
Secondary foreground
#353635darkslategray
#b7beb8silver
Muted
#f1f3f2whitesmoke
#0c0e0cblack
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#b9c6bbsilver
#303b32darkslategray
Accent foreground
#222a24darkslategray
#c9d4cblightgrey
Destructive
#991700darkred
#ff2f0aorangered
Destructive foreground
#ffd4ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#05941dforestgreen
#05941dforestgreen

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.80:1AAA
Primary button3.97:1AA Large
Secondary button7.77:1AAA
Muted text8.34:1AAA
Accent8.29:1AAA
Destructive6.27:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.08:1AAA
Primary button3.97:1AA Large
Secondary button8.39:1AAA
Muted text9.78:1AAA
Accent7.62:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.179 0.041 148.169);
  --muted: oklch(0.963 0.003 150.782);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.161 0.036 148.785);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.161 0.036 148.785);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.58 0.188 143.845);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.002 150.796);
  --secondary-foreground: oklch(0.332 0.002 150.733);
  --accent: oklch(0.812 0.02 150.475);
  --accent-foreground: oklch(0.276 0.016 150.005);
  --destructive: oklch(0.439 0.167 31.962);
  --destructive-foreground: oklch(0.904 0.05 29.766);
  --ring: oklch(0.58 0.188 143.845);
  --chart-1: oklch(0.58 0.188 143.845);
  --chart-2: oklch(0.854 0.002 150.796);
  --chart-3: oklch(0.812 0.02 150.475);
  --chart-4: oklch(0.877 0.001 150.801);
  --chart-5: oklch(0.586 0.191 143.745);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.021 149.667);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.159 0.004 150.45);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.168 0.024 149.05);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.168 0.024 149.05);
  --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.58 0.188 143.845);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.251 0.007 150.43);
  --secondary-foreground: oklch(0.793 0.011 150.63);
  --accent: oklch(0.34 0.023 149.848);
  --accent-foreground: oklch(0.859 0.017 150.552);
  --destructive: oklch(0.644 0.243 31.562);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.58 0.188 143.845);
  --chart-1: oklch(0.58 0.188 143.845);
  --chart-2: oklch(0.251 0.007 150.43);
  --chart-3: oklch(0.34 0.023 149.848);
  --chart-4: oklch(0.283 0.008 150.407);
  --chart-5: oklch(0.586 0.191 143.745);
}