Tailwind_colors_v1 for shadcn/ui

Tailwind_colors_v1 is a shadcn/ui theme built around a vivid deep teal primary color (#118577) with light blue accents (#f1f5f9). The light mode uses a neutral background (#ffffff). Dark mode switches to a teal primary (#379a86) on a blue-tinted background (#020817).

Color palette

TokenLightDark
Background
#ffffffwhite
#020817black
Foreground
#020817black
#f8fafcghostwhite
Card
#fafbfcghostwhite
#020817black
Card foreground
#020817black
#fafafasnow
Popover
#ffffffwhite
#020817black
Popover foreground
#020817black
#f8fafcghostwhite
Primary
#118577teal
#379a86mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2a0f0fblack
#1e293bdarkslategray
Secondary foreground
#f8fafcghostwhite
#f8fafcghostwhite
Muted
#f1f5f9whitesmoke
#1e293bdarkslategray
Muted foreground
#5f6f86slategray
#94a3b8darkgray
Accent
#f1f5f9whitesmoke
#1e293bdarkslategray
Accent foreground
#0f172ablack
#f8fafcghostwhite
Destructive
#ef4444tomato
#e45252indianred
Destructive foreground
#fcf8f8snow
#f8fafcghostwhite
Border
#e2e8f0lavender
#1e293bdarkslategray
Input
#e2e8f0lavender
#1e293bdarkslategray
Ring
#020817black
#cbd5e1lightgrey

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card19.30:1AAA
Primary button4.52:1AA
Secondary button17.09:1AAA
Muted text4.67:1AA
Accent16.30:1AAA
Destructive3.56:1AA Large
Dark mode
Text on background19.10:1AAA
Text on card19.14:1AAA
Primary button3.43:1AA Large
Secondary button13.95:1AAA
Muted text5.69:1AA
Accent13.95:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.036 258.526);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.537 0.041 257.41);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.036 258.526);
  --card: oklch(0.988 0.002 247.839);
  --card-foreground: oklch(0.137 0.036 258.526);
  --border: oklch(0.929 0.013 255.532);
  --input: oklch(0.929 0.013 255.532);
  --primary: oklch(0.555 0.096 181.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.211 0.045 21.661);
  --secondary-foreground: oklch(0.984 0.003 247.858);
  --accent: oklch(0.968 0.007 247.895);
  --accent-foreground: oklch(0.208 0.04 265.727);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.982 0.004 17.231);
  --ring: oklch(0.137 0.036 258.526);
  --chart-1: oklch(0.623 0.096 177.258);
  --chart-2: oklch(0.931 0.001 183.169);
  --chart-3: oklch(0.931 0.001 183.169);
  --chart-4: oklch(0.954 0 183.174);
  --chart-5: oklch(0.63 0.1 176.907);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.036 258.526);
  --foreground: oklch(0.984 0.003 247.859);
  --muted: oklch(0.28 0.037 259.974);
  --muted-foreground: oklch(0.711 0.035 256.788);
  --popover: oklch(0.137 0.036 258.526);
  --popover-foreground: oklch(0.984 0.003 247.859);
  --card: oklch(0.137 0.036 258.526);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.28 0.037 259.974);
  --input: oklch(0.28 0.037 259.974);
  --primary: oklch(0.623 0.096 177.258);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.28 0.037 259.974);
  --secondary-foreground: oklch(0.984 0.003 247.859);
  --accent: oklch(0.28 0.037 259.974);
  --accent-foreground: oklch(0.984 0.003 247.859);
  --destructive: oklch(0.636 0.182 23.857);
  --destructive-foreground: oklch(0.984 0.003 247.859);
  --ring: oklch(0.87 0.02 252.846);
  --chart-1: oklch(0.623 0.096 177.258);
  --chart-2: oklch(0.312 0.001 183.061);
  --chart-3: oklch(0.312 0.001 183.061);
  --chart-4: oklch(0.342 0.002 183.057);
  --chart-5: oklch(0.63 0.1 176.907);
}