Rigid for shadcn/ui

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

Color palette

TokenLightDark
Background
#fcf8fcsnow
#000000black
Foreground
#150513black
#fcf8fbsnow
Card
#fbf4faghostwhite
#030303black
Card foreground
#10040fblack
#fdfcfdwhite
Popover
#fcf8fcsnow
#000000black
Popover foreground
#150513black
#fcf8fbsnow
Primary
#98258edarkmagenta
#98258edarkmagenta
Primary foreground
#fcf3fblavenderblush
#fcf3fblavenderblush
Secondary
#682598rebeccapurple
#682598rebeccapurple
Secondary foreground
#f8f3fcghostwhite
#f8f3fcghostwhite
Muted
#eeeaf0lavender
#120f15black
Muted foreground
#504856darkslategray
#b1a9b7darkgray
Accent
#982555brown
#982555brown
Accent foreground
#fcf3f7lavenderblush
#fcf3f7lavenderblush
Destructive
#8b2c09saddlebrown
#f15d27chocolate
Destructive foreground
#fcd7cabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98258edarkmagenta
#98258edarkmagenta

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.54:1AAA
Primary button6.47:1AA
Secondary button8.34:1AAA
Muted text7.34:1AAA
Accent7.08:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.95:1AAA
Text on card20.20:1AAA
Primary button6.47:1AA
Secondary button8.34:1AAA
Muted text8.36:1AAA
Accent7.08:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.007 328.142);
  --foreground: oklch(0.151 0.04 330.379);
  --muted: oklch(0.942 0.009 311.643);
  --muted-foreground: oklch(0.415 0.026 311.229);
  --popover: oklch(0.983 0.007 328.142);
  --popover-foreground: oklch(0.151 0.04 330.379);
  --card: oklch(0.974 0.011 328.182);
  --card-foreground: oklch(0.138 0.035 330.106);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.488 0.189 331.77);
  --primary-foreground: oklch(0.973 0.015 328.224);
  --secondary: oklch(0.425 0.178 306.77);
  --secondary-foreground: oklch(0.97 0.014 311.611);
  --accent: oklch(0.462 0.155 0.184);
  --accent-foreground: oklch(0.972 0.011 349.992);
  --destructive: oklch(0.432 0.136 37.54);
  --destructive-foreground: oklch(0.907 0.044 41.011);
  --ring: oklch(0.488 0.189 331.77);
  --chart-1: oklch(0.488 0.189 331.77);
  --chart-2: oklch(0.425 0.178 306.77);
  --chart-3: oklch(0.462 0.155 0.184);
  --chart-4: oklch(0.448 0.189 306.697);
  --chart-5: oklch(0.492 0.195 331.887);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.006 328.123);
  --muted: oklch(0.174 0.014 311.064);
  --muted-foreground: oklch(0.746 0.022 311.485);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.006 328.123);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.003 328.093);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.488 0.189 331.77);
  --primary-foreground: oklch(0.973 0.015 328.224);
  --secondary: oklch(0.425 0.178 306.77);
  --secondary-foreground: oklch(0.97 0.014 311.611);
  --accent: oklch(0.462 0.155 0.184);
  --accent-foreground: oklch(0.972 0.011 349.992);
  --destructive: oklch(0.665 0.193 38.619);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.488 0.189 331.77);
  --chart-1: oklch(0.488 0.189 331.77);
  --chart-2: oklch(0.425 0.178 306.77);
  --chart-3: oklch(0.462 0.155 0.184);
  --chart-4: oklch(0.448 0.189 306.697);
  --chart-5: oklch(0.492 0.195 331.887);
}