Stained for shadcn/ui

Stained is a shadcn/ui theme built around a light red primary color (#f6e7e5) with light cyan accents (#e5f4f6). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the light red primary (#f6e7e5) on a red-tinted background (#0b0504).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0b0504black
Foreground
#080302black
#fcf9f8snow
Card
#faf5f4whitesmoke
#0f0706black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fcf8f8snow
#0b0504black
Popover foreground
#080302black
#fcf9f8snow
Primary
#f6e7e5linen
#f6e7e5linen
Primary foreground
#7c362dsaddlebrown
#7c362dsaddlebrown
Secondary
#e5f4f6lavender
#e5f4f6lavender
Secondary foreground
#122d31darkslategray
#122d31darkslategray
Muted
#e1edeflavender
#101c1eblack
Muted foreground
#475152darkslategray
#adb7b8darkgray
Accent
#e5f4f6lavender
#e5f4f6lavender
Accent foreground
#122d31darkslategray
#122d31darkslategray
Destructive
#6d0a08maroon
#ef2825crimson
Destructive foreground
#f9b0aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6e7e5linen
#f6e7e5linen

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.26:1AAA
Primary button7.19:1AAA
Secondary button12.82:1AAA
Muted text6.85:1AA
Accent12.82:1AAA
Destructive6.97:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.49:1AAA
Primary button7.19:1AAA
Secondary button12.82:1AAA
Muted text8.47:1AAA
Accent12.82:1AAA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 26.466);
  --foreground: oklch(0.107 0.017 32.67);
  --muted: oklch(0.938 0.013 206.362);
  --muted-foreground: oklch(0.426 0.012 206.3);
  --popover: oklch(0.983 0.004 26.466);
  --popover-foreground: oklch(0.107 0.017 32.67);
  --card: oklch(0.974 0.006 26.479);
  --card-foreground: oklch(0.085 0.014 32.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.938 0.016 26.564);
  --primary-foreground: oklch(0.425 0.1 29.48);
  --secondary: oklch(0.955 0.016 206.349);
  --secondary-foreground: oklch(0.278 0.034 206.811);
  --accent: oklch(0.955 0.016 206.349);
  --accent-foreground: oklch(0.278 0.034 206.811);
  --destructive: oklch(0.343 0.131 28.358);
  --destructive-foreground: oklch(0.825 0.086 20.175);
  --ring: oklch(0.938 0.016 26.564);
  --chart-1: oklch(0.938 0.016 26.564);
  --chart-2: oklch(0.955 0.016 206.349);
  --chart-3: oklch(0.955 0.016 206.349);
  --chart-4: oklch(0.975 0.009 206.386);
  --chart-5: oklch(0.938 0.017 26.573);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.013 30.134);
  --foreground: oklch(0.983 0.003 26.463);
  --muted: oklch(0.217 0.017 206.318);
  --muted-foreground: oklch(0.771 0.011 206.362);
  --popover: oklch(0.126 0.013 30.134);
  --popover-foreground: oklch(0.983 0.003 26.463);
  --card: oklch(0.139 0.015 29.58);
  --card-foreground: oklch(0.992 0.002 26.452);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.938 0.016 26.564);
  --primary-foreground: oklch(0.425 0.1 29.48);
  --secondary: oklch(0.955 0.016 206.349);
  --secondary-foreground: oklch(0.278 0.034 206.811);
  --accent: oklch(0.955 0.016 206.349);
  --accent-foreground: oklch(0.278 0.034 206.811);
  --destructive: oklch(0.612 0.23 28.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.016 26.564);
  --chart-1: oklch(0.938 0.016 26.564);
  --chart-2: oklch(0.955 0.016 206.349);
  --chart-3: oklch(0.955 0.016 206.349);
  --chart-4: oklch(0.975 0.009 206.386);
  --chart-5: oklch(0.938 0.017 26.573);
}