Rapid for shadcn/ui

Rapid is a shadcn/ui theme built around a vivid deep teal primary color (#052e25) with vivid deep cyan accents (#05232e). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid deep teal primary (#052e25) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040b09black
Foreground
#030c0ablack
#f9fbfamintcream
Card
#fbfefdwhite
#040b09black
Card foreground
#030c0ablack
#f9fbfamintcream
Popover
#fbfefdwhite
#040b09black
Popover foreground
#030c0ablack
#f9fbfamintcream
Primary
#052e25black
#052e25black
Primary foreground
#18e7b7mediumspringgreen
#18e7b7mediumspringgreen
Secondary
#052e10black
#052e10black
Secondary foreground
#18e74flimegreen
#18e74flimegreen
Muted
#edf7f0honeydew
#08120ablack
Muted foreground
#5f6d63dimgray
#92a096darkseagreen
Accent
#05232eblack
#05232eblack
Accent foreground
#18b0e7deepskyblue
#18b0e7deepskyblue
Destructive
#6d0c03maroon
#e51806red
Destructive foreground
#fdada5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#052e25black
#052e25black

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button9.22:1AAA
Secondary button8.94:1AAA
Muted text4.98:1AA
Accent6.52:1AA
Destructive6.85:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button9.22:1AAA
Secondary button8.94:1AAA
Muted text6.99:1AA
Accent6.52:1AA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 180.859);
  --foreground: oklch(0.143 0.017 180.298);
  --muted: oklch(0.967 0.015 154.259);
  --muted-foreground: oklch(0.52 0.024 153.694);
  --popover: oklch(0.995 0.004 180.859);
  --popover-foreground: oklch(0.143 0.017 180.298);
  --card: oklch(0.995 0.004 180.859);
  --card-foreground: oklch(0.143 0.017 180.298);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.271 0.048 173.257);
  --primary-foreground: oklch(0.826 0.16 170.233);
  --secondary: oklch(0.266 0.07 148.152);
  --secondary-foreground: oklch(0.808 0.243 145.897);
  --accent: oklch(0.241 0.041 226.249);
  --accent-foreground: oklch(0.71 0.138 230.509);
  --destructive: oklch(0.344 0.131 30.595);
  --destructive-foreground: oklch(0.822 0.095 25.089);
  --ring: oklch(0.271 0.048 173.257);
  --chart-1: oklch(0.271 0.048 173.257);
  --chart-2: oklch(0.266 0.07 148.152);
  --chart-3: oklch(0.241 0.041 226.249);
  --chart-4: oklch(0.313 0.086 147.474);
  --chart-5: oklch(0.273 0.049 173.038);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.013 180.815);
  --foreground: oklch(0.986 0.002 180.9);
  --muted: oklch(0.168 0.022 152.353);
  --muted-foreground: oklch(0.692 0.022 153.949);
  --popover: oklch(0.14 0.013 180.815);
  --popover-foreground: oklch(0.986 0.002 180.9);
  --card: oklch(0.14 0.013 180.815);
  --card-foreground: oklch(0.986 0.002 180.9);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.271 0.048 173.257);
  --primary-foreground: oklch(0.826 0.16 170.233);
  --secondary: oklch(0.266 0.07 148.152);
  --secondary-foreground: oklch(0.808 0.243 145.897);
  --accent: oklch(0.241 0.041 226.249);
  --accent-foreground: oklch(0.71 0.138 230.509);
  --destructive: oklch(0.585 0.231 30.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.271 0.048 173.257);
  --chart-1: oklch(0.271 0.048 173.257);
  --chart-2: oklch(0.266 0.07 148.152);
  --chart-3: oklch(0.241 0.041 226.249);
  --chart-4: oklch(0.313 0.086 147.474);
  --chart-5: oklch(0.273 0.049 173.038);
}