Rigid for shadcn/ui

Rigid is a shadcn/ui theme built around a muted red primary color (#896258) with muted indigo accents (#625889). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#896258) on a red-tinted background (#0b0604).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0604black
Foreground
#100704black
#fdfcfcsnow
Card
#fcfcfcsnow
#0f0705black
Card foreground
#0c0503black
#ffffffwhite
Popover
#fcfcfcsnow
#0f0705black
Popover foreground
#0c0503black
#ffffffwhite
Primary
#896258dimgray
#896258dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#588962dimgray
#588962dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecf3eewhitesmoke
#0c130dblack
Muted foreground
#506855dimgray
#97af9cdarkseagreen
Accent
#625889dimgray
#625889dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8e290bsaddlebrown
#ef5b2etomato
Destructive foreground
#fbdad0bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#896258dimgray
#896258dimgray

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.78:1AAA
Primary button5.30:1AA
Secondary button4.07:1AA Large
Muted text5.40:1AA
Accent6.43:1AA
Destructive6.46:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.90:1AAA
Primary button5.30:1AA
Secondary button4.07:1AA Large
Muted text8.01:1AAA
Accent6.43:1AA
Destructive6.22:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.019 41.361);
  --muted: oklch(0.958 0.011 152.438);
  --muted-foreground: oklch(0.491 0.041 151.219);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.127 0.016 42.87);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.016 42.87);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.534 0.053 36.053);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.584 0.08 150.201);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.49 0.078 293.23);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.436 0.141 35.862);
  --destructive-foreground: oklch(0.913 0.04 37.605);
  --ring: oklch(0.534 0.053 36.053);
  --chart-1: oklch(0.534 0.053 36.053);
  --chart-2: oklch(0.584 0.08 150.201);
  --chart-3: oklch(0.49 0.078 293.23);
  --chart-4: oklch(0.612 0.084 150.185);
  --chart-5: oklch(0.533 0.061 36.1);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.014 41.718);
  --foreground: oklch(0.992 0.001 36.01);
  --muted: oklch(0.177 0.016 151.065);
  --muted-foreground: oklch(0.731 0.038 151.783);
  --popover: oklch(0.142 0.016 40.311);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.016 40.311);
  --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.534 0.053 36.053);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.584 0.08 150.201);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.49 0.078 293.23);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.192 36.887);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.534 0.053 36.053);
  --chart-1: oklch(0.534 0.053 36.053);
  --chart-2: oklch(0.584 0.08 150.201);
  --chart-3: oklch(0.49 0.078 293.23);
  --chart-4: oklch(0.612 0.084 150.185);
  --chart-5: oklch(0.533 0.061 36.1);
}