Rapid is a shadcn/ui theme built around an indigo primary color (#24199a) with green accents (#199a24). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#24199a) on an indigo-tinted background (#050410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050410black |
| Foreground | #050316black | #fcfbfdsnow |
| Card | #fcfcfcsnow | #070514black |
| Card foreground | #040312black | #ffffffwhite |
| Popover | #ffffffwhite | #050410black |
| Popover foreground | #050316black | #fcfbfdsnow |
| Primary | #24199amidnightblue | #24199amidnightblue |
| Primary foreground | #ebe9fblavender | #ebe9fblavender |
| Secondary | #9a2419brown | #9a2419brown |
| Secondary foreground | #fbebe9linen | #fbebe9linen |
| Muted | #eddfdegainsboro | #211312black |
| Muted foreground | #705957dimgray | #a8918frosybrown |
| Accent | #199a24forestgreen | #199a24forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #661f05maroon | #f35116orangered |
| Destructive foreground | #fabaa3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #24199amidnightblue | #24199amidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 10.48:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 4.98:1 | AA |
| Accent | 3.71:1 | AA Large |
| Destructive | 7.16:1 | AAA |
| Text on background | 19.69:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 10.48:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 6.08:1 | AA |
| Accent | 3.71:1 | AA Large |
| Destructive | 3.50:1 | AA Large |
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.122 0.045 283.241);
--muted: oklch(0.915 0.016 23.752);
--muted-foreground: oklch(0.486 0.032 24.334);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.045 283.241);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.111 0.039 284.195);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.344 0.192 273.257);
--primary-foreground: oklch(0.941 0.025 289.749);
--secondary: oklch(0.452 0.156 29.652);
--secondary-foreground: oklch(0.952 0.018 23.778);
--accent: oklch(0.597 0.186 143.589);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.348 0.107 38.133);
--destructive-foreground: oklch(0.842 0.081 40.858);
--ring: oklch(0.344 0.192 273.257);
--chart-1: oklch(0.344 0.192 273.257);
--chart-2: oklch(0.452 0.156 29.652);
--chart-3: oklch(0.597 0.186 143.589);
--chart-4: oklch(0.479 0.166 29.692);
--chart-5: oklch(0.343 0.198 272.318);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.029 286.457);
--foreground: oklch(0.99 0.003 290.198);
--muted: oklch(0.206 0.024 25.069);
--muted-foreground: oklch(0.677 0.029 24.044);
--popover: oklch(0.121 0.029 286.457);
--popover-foreground: oklch(0.99 0.003 290.198);
--card: oklch(0.131 0.033 285.685);
--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.344 0.192 273.257);
--primary-foreground: oklch(0.941 0.025 289.749);
--secondary: oklch(0.452 0.156 29.652);
--secondary-foreground: oklch(0.952 0.018 23.778);
--accent: oklch(0.597 0.186 143.589);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.653 0.207 37.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.344 0.192 273.257);
--chart-1: oklch(0.344 0.192 273.257);
--chart-2: oklch(0.452 0.156 29.652);
--chart-3: oklch(0.597 0.186 143.589);
--chart-4: oklch(0.479 0.166 29.692);
--chart-5: oklch(0.343 0.198 272.318);
}