Speedy is a shadcn/ui theme built around a neutral gray primary color (#999999) with neutral gray accents (#999999). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#999999) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #120202black | #fbf9f9snow |
| Card | #fdf6f6snow | #030303black |
| Card foreground | #0e0202black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #120202black | #fbf9f9snow |
| Primary | #999999darkgray | #999999darkgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #999999darkgray | #999999darkgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e1d0d0lightgrey | #2f1e1eblack |
| Muted foreground | #453a3adarkslategray | #c5babasilver |
| Accent | #999999darkgray | #999999darkgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #b2400afirebrick | #e7520dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #999999darkgray | #999999darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 5.78:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 8.40:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Speedy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.22);
--foreground: oklch(0.126 0.037 24.138);
--muted: oklch(0.872 0.019 17.518);
--muted-foreground: oklch(0.361 0.016 17.927);
--popover: oklch(0.99 0.004 17.22);
--popover-foreground: oklch(0.126 0.037 24.138);
--card: oklch(0.98 0.007 17.283);
--card-foreground: oklch(0.112 0.032 23.882);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.683 0 180);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.683 0 180);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.683 0 180);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.525 0.159 40.059);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0 180);
--chart-1: oklch(0.683 0 180);
--chart-2: oklch(0.683 0 180);
--chart-3: oklch(0.683 0 180);
--chart-4: oklch(0.708 0 158.199);
--chart-5: oklch(0.678 0.007 17.334);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.001 17.182);
--muted: oklch(0.256 0.027 19.056);
--muted-foreground: oklch(0.797 0.013 17.43);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.001 17.182);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 17.17);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.683 0 180);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.683 0 180);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.683 0 180);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.635 0.196 39.62);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0 180);
--chart-1: oklch(0.683 0 180);
--chart-2: oklch(0.683 0 180);
--chart-3: oklch(0.683 0 180);
--chart-4: oklch(0.708 0 158.199);
--chart-5: oklch(0.678 0.007 17.334);
}