Spectacular is a shadcn/ui theme built around a green primary color (#91ea86) with near-white accents (#eaece9). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#91ea86) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #040703black |
| Foreground | #061504black | #f9fbf9mintcream |
| Card | #f9fcf8mintcream | #050b05black |
| Card foreground | #051103black | #fcfdfcwhite |
| Popover | #f9fcf8mintcream | #050b05black |
| Popover foreground | #051103black | #fcfdfcwhite |
| Primary | #91ea86lightgreen | #91ea86lightgreen |
| Primary foreground | #0e3409darkgreen | #0e3409darkgreen |
| Secondary | #eaece9linen | #212820black |
| Secondary foreground | #4e564ddarkslategray | #b7c4b5silver |
| Muted | #ddebdbgainsboro | #162414black |
| Muted foreground | #636a62dimgray | #969d95darkgray |
| Accent | #eaece9linen | #212820black |
| Accent foreground | #4e564ddarkslategray | #b7c4b5silver |
| Destructive | #8c2103darkred | #fa4e1eorangered |
| Destructive foreground | #fed0c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91ea86lightgreen | #91ea86lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.46:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 6.38:1 | AA |
| Muted text | 4.50:1 | AA |
| Accent | 6.38:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Spectacular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 142.103);
--foreground: oklch(0.178 0.042 140.553);
--muted: oklch(0.925 0.027 142.014);
--muted-foreground: oklch(0.516 0.015 142.01);
--popover: oklch(0.987 0.006 142.093);
--popover-foreground: oklch(0.161 0.037 140.301);
--card: oklch(0.987 0.006 142.093);
--card-foreground: oklch(0.161 0.037 140.301);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.857 0.159 141.506);
--primary-foreground: oklch(0.288 0.081 141.422);
--secondary: oklch(0.94 0.004 142.098);
--secondary-foreground: oklch(0.444 0.019 141.964);
--accent: oklch(0.94 0.004 142.098);
--accent-foreground: oklch(0.444 0.019 141.964);
--destructive: oklch(0.422 0.147 34.516);
--destructive-foreground: oklch(0.893 0.055 35.961);
--ring: oklch(0.857 0.159 141.506);
--chart-1: oklch(0.857 0.159 141.506);
--chart-2: oklch(0.94 0.004 142.098);
--chart-3: oklch(0.94 0.004 142.098);
--chart-4: oklch(0.963 0.002 142.104);
--chart-5: oklch(0.86 0.165 141.491);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.016 140.881);
--foreground: oklch(0.986 0.003 142.102);
--muted: oklch(0.243 0.036 141.61);
--muted-foreground: oklch(0.688 0.014 142.041);
--popover: oklch(0.139 0.019 140.886);
--popover-foreground: oklch(0.993 0.002 142.107);
--card: oklch(0.139 0.019 140.886);
--card-foreground: oklch(0.993 0.002 142.107);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.857 0.159 141.506);
--primary-foreground: oklch(0.288 0.081 141.422);
--secondary: oklch(0.266 0.017 141.886);
--secondary-foreground: oklch(0.806 0.025 142.007);
--accent: oklch(0.266 0.017 141.886);
--accent-foreground: oklch(0.806 0.025 142.007);
--destructive: oklch(0.662 0.216 35.14);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.159 141.506);
--chart-1: oklch(0.857 0.159 141.506);
--chart-2: oklch(0.266 0.017 141.886);
--chart-3: oklch(0.266 0.017 141.886);
--chart-4: oklch(0.298 0.021 141.874);
--chart-5: oklch(0.86 0.165 141.491);
}