Speculation is a shadcn/ui theme built around a blue primary color (#a4aed0) with green accents (#aed0a4). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#a4aed0) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020204black |
| Foreground | #04060cblack | #ffffffwhite |
| Card | #f8f9fcghostwhite | #030407black |
| Card foreground | #020408black | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #030407black |
| Popover foreground | #020408black | #ffffffwhite |
| Primary | #a4aed0lightsteelblue | #a4aed0lightsteelblue |
| Primary foreground | #171b2cblack | #171b2cblack |
| Secondary | #d0a4aesilver | #d0a4aesilver |
| Secondary foreground | #2c171bblack | #2c171bblack |
| Muted | #e7d0d5gainsboro | #2f181dblack |
| Muted foreground | #4d4c4cdarkslategray | #b3b2b2darkgray |
| Accent | #aed0a4silver | #aed0a4silver |
| Accent foreground | #1b2c17black | #1b2c17black |
| Destructive | #a64511saddlebrown | #e96d2bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a4aed0lightsteelblue | #a4aed0lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.72:1 | AAA |
| Destructive | 6.00:1 | AA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 8.72:1 | AAA |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Speculation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 272.634);
--foreground: oklch(0.12 0.017 266.171);
--muted: oklch(0.877 0.027 1.813);
--muted-foreground: oklch(0.417 0.002 1.101);
--popover: oklch(0.982 0.004 272.61);
--popover-foreground: oklch(0.104 0.014 266.034);
--card: oklch(0.982 0.004 272.61);
--card-foreground: oklch(0.104 0.014 266.034);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.755 0.05 271.859);
--primary-foreground: oklch(0.228 0.033 270.691);
--secondary: oklch(0.762 0.054 2.862);
--secondary-foreground: oklch(0.234 0.035 5.053);
--accent: oklch(0.822 0.07 138.436);
--accent-foreground: oklch(0.271 0.044 138.61);
--destructive: oklch(0.514 0.141 43.831);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.755 0.05 271.859);
--chart-1: oklch(0.755 0.05 271.859);
--chart-2: oklch(0.762 0.054 2.862);
--chart-3: oklch(0.822 0.07 138.436);
--chart-4: oklch(0.789 0.047 2.578);
--chart-5: oklch(0.752 0.055 271.768);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.008 268.016);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.039 5.298);
--muted-foreground: oklch(0.764 0.002 1.027);
--popover: oklch(0.107 0.011 268.016);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.011 268.016);
--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.755 0.05 271.859);
--primary-foreground: oklch(0.228 0.033 270.691);
--secondary: oklch(0.762 0.054 2.862);
--secondary-foreground: oklch(0.234 0.035 5.053);
--accent: oklch(0.822 0.07 138.436);
--accent-foreground: oklch(0.271 0.044 138.61);
--destructive: oklch(0.674 0.171 45.211);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.755 0.05 271.859);
--chart-1: oklch(0.755 0.05 271.859);
--chart-2: oklch(0.762 0.054 2.862);
--chart-3: oklch(0.822 0.07 138.436);
--chart-4: oklch(0.789 0.047 2.578);
--chart-5: oklch(0.752 0.055 271.768);
}