Rapid for shadcn/ui

Rapid is a shadcn/ui theme built around a near-black primary color (#000000) with neutral gray accents (#e4e2e2). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0f0505).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0f0505black
Foreground
#040101black
#fdfcfcsnow
Card
#fcf3f3lavenderblush
#130707black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf3f3lavenderblush
#130707black
Popover foreground
#000000black
#ffffffwhite
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#e4e2e2gainsboro
#1b1313black
Secondary foreground
#4c4848darkslategray
#bfa1a1darkgray
Muted
#e0d1d1lightgrey
#2e1f1fblack
Muted foreground
#514343darkslategray
#bcaeaedarkgray
Accent
#e4e2e2gainsboro
#1b1313black
Accent foreground
#4c4848darkslategray
#bfa1a1darkgray
Destructive
#922101darkred
#fd5426tomato
Destructive foreground
#fed3c7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.19:1AAA
Primary button7.37:1AAA
Secondary button6.99:1AA
Muted text6.37:1AA
Accent6.99:1AA
Destructive6.27:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.82:1AAA
Primary button7.37:1AAA
Secondary button7.69:1AAA
Muted text7.38:1AAA
Accent7.69:1AAA
Destructive6.47:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.274);
  --foreground: oklch(0.079 0.02 22.633);
  --muted: oklch(0.873 0.017 17.484);
  --muted-foreground: oklch(0.397 0.02 18.048);
  --popover: oklch(0.97 0.01 17.335);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0.01 17.335);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.914 0.002 17.191);
  --secondary-foreground: oklch(0.405 0.006 17.403);
  --accent: oklch(0.914 0.002 17.191);
  --accent-foreground: oklch(0.405 0.006 17.403);
  --destructive: oklch(0.434 0.154 34.352);
  --destructive-foreground: oklch(0.902 0.051 35.954);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.914 0.002 17.191);
  --chart-3: oklch(0.914 0.002 17.191);
  --chart-4: oklch(0.938 0.001 17.181);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.019 19.941);
  --foreground: oklch(0.991 0.002 17.183);
  --muted: oklch(0.257 0.024 18.85);
  --muted-foreground: oklch(0.762 0.017 17.533);
  --popover: oklch(0.146 0.023 20.162);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.023 20.162);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.196 0.015 18.468);
  --secondary-foreground: oklch(0.735 0.036 17.989);
  --accent: oklch(0.196 0.015 18.468);
  --accent-foreground: oklch(0.735 0.036 17.989);
  --destructive: oklch(0.673 0.212 35.48);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.196 0.015 18.468);
  --chart-3: oklch(0.196 0.015 18.468);
  --chart-4: oklch(0.227 0.019 18.631);
  --chart-5: oklch(0 0 0);
}