teal dark for shadcn/ui

teal dark is a shadcn/ui theme built around a cyan primary color (#54afb9) with cyan accents (#42aaba). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#54afb9) on a neutral background (#1a1a1a).

Color palette

TokenLightDark
Background
#ffffffwhite
#1a1a1ablack
Foreground
#000000black
#fdfdfcwhite
Card
#ffffffwhite
#121212black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#121212black
Popover foreground
#000000black
#ffffffwhite
Primary
#54afb9cadetblue
#54afb9cadetblue
Primary foreground
#ffffffwhite
#000000black
Secondary
#3c6a93steelblue
#949ba7darkgray
Secondary foreground
#ffffffwhite
#000000black
Muted
#f2f4f7whitesmoke
#232323black
Muted foreground
#3e4147darkslategray
#7e7e7egray
Accent
#42aabalightseagreen
#54afb9cadetblue
Accent foreground
#ffffffwhite
#000000black
Destructive
#a7190cfirebrick
#f03d2dcrimson
Destructive foreground
#ffffffwhite
#000000black
Border
#e8e6e3gainsboro
#141414black
Input
#e8e6e3gainsboro
#1a1a1ablack
Ring
#00afb8lightseagreen
#54afb9cadetblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button2.55:1Fail
Secondary button5.71:1AA
Muted text9.26:1AAA
Accent2.71:1Fail
Destructive7.54:1AAA
Dark mode
Text on background17.18:1AAA
Text on card18.45:1AAA
Primary button8.21:1AAA
Secondary button7.50:1AAA
Muted text3.85:1AA Large
Accent8.21:1AAA
Destructive5.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.966 0.005 263.044);
  --muted-foreground: oklch(0.374 0.011 262.975);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.926 0.004 83.059);
  --input: oklch(0.926 0.004 83.059);
  --primary: oklch(0.702 0.088 204.977);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.51 0.083 247.163);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.686 0.097 209.137);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.468 0.177 30.08);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.117 201.303);
  --chart-1: oklch(0.702 0.088 204.977);
  --chart-2: oklch(0.51 0.083 247.163);
  --chart-3: oklch(0.686 0.097 209.137);
  --chart-4: oklch(0.536 0.088 247.192);
  --chart-5: oklch(0.709 0.092 205.078);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.216 0 180);
  --foreground: oklch(0.993 0.001 83.055);
  --muted: oklch(0.257 0 171.254);
  --muted-foreground: oklch(0.592 0 164.055);
  --popover: oklch(0.181 0 195.945);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.181 0 195.945);
  --card-foreground: oklch(0.993 0.001 83.055);
  --border: oklch(0.189 0 180);
  --input: oklch(0.216 0 180);
  --primary: oklch(0.702 0.088 204.977);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.688 0.019 262.984);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.702 0.088 204.977);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.631 0.217 29.653);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.702 0.088 204.977);
  --chart-1: oklch(0.702 0.088 204.977);
  --chart-2: oklch(0.688 0.019 262.984);
  --chart-3: oklch(0.702 0.088 204.977);
  --chart-4: oklch(0.713 0.017 262.995);
  --chart-5: oklch(0.709 0.092 205.078);
}