Rapid for shadcn/ui

Rapid is a shadcn/ui theme built around a light green primary color (#cde4c3) with light violet accents (#dac3e4). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#cde4c3) on a green-tinted background (#080f05).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#080f05black
Foreground
#000000black
#ffffffwhite
Card
#f9fcf8mintcream
#0a1306black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfdfcwhite
#080f05black
Popover foreground
#000000black
#ffffffwhite
Primary
#cde4c3lightgrey
#cde4c3lightgrey
Primary foreground
#325124darkslategray
#325124darkslategray
Secondary
#dac3e4thistle
#dac3e4thistle
Secondary foreground
#442451darkslategray
#442451darkslategray
Muted
#f3f1f4whitesmoke
#0d0b0eblack
Muted foreground
#655f67dimgray
#9d98a0darkgray
Accent
#dac3e4thistle
#dac3e4thistle
Accent foreground
#442451darkslategray
#442451darkslategray
Destructive
#d33b09orangered
#f5490forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cde4c3lightgrey
#cde4c3lightgrey

Contrast

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

Light mode
Text on background20.63:1AAA
Text on card20.26:1AAA
Primary button6.62:1AA
Secondary button7.99:1AAA
Muted text5.51:1AA
Accent7.99:1AAA
Destructive4.78:1AA
Dark mode
Text on background19.38:1AAA
Text on card18.90:1AAA
Primary button6.62:1AA
Secondary button7.99:1AAA
Muted text6.92:1AA
Accent7.99:1AAA
Destructive3.60: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.994 0.003 136.031);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.96 0.004 316.006);
  --muted-foreground: oklch(0.495 0.014 315.919);
  --popover: oklch(0.994 0.003 136.031);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 136.04);
  --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.893 0.051 136.237);
  --primary-foreground: oklch(0.398 0.079 137.076);
  --secondary: oklch(0.847 0.051 315.805);
  --secondary-foreground: oklch(0.324 0.084 314.898);
  --accent: oklch(0.847 0.051 315.805);
  --accent-foreground: oklch(0.324 0.084 314.898);
  --destructive: oklch(0.575 0.195 35.579);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.893 0.051 136.237);
  --chart-1: oklch(0.893 0.051 136.237);
  --chart-2: oklch(0.847 0.051 315.805);
  --chart-3: oklch(0.847 0.051 315.805);
  --chart-4: oklch(0.874 0.042 315.85);
  --chart-5: oklch(0.895 0.055 136.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.026 135.252);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.155 0.007 315.867);
  --muted-foreground: oklch(0.685 0.013 315.953);
  --popover: oklch(0.159 0.026 135.252);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.03 136.084);
  --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.893 0.051 136.237);
  --primary-foreground: oklch(0.398 0.079 137.076);
  --secondary: oklch(0.847 0.051 315.805);
  --secondary-foreground: oklch(0.324 0.084 314.898);
  --accent: oklch(0.847 0.051 315.805);
  --accent-foreground: oklch(0.324 0.084 314.898);
  --destructive: oklch(0.647 0.217 35.825);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.893 0.051 136.237);
  --chart-1: oklch(0.893 0.051 136.237);
  --chart-2: oklch(0.847 0.051 315.805);
  --chart-3: oklch(0.847 0.051 315.805);
  --chart-4: oklch(0.874 0.042 315.85);
  --chart-5: oklch(0.895 0.055 136.255);
}