Surprised is a shadcn/ui theme built around a light green primary color (#a3e0a8) with light teal accents (#a3e0c7). The light mode uses a neutral background (#fbfefb). Dark mode keeps the light green primary (#a3e0a8) on a green-tinted background (#040c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040c04black |
| Foreground | #010401black | #ffffffwhite |
| Card | #fbfefbwhite | #040c04black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #fbfefbwhite | #040c04black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #a3e0a8palegreen | #a3e0a8palegreen |
| Primary foreground | #143d18darkgreen | #143d18darkgreen |
| Secondary | #bde0a3silver | #bde0a3silver |
| Secondary foreground | #253d14darkgreen | #253d14darkgreen |
| Muted | #e9f2e4beige | #131b0dblack |
| Muted foreground | #535d4cdarkolivegreen | #a9b3a2darkgray |
| Accent | #a3e0c7lightblue | #a3e0c7lightblue |
| Accent foreground | #143d2cdarkslategray | #143d2cdarkslategray |
| Destructive | #ac2d06firebrick | #f8663atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a3e0a8palegreen | #a3e0a8palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Surprised in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 148.004);
--foreground: oklch(0.098 0.023 146.323);
--muted: oklch(0.95 0.02 131.9);
--muted-foreground: oklch(0.463 0.029 132.259);
--popover: oklch(0.994 0.006 148.004);
--popover-foreground: oklch(0.098 0.023 146.323);
--card: oklch(0.994 0.006 148.004);
--card-foreground: oklch(0.098 0.023 146.323);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.852 0.099 146.744);
--primary-foreground: oklch(0.322 0.078 144.962);
--secondary: oklch(0.867 0.09 132.642);
--secondary-foreground: oklch(0.33 0.071 134.141);
--accent: oklch(0.859 0.072 167.029);
--accent-foreground: oklch(0.326 0.055 163.056);
--destructive: oklch(0.494 0.169 35);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.852 0.099 146.744);
--chart-1: oklch(0.852 0.099 146.744);
--chart-2: oklch(0.867 0.09 132.642);
--chart-3: oklch(0.859 0.072 167.029);
--chart-4: oklch(0.883 0.079 132.499);
--chart-5: oklch(0.854 0.105 146.667);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.025 146.748);
--foreground: oklch(1 0 180);
--muted: oklch(0.211 0.029 132.987);
--muted-foreground: oklch(0.755 0.026 132.01);
--popover: oklch(0.14 0.025 146.748);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.025 146.748);
--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.852 0.099 146.744);
--primary-foreground: oklch(0.322 0.078 144.962);
--secondary: oklch(0.867 0.09 132.642);
--secondary-foreground: oklch(0.33 0.071 134.141);
--accent: oklch(0.859 0.072 167.029);
--accent-foreground: oklch(0.326 0.055 163.056);
--destructive: oklch(0.688 0.188 37.194);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.852 0.099 146.744);
--chart-1: oklch(0.852 0.099 146.744);
--chart-2: oklch(0.867 0.09 132.642);
--chart-3: oklch(0.859 0.072 167.029);
--chart-4: oklch(0.883 0.079 132.499);
--chart-5: oklch(0.854 0.105 146.667);
}