teal blue theme for shadcn/ui

teal blue theme is a shadcn/ui theme built around a teal primary color (#48a8a5) with teal accents (#67e4e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#48a8a5) on a teal-tinted background (#041010).

Color palette

TokenLightDark
Background
#ffffffwhite
#041010black
Foreground
#010404black
#ffffffwhite
Card
#fcfcfcsnow
#061413black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#041010black
Popover foreground
#010404black
#ffffffwhite
Primary
#48a8a5cadetblue
#48a8a5cadetblue
Primary foreground
#f2f2f2whitesmoke
#0b1919black
Secondary
#eaebeblavender
#283939darkslategray
Secondary foreground
#485151darkslategray
#c0d3d2lightgrey
Muted
#cfe8e7gainsboro
#17302fdarkslategray
Muted foreground
#495a59darkslategray
#a5b6b5darkgray
Accent
#67e4e0aquamarine
#283939darkslategray
Accent foreground
#052e2ddarkslategray
#c0d3d2lightgrey
Destructive
#ef4444tomato
#7f1d1dmaroon
Destructive foreground
#fafafasnow
#fafafasnow
Border
#e6eaealavender
#1f2323black
Input
#e6eaealavender
#1f2323black
Ring
#48a8a5cadetblue
#48a8a5cadetblue

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button2.53:1Fail
Secondary button6.85:1AA
Muted text5.64:1AA
Accent9.60:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background19.32:1AAA
Text on card18.81:1AAA
Primary button6.33:1AA
Secondary button7.77:1AAA
Muted text6.61:1AA
Accent7.77:1AAA
Destructive9.59:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.012 193.372);
  --muted: oklch(0.912 0.026 194.255);
  --muted-foreground: oklch(0.453 0.02 193.969);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.012 193.372);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.934 0.003 194.721);
  --input: oklch(0.934 0.003 194.721);
  --primary: oklch(0.673 0.09 192.229);
  --primary-foreground: oklch(0.961 0 180);
  --secondary: oklch(0.94 0.002 194.755);
  --secondary-foreground: oklch(0.427 0.012 194.281);
  --accent: oklch(0.848 0.111 192.279);
  --accent-foreground: oklch(0.274 0.043 191.596);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.673 0.09 192.229);
  --chart-1: oklch(0.673 0.09 192.229);
  --chart-2: oklch(0.909 0.001 194.763);
  --chart-3: oklch(0.909 0.001 194.763);
  --chart-4: oklch(0.932 0.001 194.77);
  --chart-5: oklch(0.682 0.094 192.107);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.018 192.969);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.29 0.031 192.787);
  --muted-foreground: oklch(0.762 0.018 194.35);
  --popover: oklch(0.161 0.018 192.969);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.177 0.021 192.741);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.253 0.007 194.296);
  --input: oklch(0.253 0.007 194.296);
  --primary: oklch(0.673 0.09 192.229);
  --primary-foreground: oklch(0.2 0.02 192.951);
  --secondary: oklch(0.33 0.023 193.53);
  --secondary-foreground: oklch(0.852 0.021 194.338);
  --accent: oklch(0.33 0.023 193.53);
  --accent-foreground: oklch(0.852 0.021 194.338);
  --destructive: oklch(0.396 0.133 25.721);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.673 0.09 192.229);
  --chart-1: oklch(0.673 0.09 192.229);
  --chart-2: oklch(0.33 0.023 193.53);
  --chart-3: oklch(0.33 0.023 193.53);
  --chart-4: oklch(0.363 0.026 193.497);
  --chart-5: oklch(0.682 0.094 192.107);
}