All for shadcn/ui

All is a shadcn/ui theme built around a teal primary color (#23a97c) with muted light teal accents (#c1dcd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#23a97c) on a teal-tinted background (#04100c).

Color palette

TokenLightDark
Background
#ffffffwhite
#04100cblack
Foreground
#000000black
#fcfdfdwhite
Card
#fcfcfcsnow
#05140fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#05140fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#23a97cmediumseagreen
#23a97cmediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d7e4e0gainsboro
#191a1ablack
Secondary foreground
#375349darkslategray
#b2b3b3darkgray
Muted
#d1e6dfgainsboro
#192e27darkslategray
Muted foreground
#5e6462dimgray
#9ba19fdarkgray
Accent
#c1dcd3lightgrey
#303634darkslategray
Accent foreground
#27453bdarkslategray
#c9cfcdlightgrey
Destructive
#700c05maroon
#f53224orangered
Destructive foreground
#fbb1aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#23a97cmediumseagreen
#23a97cmediumseagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button2.97:1Fail
Secondary button6.45:1AA
Muted text4.61:1AA
Accent7.22:1AAA
Destructive6.86:1AA
Dark mode
Text on background18.96:1AAA
Text on card18.80:1AAA
Primary button2.97:1Fail
Secondary button8.31:1AAA
Muted text5.46:1AA
Accent7.80:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.024 173.8);
  --muted-foreground: oklch(0.497 0.008 174.121);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.656 0.13 164.736);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.909 0.015 174.087);
  --secondary-foreground: oklch(0.416 0.037 171.67);
  --accent: oklch(0.872 0.031 173.498);
  --accent-foreground: oklch(0.362 0.04 170.707);
  --destructive: oklch(0.35 0.133 29.862);
  --destructive-foreground: oklch(0.83 0.087 23.679);
  --ring: oklch(0.656 0.13 164.736);
  --chart-1: oklch(0.656 0.13 164.736);
  --chart-2: oklch(0.909 0.015 174.087);
  --chart-3: oklch(0.872 0.031 173.498);
  --chart-4: oklch(0.93 0.012 174.215);
  --chart-5: oklch(0.664 0.134 164.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.021 171.969);
  --foreground: oklch(0.994 0.002 174.529);
  --muted: oklch(0.281 0.03 170.943);
  --muted-foreground: oklch(0.704 0.007 174.287);
  --popover: oklch(0.177 0.025 170.517);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.177 0.025 170.517);
  --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.656 0.13 164.736);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.216 0.001 174.472);
  --secondary-foreground: oklch(0.766 0.002 174.516);
  --accent: oklch(0.327 0.009 173.752);
  --accent-foreground: oklch(0.849 0.007 174.337);
  --destructive: oklch(0.629 0.23 29.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.656 0.13 164.736);
  --chart-1: oklch(0.656 0.13 164.736);
  --chart-2: oklch(0.216 0.001 174.472);
  --chart-3: oklch(0.327 0.009 173.752);
  --chart-4: oklch(0.249 0.001 174.462);
  --chart-5: oklch(0.664 0.134 164.323);
}