Prostrate for shadcn/ui

Prostrate is a shadcn/ui theme built around a light red primary color (#e4d1cd) with light indigo accents (#d1cde4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#e4d1cd) on a red-tinted background (#0e0807).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0807black
Foreground
#000000black
#faf6f5whitesmoke
Card
#ffffffwhite
#0e0807black
Card foreground
#000000black
#faf6f5whitesmoke
Popover
#ffffffwhite
#0e0807black
Popover foreground
#000000black
#faf6f5whitesmoke
Primary
#e4d1cdlightgrey
#e4d1cdlightgrey
Primary foreground
#53322ddarkolivegreen
#53322ddarkolivegreen
Secondary
#cde4d1lightgrey
#cde4d1lightgrey
Secondary foreground
#2d5332darkslategray
#2d5332darkslategray
Muted
#d9ecdcgainsboro
#132615black
Muted foreground
#37493adarkslategray
#b6c8b9silver
Accent
#d1cde4lightgrey
#d1cde4lightgrey
Accent foreground
#322d53darkslategray
#322d53darkslategray
Destructive
#991b0adarkred
#d8250efirebrick
Destructive foreground
#fdddd9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4d1cdlightgrey
#e4d1cdlightgrey

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.67:1AAA
Secondary button6.53:1AA
Muted text7.83:1AAA
Accent8.30:1AAA
Destructive6.55:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button7.67:1AAA
Secondary button6.53:1AA
Muted text9.12:1AAA
Accent8.30:1AAA
Destructive5.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.03 149.822);
  --muted-foreground: oklch(0.384 0.034 149.015);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.875 0.022 29.575);
  --primary-foreground: oklch(0.357 0.049 30.546);
  --secondary: oklch(0.897 0.036 149.713);
  --secondary-foreground: oklch(0.404 0.07 147.648);
  --accent: oklch(0.859 0.032 292.607);
  --accent-foreground: oklch(0.321 0.067 288.95);
  --destructive: oklch(0.443 0.164 30.986);
  --destructive-foreground: oklch(0.922 0.036 26.745);
  --ring: oklch(0.875 0.022 29.575);
  --chart-1: oklch(0.875 0.022 29.575);
  --chart-2: oklch(0.897 0.036 149.713);
  --chart-3: oklch(0.859 0.032 292.607);
  --chart-4: oklch(0.918 0.029 149.834);
  --chart-5: oklch(0.874 0.025 29.589);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.012 31.971);
  --foreground: oklch(0.975 0.004 29.482);
  --muted: oklch(0.245 0.04 147.842);
  --muted-foreground: oklch(0.815 0.029 149.78);
  --popover: oklch(0.141 0.012 31.971);
  --popover-foreground: oklch(0.975 0.004 29.482);
  --card: oklch(0.141 0.012 31.971);
  --card-foreground: oklch(0.975 0.004 29.482);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.875 0.022 29.575);
  --primary-foreground: oklch(0.357 0.049 30.546);
  --secondary: oklch(0.897 0.036 149.713);
  --secondary-foreground: oklch(0.404 0.07 147.648);
  --accent: oklch(0.859 0.032 292.607);
  --accent-foreground: oklch(0.321 0.067 288.95);
  --destructive: oklch(0.567 0.214 30.901);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.022 29.575);
  --chart-1: oklch(0.875 0.022 29.575);
  --chart-2: oklch(0.897 0.036 149.713);
  --chart-3: oklch(0.859 0.032 292.607);
  --chart-4: oklch(0.918 0.029 149.834);
  --chart-5: oklch(0.874 0.025 29.589);
}