Indolent for shadcn/ui

Indolent is a shadcn/ui theme built around a light yellow primary color (#ecefa9) with neutral gray accents (#e1e1e0). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the light yellow primary (#ecefa9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcf8snow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fbfbf4floralwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcf8snow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#ecefa9palegoldenrod
#ecefa9palegoldenrod
Primary foreground
#535610darkolivegreen
#535610darkolivegreen
Secondary
#e1e1e0gainsboro
#191915black
Secondary foreground
#484847darkslategray
#b6b7a9darkgray
Muted
#f1f2e8linen
#16170dblack
Muted foreground
#4c4c3ddarkslategray
#c1c2b3silver
Accent
#e1e1e0gainsboro
#191915black
Accent foreground
#484847darkslategray
#b6b7a9darkgray
Destructive
#a71502darkred
#e31d02red
Destructive foreground
#ffe0dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecefa9palegoldenrod
#ecefa9palegoldenrod

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.17:1AAA
Primary button6.46:1AA
Secondary button6.97:1AA
Muted text7.73:1AAA
Accent6.97:1AA
Destructive6.18:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.46:1AA
Secondary button8.67:1AAA
Muted text10.02:1AAA
Accent8.67:1AAA
Destructive4.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 108.825);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.958 0.013 108.955);
  --muted-foreground: oklch(0.413 0.024 109.773);
  --popover: oklch(0.99 0.006 108.825);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.009 108.883);
  --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.934 0.09 110.426);
  --primary-foreground: oklch(0.437 0.089 112.482);
  --secondary: oklch(0.909 0.001 108.726);
  --secondary-foreground: oklch(0.402 0.002 108.818);
  --accent: oklch(0.909 0.001 108.726);
  --accent-foreground: oklch(0.402 0.002 108.818);
  --destructive: oklch(0.465 0.18 30.959);
  --destructive-foreground: oklch(0.93 0.035 26.732);
  --ring: oklch(0.934 0.09 110.426);
  --chart-1: oklch(0.934 0.09 110.426);
  --chart-2: oklch(0.909 0.001 108.726);
  --chart-3: oklch(0.909 0.001 108.726);
  --chart-4: oklch(0.932 0.001 108.721);
  --chart-5: oklch(0.938 0.093 110.484);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.018 110.338);
  --muted-foreground: oklch(0.808 0.021 109.182);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.934 0.09 110.426);
  --primary-foreground: oklch(0.437 0.089 112.482);
  --secondary: oklch(0.212 0.008 109.39);
  --secondary-foreground: oklch(0.775 0.02 109.177);
  --accent: oklch(0.212 0.008 109.39);
  --accent-foreground: oklch(0.775 0.02 109.177);
  --destructive: oklch(0.584 0.229 30.641);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.934 0.09 110.426);
  --chart-1: oklch(0.934 0.09 110.426);
  --chart-2: oklch(0.212 0.008 109.39);
  --chart-3: oklch(0.212 0.008 109.39);
  --chart-4: oklch(0.247 0.01 109.456);
  --chart-5: oklch(0.938 0.093 110.484);
}