Guidance for shadcn/ui

Guidance is a shadcn/ui theme built around a vivid teal primary color (#80fecc) with muted light teal accents (#c2d0cb). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the vivid teal primary (#80fecc) on a teal-tinted background (#050a08).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#050a08black
Foreground
#000000black
#fcfdfdwhite
Card
#f3fcf8mintcream
#070e0bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfbmintcream
#050a08black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#80feccaquamarine
#80feccaquamarine
Primary foreground
#004c2edarkgreen
#004c2edarkgreen
Secondary
#dadddcgainsboro
#1d2522black
Secondary foreground
#3f4643darkslategray
#b2c2bcsilver
Muted
#eaf5f1whitesmoke
#0a1510black
Muted foreground
#454545darkslategray
#bababasilver
Accent
#c2d0cblightgrey
#243830darkslategray
Accent foreground
#2a3732darkslategray
#bbd3c9silver
Destructive
#ae2904firebrick
#fa6238tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#80feccaquamarine
#80feccaquamarine

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.07:1AAA
Primary button8.20:1AAA
Secondary button7.07:1AAA
Muted text8.61:1AAA
Accent7.82:1AAA
Destructive6.72:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button8.20:1AAA
Secondary button8.44:1AAA
Muted text9.60:1AAA
Accent7.92:1AAA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 170.414);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.961 0.013 170.232);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.989 0.007 170.414);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.011 170.307);
  --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.912 0.135 165.142);
  --primary-foreground: oklch(0.368 0.085 158.663);
  --secondary: oklch(0.895 0.004 170.485);
  --secondary-foreground: oklch(0.386 0.01 169.88);
  --accent: oklch(0.847 0.017 170.041);
  --accent-foreground: oklch(0.323 0.019 168.813);
  --destructive: oklch(0.493 0.174 34.118);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.135 165.142);
  --chart-1: oklch(0.912 0.135 165.142);
  --chart-2: oklch(0.895 0.004 170.485);
  --chart-3: oklch(0.847 0.017 170.041);
  --chart-4: oklch(0.917 0.003 170.518);
  --chart-5: oklch(0.916 0.138 164.979);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.011 170.793);
  --foreground: oklch(0.994 0.002 170.561);
  --muted: oklch(0.182 0.019 167.258);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.138 0.011 170.793);
  --popover-foreground: oklch(0.994 0.002 170.561);
  --card: oklch(0.153 0.013 169.117);
  --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.912 0.135 165.142);
  --primary-foreground: oklch(0.368 0.085 158.663);
  --secondary: oklch(0.256 0.013 169.108);
  --secondary-foreground: oklch(0.801 0.02 169.88);
  --accent: oklch(0.32 0.029 167.74);
  --accent-foreground: oklch(0.846 0.028 169.628);
  --destructive: oklch(0.686 0.194 36.071);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.912 0.135 165.142);
  --chart-1: oklch(0.912 0.135 165.142);
  --chart-2: oklch(0.256 0.013 169.108);
  --chart-3: oklch(0.32 0.029 167.74);
  --chart-4: oklch(0.289 0.015 169.019);
  --chart-5: oklch(0.916 0.138 164.979);
}