Rigid for shadcn/ui

Rigid is a shadcn/ui theme built around a purple primary color (#cc5cca) with pink accents (#cc5c92). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#cc5cca) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#150415black
#fdfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#150415black
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#150415black
#fdfcfdwhite
Primary
#cc5ccamediumorchid
#cc5ccamediumorchid
Primary foreground
#000000black
#000000black
Secondary
#965cccmediumpurple
#965cccmediumpurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2eef6whitesmoke
#0d0911black
Muted foreground
#66616bdimgray
#99949edarkgray
Accent
#cc5c92palevioletred
#cc5c92palevioletred
Accent foreground
#000000black
#000000black
Destructive
#8b1c04darkred
#e02e06orangered
Destructive foreground
#fdcec3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cc5ccamediumorchid
#cc5ccamediumorchid

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button5.94:1AA
Secondary button4.46:1AA Large
Muted text5.26:1AA
Accent5.50:1AA
Destructive6.50:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button5.94:1AA
Secondary button4.46:1AA Large
Muted text6.66:1AA
Accent5.50:1AA
Destructive4.61: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.151 0.046 328.149);
  --muted: oklch(0.955 0.012 308.993);
  --muted-foreground: oklch(0.501 0.017 308.765);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.046 328.149);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.046 328.149);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.193 328.146);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.589 0.17 305.664);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.629 0.153 352.176);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.417 0.149 33.213);
  --destructive-foreground: oklch(0.89 0.056 32.816);
  --ring: oklch(0.652 0.193 328.146);
  --chart-1: oklch(0.652 0.193 328.146);
  --chart-2: oklch(0.589 0.17 305.664);
  --chart-3: oklch(0.629 0.153 352.176);
  --chart-4: oklch(0.617 0.158 306.158);
  --chart-5: oklch(0.654 0.202 328.23);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 326.072);
  --muted: oklch(0.148 0.019 307.91);
  --muted-foreground: oklch(0.674 0.016 308.877);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 326.072);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.002 326.072);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.193 328.146);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.589 0.17 305.664);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.629 0.153 352.176);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.587 0.217 32.528);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.193 328.146);
  --chart-1: oklch(0.652 0.193 328.146);
  --chart-2: oklch(0.589 0.17 305.664);
  --chart-3: oklch(0.629 0.153 352.176);
  --chart-4: oklch(0.617 0.158 306.158);
  --chart-5: oklch(0.654 0.202 328.23);
}