Imperturbable for shadcn/ui

Imperturbable is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#ddd5d5). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0a0505black
Foreground
#110303black
#fbf8f8snow
Card
#fdf7f7snow
#0a0505black
Card foreground
#110303black
#fbf8f8snow
Popover
#fdf7f7snow
#0a0505black
Popover foreground
#110303black
#fbf8f8snow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#ddd5d5gainsboro
#201818black
Secondary foreground
#473939darkslategray
#bfababdarkgray
Muted
#f2e9e9linen
#160d0dblack
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#ddd5d5gainsboro
#201818black
Accent foreground
#473939darkslategray
#bfababdarkgray
Destructive
#b01d0cfirebrick
#ef2b15orangered
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button7.37:1AAA
Secondary button7.58:1AAA
Muted text5.02:1AA
Accent7.58:1AAA
Destructive6.32:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button7.37:1AAA
Secondary button7.97:1AAA
Muted text6.95:1AA
Accent7.97:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 17.252);
  --foreground: oklch(0.129 0.032 22.66);
  --muted: oklch(0.94 0.01 17.329);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.981 0.006 17.252);
  --popover-foreground: oklch(0.129 0.032 22.66);
  --card: oklch(0.981 0.006 17.252);
  --card-foreground: oklch(0.129 0.032 22.66);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.878 0.009 17.333);
  --secondary-foreground: oklch(0.359 0.02 18.121);
  --accent: oklch(0.878 0.009 17.333);
  --accent-foreground: oklch(0.359 0.02 18.121);
  --destructive: oklch(0.489 0.184 30.51);
  --destructive-foreground: oklch(0.97 0.013 25.104);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.878 0.009 17.333);
  --chart-3: oklch(0.878 0.009 17.333);
  --chart-4: oklch(0.903 0.007 17.293);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 18.726);
  --foreground: oklch(0.983 0.003 17.211);
  --muted: oklch(0.173 0.015 18.762);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.125 0.011 18.726);
  --popover-foreground: oklch(0.983 0.003 17.211);
  --card: oklch(0.125 0.011 18.726);
  --card-foreground: oklch(0.983 0.003 17.211);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.22 0.012 18.079);
  --secondary-foreground: oklch(0.759 0.022 17.654);
  --accent: oklch(0.22 0.012 18.079);
  --accent-foreground: oklch(0.759 0.022 17.654);
  --destructive: oklch(0.613 0.23 30.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.22 0.012 18.079);
  --chart-3: oklch(0.22 0.012 18.079);
  --chart-4: oklch(0.251 0.014 18.159);
  --chart-5: oklch(0 0 0);
}