Indolent for shadcn/ui

Indolent is a shadcn/ui theme built around a teal primary color (#2c817c) with red accents (#812c32). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the teal primary (#2c817c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#000000black
Foreground
#010404black
#fcfdfdwhite
Card
#f3fcfbmintcream
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f3fcfbmintcream
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#2c817cseagreen
#2c817cseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#812c32brown
#812c32brown
Secondary foreground
#f7e8e9linen
#f7e8e9linen
Muted
#f3f2f2whitesmoke
#0d0c0cblack
Muted foreground
#624b4ddimgray
#b49d9fdarkgray
Accent
#812c32brown
#812c32brown
Accent foreground
#f7e8e9linen
#f7e8e9linen
Destructive
#921c0cdarkred
#ec2c13orangered
Destructive foreground
#fcd9d5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2c817cseagreen
#2c817cseagreen

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card20.08:1AAA
Primary button4.61:1AA
Secondary button7.53:1AAA
Muted text7.11:1AAA
Accent7.53:1AAA
Destructive6.69:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.67:1AAA
Primary button4.61:1AA
Secondary button7.53:1AAA
Muted text7.67:1AAA
Accent7.53:1AAA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 192.299);
  --foreground: oklch(0.099 0.011 191.398);
  --muted: oklch(0.961 0.001 12.457);
  --muted-foreground: oklch(0.439 0.031 13.919);
  --popover: oklch(0.983 0.009 192.235);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.009 192.235);
  --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.552 0.08 188.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.421 0.117 19.838);
  --secondary-foreground: oklch(0.944 0.016 12.79);
  --accent: oklch(0.421 0.117 19.838);
  --accent-foreground: oklch(0.944 0.016 12.79);
  --destructive: oklch(0.43 0.156 31.029);
  --destructive-foreground: oklch(0.913 0.039 26.783);
  --ring: oklch(0.552 0.08 188.835);
  --chart-1: oklch(0.552 0.08 188.835);
  --chart-2: oklch(0.421 0.117 19.838);
  --chart-3: oklch(0.421 0.117 19.838);
  --chart-4: oklch(0.447 0.125 19.946);
  --chart-5: oklch(0.559 0.084 188.673);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 192.4);
  --muted: oklch(0.156 0.002 12.718);
  --muted-foreground: oklch(0.716 0.027 13.211);
  --popover: oklch(0.092 0 180);
  --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.552 0.08 188.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.421 0.117 19.838);
  --secondary-foreground: oklch(0.944 0.016 12.79);
  --accent: oklch(0.421 0.117 19.838);
  --accent-foreground: oklch(0.944 0.016 12.79);
  --destructive: oklch(0.609 0.227 30.952);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.552 0.08 188.835);
  --chart-1: oklch(0.552 0.08 188.835);
  --chart-2: oklch(0.421 0.117 19.838);
  --chart-3: oklch(0.421 0.117 19.838);
  --chart-4: oklch(0.447 0.125 19.946);
  --chart-5: oklch(0.559 0.084 188.673);
}