Tepid for shadcn/ui

Tepid is a shadcn/ui theme built around a muted yellow primary color (#6f6a58) with muted blue accents (#585d6f). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted yellow primary (#6f6a58) on a yellow-tinted background (#0a0905).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0a0905black
Foreground
#040301black
#fdfdfcwhite
Card
#fcfbf8snow
#0d0c07black
Card foreground
#000000black
#ffffffwhite
Popover
#fefdfbsnow
#0a0905black
Popover foreground
#040301black
#fdfdfcwhite
Primary
#6f6a58dimgray
#6f6a58dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#585d6fdimgray
#585d6fdimgray
Secondary foreground
#fcfcfdwhite
#fcfcfdwhite
Muted
#e1e4eflavender
#10131eblack
Muted foreground
#393c46darkslategray
#b9bcc6silver
Accent
#585d6fdimgray
#585d6fdimgray
Accent foreground
#fcfcfdwhite
#fcfcfdwhite
Destructive
#702700maroon
#ff6714orangered
Destructive foreground
#ffc3a3navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6f6a58dimgray
#6f6a58dimgray

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.30:1AAA
Primary button5.42:1AA
Secondary button6.38:1AA
Muted text8.68:1AAA
Accent6.38:1AA
Destructive6.84:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button5.42:1AA
Secondary button6.38:1AA
Muted text9.75:1AAA
Accent6.38:1AA
Destructive7.18:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 92.68);
  --foreground: oklch(0.101 0.015 98.171);
  --muted: oklch(0.92 0.015 272.481);
  --muted-foreground: oklch(0.359 0.017 272.095);
  --popover: oklch(0.994 0.002 92.68);
  --popover-foreground: oklch(0.101 0.015 98.171);
  --card: oklch(0.988 0.005 92.703);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.523 0.028 93.08);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.481 0.03 271.902);
  --secondary-foreground: oklch(0.992 0.001 272.65);
  --accent: oklch(0.481 0.03 271.902);
  --accent-foreground: oklch(0.992 0.001 272.65);
  --destructive: oklch(0.378 0.113 42.747);
  --destructive-foreground: oklch(0.864 0.081 49.555);
  --ring: oklch(0.523 0.028 93.08);
  --chart-1: oklch(0.523 0.028 93.08);
  --chart-2: oklch(0.481 0.03 271.902);
  --chart-3: oklch(0.481 0.03 271.902);
  --chart-4: oklch(0.506 0.032 271.894);
  --chart-5: oklch(0.529 0.035 93.132);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.01 95.45);
  --foreground: oklch(0.993 0.001 92.668);
  --muted: oklch(0.19 0.023 271.052);
  --muted-foreground: oklch(0.795 0.014 272.467);
  --popover: oklch(0.139 0.01 95.45);
  --popover-foreground: oklch(0.993 0.001 92.668);
  --card: oklch(0.154 0.011 93.984);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.523 0.028 93.08);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.481 0.03 271.902);
  --secondary-foreground: oklch(0.992 0.001 272.65);
  --accent: oklch(0.481 0.03 271.902);
  --accent-foreground: oklch(0.992 0.001 272.65);
  --destructive: oklch(0.697 0.202 42.428);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.523 0.028 93.08);
  --chart-1: oklch(0.523 0.028 93.08);
  --chart-2: oklch(0.481 0.03 271.902);
  --chart-3: oklch(0.481 0.03 271.902);
  --chart-4: oklch(0.506 0.032 271.894);
  --chart-5: oklch(0.529 0.035 93.132);
}