Surround is a shadcn/ui theme built around a vivid light pink primary color (#ffe6f2) with vivid light blue accents (#e6f2ff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light pink primary (#ffe6f2) on a neutral background (#080205).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080205black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0c0308black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0c0308black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ffe6f2lavenderblush | #ffe6f2lavenderblush |
| Primary foreground | #4c0026maroon | #4c0026maroon |
| Secondary | #f2ffe6honeydew | #f2ffe6honeydew |
| Secondary foreground | #264c00darkgreen | #264c00darkgreen |
| Muted | #ebf2e3beige | #141c0dblack |
| Muted foreground | #57604ddarkolivegreen | #a8b29fdarkgray |
| Accent | #e6f2ffaliceblue | #e6f2ffaliceblue |
| Accent foreground | #0159b2darkcyan | #0159b2darkcyan |
| Destructive | #781207maroon | #de220dfirebrick |
| Destructive foreground | #fbbeb7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffe6f2lavenderblush | #ffe6f2lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 13.33:1 | AAA |
| Secondary button | 9.55:1 | AAA |
| Muted text | 5.74:1 | AA |
| Accent | 6.02:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 20.07:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 13.33:1 | AAA |
| Secondary button | 9.55:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 6.02:1 | AA |
| Destructive | 4.85:1 | AA |
Paste this into your globals.css to use Surround in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.02 128.701);
--muted-foreground: oklch(0.476 0.032 129.24);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.948 0.032 346.004);
--primary-foreground: oklch(0.271 0.11 358.21);
--secondary: oklch(0.984 0.036 128.871);
--secondary-foreground: oklch(0.374 0.107 134.198);
--accent: oklch(0.956 0.022 248.055);
--accent-foreground: oklch(0.474 0.158 255.461);
--destructive: oklch(0.372 0.138 30.591);
--destructive-foreground: oklch(0.854 0.072 25.896);
--ring: oklch(0.948 0.032 346.004);
--chart-1: oklch(0.948 0.032 346.004);
--chart-2: oklch(0.984 0.036 128.871);
--chart-3: oklch(0.956 0.022 248.055);
--chart-4: oklch(0.993 0.014 128.621);
--chart-5: oklch(0.947 0.033 346.03);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.022 344.94);
--foreground: oklch(0.992 0.002 345.184);
--muted: oklch(0.212 0.029 130.141);
--muted-foreground: oklch(0.75 0.029 128.896);
--popover: oklch(0.121 0.025 345.314);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.025 345.314);
--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.948 0.032 346.004);
--primary-foreground: oklch(0.271 0.11 358.21);
--secondary: oklch(0.984 0.036 128.871);
--secondary-foreground: oklch(0.374 0.107 134.198);
--accent: oklch(0.956 0.022 248.055);
--accent-foreground: oklch(0.474 0.158 255.461);
--destructive: oklch(0.576 0.221 30.454);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.948 0.032 346.004);
--chart-1: oklch(0.948 0.032 346.004);
--chart-2: oklch(0.984 0.036 128.871);
--chart-3: oklch(0.956 0.022 248.055);
--chart-4: oklch(0.993 0.014 128.621);
--chart-5: oklch(0.947 0.033 346.03);
}