Insulation for shadcn/ui

Insulation is a shadcn/ui theme built around a light red primary color (#f0c8c1) with light indigo accents (#c8c1f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f0c8c1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040101black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#040101black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#f0c8c1pink
#f0c8c1pink
Primary foreground
#672319maroon
#672319maroon
Secondary
#c1f0c8lightgrey
#c1f0c8lightgrey
Secondary foreground
#051507black
#051507black
Muted
#d7e5d9gainsboro
#1a281cblack
Muted foreground
#4a594cdarkslategray
#a6b5a8darkgray
Accent
#c8c1f0thistle
#c8c1f0thistle
Accent foreground
#231967midnightblue
#231967midnightblue
Destructive
#741c06maroon
#f55e38tomato
Destructive foreground
#fbc0b1lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0c8c1pink
#f0c8c1pink

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button7.48:1AAA
Secondary button14.84:1AAA
Muted text5.69:1AA
Accent8.79:1AAA
Destructive6.92:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.48:1AAA
Secondary button14.84:1AAA
Muted text7.17:1AAA
Accent8.79:1AAA
Destructive6.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.085 0.013 34.164);
  --muted: oklch(0.907 0.022 149.38);
  --muted-foreground: oklch(0.447 0.028 148.892);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.085 0.013 34.164);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.085 0.013 34.164);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.865 0.047 28.308);
  --primary-foreground: oklch(0.357 0.099 31.186);
  --secondary: oklch(0.912 0.073 148.642);
  --secondary-foreground: oklch(0.174 0.036 147.464);
  --accent: oklch(0.833 0.065 291.028);
  --accent-foreground: oklch(0.285 0.129 280.5);
  --destructive: oklch(0.372 0.126 34.315);
  --destructive-foreground: oklch(0.857 0.071 34.445);
  --ring: oklch(0.865 0.047 28.308);
  --chart-1: oklch(0.865 0.047 28.308);
  --chart-2: oklch(0.912 0.073 148.642);
  --chart-3: oklch(0.833 0.065 291.028);
  --chart-4: oklch(0.929 0.058 148.877);
  --chart-5: oklch(0.864 0.049 28.333);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0 27.936);
  --muted: oklch(0.26 0.029 148.166);
  --muted-foreground: oklch(0.757 0.024 149.28);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0 27.936);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0 27.936);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.865 0.047 28.308);
  --primary-foreground: oklch(0.357 0.099 31.186);
  --secondary: oklch(0.912 0.073 148.642);
  --secondary-foreground: oklch(0.174 0.036 147.464);
  --accent: oklch(0.833 0.065 291.028);
  --accent-foreground: oklch(0.285 0.129 280.5);
  --destructive: oklch(0.673 0.192 35.093);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.865 0.047 28.308);
  --chart-1: oklch(0.865 0.047 28.308);
  --chart-2: oklch(0.912 0.073 148.642);
  --chart-3: oklch(0.833 0.065 291.028);
  --chart-4: oklch(0.929 0.058 148.877);
  --chart-5: oklch(0.864 0.049 28.333);
}