Tepid for shadcn/ui

Tepid is a shadcn/ui theme built around a vivid indigo primary color (#442df0) with muted light indigo accents (#dddce5). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid indigo primary (#442df0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f9f8fcghostwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#f9f8fcghostwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#442df0royalblue
#442df0royalblue
Primary foreground
#eeecfelavender
#eeecfelavender
Secondary
#dddce5gainsboro
#121118black
Secondary foreground
#3f3c53darkslategray
#a3a0bbdarkgray
Muted
#e2e1eagainsboro
#16151eblack
Muted foreground
#555558dimgray
#a7a7aadarkgray
Accent
#dddce5gainsboro
#121118black
Accent foreground
#3f3c53darkslategray
#a3a0bbdarkgray
Destructive
#9f1604darkred
#fa4129orangered
Destructive foreground
#fedcd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#442df0royalblue
#442df0royalblue

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button6.25:1AA
Secondary button7.75:1AAA
Muted text5.74:1AA
Accent7.75:1AAA
Destructive6.33:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.25:1AA
Secondary button7.42:1AAA
Muted text7.52:1AAA
Accent7.42:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 291.696);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.914 0.011 291.551);
  --muted-foreground: oklch(0.451 0.006 291.545);
  --popover: oklch(0.981 0.004 291.696);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.004 291.696);
  --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.484 0.267 275.011);
  --primary-foreground: oklch(0.95 0.024 291.303);
  --secondary: oklch(0.897 0.013 291.499);
  --secondary-foreground: oklch(0.368 0.039 289.683);
  --accent: oklch(0.897 0.013 291.499);
  --accent-foreground: oklch(0.368 0.039 289.683);
  --destructive: oklch(0.451 0.172 30.964);
  --destructive-foreground: oklch(0.921 0.039 26.775);
  --ring: oklch(0.484 0.267 275.011);
  --chart-1: oklch(0.484 0.267 275.011);
  --chart-2: oklch(0.897 0.013 291.499);
  --chart-3: oklch(0.897 0.013 291.499);
  --chart-4: oklch(0.923 0.01 291.577);
  --chart-5: oklch(0.483 0.274 274.214);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.203 0.016 290.221);
  --muted-foreground: oklch(0.728 0.005 291.651);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.484 0.267 275.011);
  --primary-foreground: oklch(0.95 0.024 291.303);
  --secondary: oklch(0.182 0.014 290.263);
  --secondary-foreground: oklch(0.716 0.04 290.701);
  --accent: oklch(0.182 0.014 290.263);
  --accent-foreground: oklch(0.716 0.04 290.701);
  --destructive: oklch(0.65 0.223 31.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.484 0.267 275.011);
  --chart-1: oklch(0.484 0.267 275.011);
  --chart-2: oklch(0.182 0.014 290.263);
  --chart-3: oklch(0.182 0.014 290.263);
  --chart-4: oklch(0.212 0.019 290.047);
  --chart-5: oklch(0.483 0.274 274.214);
}