teal for shadcn/ui

teal 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 switches to an orange primary (#be9a55) on an orange-tinted background (#0c0903).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0903black
Foreground
#000000black
#fdfdfcwhite
Card
#ffffffwhite
#0c0903black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#0c0903black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#54afb9cadetblue
#be9a55peru
Primary foreground
#ffffffwhite
#000000black
Secondary
#3c6a93steelblue
#557abesteelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f4f7whitesmoke
#1d232fdarkslategray
Muted foreground
#3e4147darkslategray
#b8bbc1silver
Accent
#42aabalightseagreen
#557abesteelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a7190cfirebrick
#f03d2dcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e6e3gainsboro
#1c1a17black
Input
#e8e6e3gainsboro
#1c1a17black
Ring
#00afb8lightseagreen
#be9a55peru

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 background19.53:1AAA
Text on card19.53:1AAA
Primary button7.92:1AAA
Secondary button4.27:1AA Large
Muted text8.14:1AAA
Accent4.27:1AA Large
Destructive3.86:1AA Large

CSS variables

Paste this into your globals.css to use teal 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.141 0.016 88.752);
  --foreground: oklch(0.993 0.001 83.055);
  --muted: oklch(0.257 0.024 262.64);
  --muted-foreground: oklch(0.792 0.009 263.031);
  --popover: oklch(0.141 0.016 88.752);
  --popover-foreground: oklch(0.993 0.001 83.055);
  --card: oklch(0.141 0.016 88.752);
  --card-foreground: oklch(0.993 0.001 83.055);
  --border: oklch(0.219 0.006 83.056);
  --input: oklch(0.219 0.006 83.056);
  --primary: oklch(0.704 0.098 81.543);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.583 0.114 261.964);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.583 0.114 261.964);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.217 29.653);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.704 0.098 81.543);
  --chart-1: oklch(0.704 0.098 81.543);
  --chart-2: oklch(0.583 0.114 261.964);
  --chart-3: oklch(0.583 0.114 261.964);
  --chart-4: oklch(0.61 0.106 262.115);
  --chart-5: oklch(0.71 0.103 81.295);
}