Speedy is a shadcn/ui theme built around a deep red primary color (#73172e) with deep teal accents (#17735c). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep red primary (#73172e) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #070304black |
| Foreground | #0d0305black | #fbf9f9snow |
| Card | #fdf7f9snow | #0a0506black |
| Card foreground | #080203black | #fdfcfcsnow |
| Popover | #fefbfcsnow | #070304black |
| Popover foreground | #0d0305black | #fbf9f9snow |
| Primary | #73172emaroon | #73172emaroon |
| Primary foreground | #f4c8d3pink | #f4c8d3pink |
| Secondary | #17735cseagreen | #17735cseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ecf3f1whitesmoke | #0c1311black |
| Muted foreground | #475c57darkslategray | #a3b8b3darkgray |
| Accent | #17735cseagreen | #17735cseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #da190bred | #e41a0cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #73172emaroon | #73172emaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 5.76:1 | AA |
| Muted text | 6.35:1 | AA |
| Accent | 5.76:1 | AA |
| Destructive | 5.08:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 5.76:1 | AA |
| Muted text | 9.03:1 | AAA |
| Accent | 5.76:1 | AA |
| Destructive | 4.72:1 | AA |
Paste this into your globals.css to use Speedy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 359.948);
--foreground: oklch(0.118 0.026 0.135);
--muted: oklch(0.959 0.007 179.653);
--muted-foreground: oklch(0.456 0.027 178.041);
--popover: oklch(0.991 0.003 359.948);
--popover-foreground: oklch(0.118 0.026 0.135);
--card: oklch(0.981 0.006 0.033);
--card-foreground: oklch(0.103 0.022 359.769);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.37 0.126 11.876);
--primary-foreground: oklch(0.873 0.052 1.505);
--secondary: oklch(0.498 0.09 171.239);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.498 0.09 171.239);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.565 0.222 29.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.37 0.126 11.876);
--chart-1: oklch(0.37 0.126 11.876);
--chart-2: oklch(0.498 0.09 171.239);
--chart-3: oklch(0.498 0.09 171.239);
--chart-4: oklch(0.537 0.098 171.1);
--chart-5: oklch(0.372 0.13 12.547);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.01 359.826);
--foreground: oklch(0.983 0.002 359.938);
--muted: oklch(0.177 0.01 178.063);
--muted-foreground: oklch(0.765 0.025 178.924);
--popover: oklch(0.11 0.01 359.826);
--popover-foreground: oklch(0.983 0.002 359.938);
--card: oklch(0.126 0.012 359.826);
--card-foreground: oklch(0.992 0.001 359.902);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.37 0.126 11.876);
--primary-foreground: oklch(0.873 0.052 1.505);
--secondary: oklch(0.498 0.09 171.239);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.498 0.09 171.239);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.584 0.229 29.757);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.37 0.126 11.876);
--chart-1: oklch(0.37 0.126 11.876);
--chart-2: oklch(0.498 0.09 171.239);
--chart-3: oklch(0.498 0.09 171.239);
--chart-4: oklch(0.537 0.098 171.1);
--chart-5: oklch(0.372 0.13 12.547);
}