Theme 2 for shadcn/ui

Theme 2 is a shadcn/ui theme built around a muted deep teal primary color (#324d41) with neutral gray accents (#e1e5e3). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#324d41) on a teal-tinted background (#060f0b).

Color palette

TokenLightDark
Background
#fbfefdwhite
#060f0bblack
Foreground
#000000black
#ffffffwhite
Card
#fbfefdwhite
#060f0bblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefdwhite
#060f0bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#324d41darkslategray
#324d41darkslategray
Primary foreground
#d1e1dagainsboro
#d1e1dagainsboro
Secondary
#e1e5e3gainsboro
#2a322edarkslategray
Secondary foreground
#454f4adarkslategray
#c2cbc7silver
Muted
#ecf4f0whitesmoke
#0b1310black
Muted foreground
#535554dimgray
#aaacabdarkgray
Accent
#e1e5e3gainsboro
#2a322edarkslategray
Accent foreground
#454f4adarkslategray
#c2cbc7silver
Destructive
#c9260dfirebrick
#e12b0eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e6eae8lavender
#1f2321black
Input
#e6eae8lavender
#1f2321black
Ring
#324d41darkslategray
#324d41darkslategray

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button6.79:1AA
Secondary button6.68:1AA
Muted text6.70:1AA
Accent6.68:1AA
Destructive5.56:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button6.79:1AA
Secondary button7.97:1AAA
Muted text8.22:1AAA
Accent7.97:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 167.737);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.01 167.521);
  --muted-foreground: oklch(0.448 0.002 167.659);
  --popover: oklch(0.994 0.003 167.737);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 167.737);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.933 0.004 167.696);
  --input: oklch(0.933 0.004 167.696);
  --primary: oklch(0.395 0.039 164.74);
  --primary-foreground: oklch(0.895 0.02 167.19);
  --secondary: oklch(0.918 0.005 167.667);
  --secondary-foreground: oklch(0.417 0.015 166.761);
  --accent: oklch(0.918 0.005 167.667);
  --accent-foreground: oklch(0.417 0.015 166.761);
  --destructive: oklch(0.541 0.201 31.397);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.395 0.039 164.74);
  --chart-1: oklch(0.395 0.039 164.74);
  --chart-2: oklch(0.918 0.005 167.667);
  --chart-3: oklch(0.918 0.005 167.667);
  --chart-4: oklch(0.941 0.003 167.71);
  --chart-5: oklch(0.399 0.044 164.302);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.017 166.016);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.015 165.297);
  --muted-foreground: oklch(0.742 0.002 167.731);
  --popover: oklch(0.156 0.017 166.016);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.017 166.016);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.253 0.008 166.933);
  --input: oklch(0.253 0.008 166.933);
  --primary: oklch(0.395 0.039 164.74);
  --primary-foreground: oklch(0.895 0.02 167.19);
  --secondary: oklch(0.307 0.012 166.718);
  --secondary-foreground: oklch(0.835 0.011 167.436);
  --accent: oklch(0.307 0.012 166.718);
  --accent-foreground: oklch(0.835 0.011 167.436);
  --destructive: oklch(0.588 0.219 31.354);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.395 0.039 164.74);
  --chart-1: oklch(0.395 0.039 164.74);
  --chart-2: oklch(0.307 0.012 166.718);
  --chart-3: oklch(0.307 0.012 166.718);
  --chart-4: oklch(0.338 0.013 166.68);
  --chart-5: oklch(0.399 0.044 164.302);
}