Rapid for shadcn/ui

Rapid is a shadcn/ui theme built around a deep teal primary color (#112721) with deep red accents (#271117). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the deep teal primary (#112721) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#050a09black
Foreground
#020807black
#ffffffwhite
Card
#f3fbf9mintcream
#070d0cblack
Card foreground
#010403black
#ffffffwhite
Popover
#f3fbf9mintcream
#070d0cblack
Popover foreground
#010403black
#ffffffwhite
Primary
#112721black
#112721black
Primary foreground
#53b29acadetblue
#53b29acadetblue
Secondary
#271117black
#271117black
Secondary foreground
#d199a7rosybrown
#d199a7rosybrown
Muted
#e8e3e4gainsboro
#1c1718black
Muted foreground
#5a5355dimgray
#aca5a7darkgray
Accent
#271117black
#271117black
Accent foreground
#d199a7rosybrown
#d199a7rosybrown
Destructive
#7c190emaroon
#ea4f3etomato
Destructive foreground
#f8c9c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#112721black
#112721black

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.65:1AAA
Primary button6.15:1AA
Secondary button7.47:1AAA
Muted text5.91:1AA
Accent7.47:1AAA
Destructive7.06:1AAA
Dark mode
Text on background19.92:1AAA
Text on card19.56:1AAA
Primary button6.15:1AA
Secondary button7.47:1AAA
Muted text7.31:1AAA
Accent7.47:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 179.693);
  --foreground: oklch(0.125 0.015 179.914);
  --muted: oklch(0.921 0.005 0.008);
  --muted-foreground: oklch(0.45 0.009 0.453);
  --popover: oklch(0.983 0.009 179.605);
  --popover-foreground: oklch(0.099 0.012 179.914);
  --card: oklch(0.983 0.009 179.605);
  --card-foreground: oklch(0.099 0.012 179.914);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.252 0.029 175.797);
  --primary-foreground: oklch(0.698 0.097 174.624);
  --secondary: oklch(0.213 0.036 4.579);
  --secondary-foreground: oklch(0.74 0.07 2.421);
  --accent: oklch(0.213 0.036 4.579);
  --accent-foreground: oklch(0.74 0.07 2.421);
  --destructive: oklch(0.384 0.136 30.425);
  --destructive-foreground: oklch(0.875 0.055 25.628);
  --ring: oklch(0.252 0.029 175.797);
  --chart-1: oklch(0.252 0.029 175.797);
  --chart-2: oklch(0.213 0.036 4.579);
  --chart-3: oklch(0.213 0.036 4.579);
  --chart-4: oklch(0.242 0.045 4.988);
  --chart-5: oklch(0.254 0.031 175.488);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.009 179.894);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.212 0.007 0.751);
  --muted-foreground: oklch(0.728 0.008 0.189);
  --popover: oklch(0.153 0.011 178.446);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.011 178.446);
  --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.252 0.029 175.797);
  --primary-foreground: oklch(0.698 0.097 174.624);
  --secondary: oklch(0.213 0.036 4.579);
  --secondary-foreground: oklch(0.74 0.07 2.421);
  --accent: oklch(0.213 0.036 4.579);
  --accent-foreground: oklch(0.74 0.07 2.421);
  --destructive: oklch(0.639 0.193 29.684);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.252 0.029 175.797);
  --chart-1: oklch(0.252 0.029 175.797);
  --chart-2: oklch(0.213 0.036 4.579);
  --chart-3: oklch(0.213 0.036 4.579);
  --chart-4: oklch(0.242 0.045 4.988);
  --chart-5: oklch(0.254 0.031 175.488);
}