Rapid for shadcn/ui

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

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0505black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#0a0505black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0a0505black
Popover foreground
#000000black
#ffffffwhite
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#e4e2e2gainsboro
#2a1d1dblack
Secondary foreground
#4e4646darkslategray
#c9b0b0silver
Muted
#f2ededlinen
#120d0dblack
Muted foreground
#5b5252dimgray
#ada4a4darkgray
Accent
#d6cccclightgrey
#492c2cdarkslategray
Accent foreground
#3e3232darkslategray
#dec9c9lightgrey
Destructive
#951409darkred
#e7200dred
Destructive foreground
#fcd7d4mistyrose
#ffffffwhite
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 background21.00:1AAA
Text on card21.00:1AAA
Primary button7.37:1AAA
Secondary button7.09:1AAA
Muted text6.54:1AA
Accent7.83:1AAA
Destructive6.60:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button7.37:1AAA
Secondary button7.98:1AAA
Muted text7.92:1AAA
Accent7.90:1AAA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.951 0.005 17.25);
  --muted-foreground: oklch(0.448 0.011 17.587);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.003 17.213);
  --secondary-foreground: oklch(0.402 0.01 17.576);
  --accent: oklch(0.854 0.011 17.377);
  --accent-foreground: oklch(0.33 0.018 18.095);
  --destructive: oklch(0.431 0.164 30.097);
  --destructive-foreground: oklch(0.91 0.042 24.093);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.914 0.003 17.213);
  --chart-3: oklch(0.854 0.011 17.377);
  --chart-4: oklch(0.937 0.002 17.197);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.012 18.852);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.008 18.041);
  --muted-foreground: oklch(0.726 0.01 17.388);
  --popover: oklch(0.125 0.012 18.852);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.012 18.852);
  --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.247 0.021 18.714);
  --secondary-foreground: oklch(0.779 0.029 17.795);
  --accent: oklch(0.329 0.044 19.668);
  --accent-foreground: oklch(0.853 0.024 17.64);
  --destructive: oklch(0.593 0.23 30.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.247 0.021 18.714);
  --chart-3: oklch(0.329 0.044 19.668);
  --chart-4: oklch(0.277 0.025 18.811);
  --chart-5: oklch(0 0 0);
}