Surprised is a shadcn/ui theme built around a vivid green primary color (#5af28c) with muted light green accents (#b9d4c2). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid green primary (#5af28c) on a green-tinted background (#040b07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #040b07black |
| Foreground | #06140ablack | #fcfdfcwhite |
| Card | #fcfdfcwhite | #040b07black |
| Card foreground | #06140ablack | #fcfdfcwhite |
| Popover | #fcfdfcwhite | #040b07black |
| Popover foreground | #06140ablack | #fcfdfcwhite |
| Primary | #5af28cmediumaquamarine | #5af28cmediumaquamarine |
| Primary foreground | #021809black | #021809black |
| Secondary | #d3ded7gainsboro | #323433darkslategray |
| Secondary foreground | #37493ddarkslategray | #cbcdcclightgrey |
| Muted | #ecf3efwhitesmoke | #0c130eblack |
| Muted foreground | #5a7262dimgray | #8da595darkseagreen |
| Accent | #b9d4c2silver | #3e4741darkslategray |
| Accent foreground | #23392adarkslategray | #d9dedagainsboro |
| Destructive | #c14915chocolate | #e6571achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5af28cmediumaquamarine | #5af28cmediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.53:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 12.72:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 4.63:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 4.97:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 12.72:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Surprised in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 157.218);
--foreground: oklch(0.173 0.028 154.346);
--muted: oklch(0.958 0.009 157.076);
--muted-foreground: oklch(0.528 0.038 155.684);
--popover: oklch(0.993 0.002 157.218);
--popover-foreground: oklch(0.173 0.028 154.346);
--card: oklch(0.993 0.002 157.218);
--card-foreground: oklch(0.173 0.028 154.346);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.856 0.19 151.097);
--primary-foreground: oklch(0.184 0.042 153.474);
--secondary: oklch(0.891 0.015 156.919);
--secondary-foreground: oklch(0.385 0.03 155.544);
--accent: oklch(0.846 0.038 156.319);
--accent-foreground: oklch(0.321 0.038 154.508);
--destructive: oklch(0.561 0.165 40.099);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.19 151.097);
--chart-1: oklch(0.856 0.19 151.097);
--chart-2: oklch(0.891 0.015 156.919);
--chart-3: oklch(0.846 0.038 156.319);
--chart-4: oklch(0.913 0.012 156.997);
--chart-5: oklch(0.861 0.196 150.898);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.017 156.914);
--foreground: oklch(0.993 0.002 157.222);
--muted: oklch(0.176 0.013 155.622);
--muted-foreground: oklch(0.699 0.036 156.168);
--popover: oklch(0.139 0.017 156.914);
--popover-foreground: oklch(0.993 0.002 157.222);
--card: oklch(0.139 0.017 156.914);
--card-foreground: oklch(0.993 0.002 157.222);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.856 0.19 151.097);
--primary-foreground: oklch(0.184 0.042 153.474);
--secondary: oklch(0.323 0.004 157.031);
--secondary-foreground: oklch(0.846 0.003 157.195);
--accent: oklch(0.387 0.016 156.401);
--accent-foreground: oklch(0.895 0.007 157.105);
--destructive: oklch(0.638 0.189 39.888);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.19 151.097);
--chart-1: oklch(0.856 0.19 151.097);
--chart-2: oklch(0.323 0.004 157.031);
--chart-3: oklch(0.387 0.016 156.401);
--chart-4: oklch(0.353 0.004 157.024);
--chart-5: oklch(0.861 0.196 150.898);
}