Surround is a shadcn/ui theme built around a muted blue primary color (#a6b4c9) with muted orange accents (#c9bba6). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#a6b4c9) on a blue-tinted background (#05090f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #05090fblack |
| Foreground | #060b14black | #f9fafbghostwhite |
| Card | #f7f9fdghostwhite | #060b13black |
| Card foreground | #040910black | #fcfcfdwhite |
| Popover | #f7f9fdghostwhite | #060b13black |
| Popover foreground | #040910black | #fcfcfdwhite |
| Primary | #a6b4c9lightsteelblue | #a6b4c9lightsteelblue |
| Primary foreground | #171d26black | #171d26black |
| Secondary | #c9bba6silver | #c9bba6silver |
| Secondary foreground | #262017black | #262017black |
| Muted | #e4dbcegainsboro | #31281bdarkslategray |
| Muted foreground | #4f4940darkslategray | #bfb9b0silver |
| Accent | #c9bba6silver | #c9bba6silver |
| Accent foreground | #262017black | #262017black |
| Destructive | #83180cmaroon | #eb402dtomato |
| Destructive foreground | #faccc7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a6b4c9lightsteelblue | #a6b4c9lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Surround in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 258.32);
--foreground: oklch(0.149 0.021 255.747);
--muted: oklch(0.895 0.02 78.223);
--muted-foreground: oklch(0.408 0.017 78.097);
--popover: oklch(0.982 0.006 258.328);
--popover-foreground: oklch(0.138 0.018 253.052);
--card: oklch(0.982 0.006 258.328);
--card-foreground: oklch(0.138 0.018 253.052);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.766 0.035 258.372);
--primary-foreground: oklch(0.229 0.02 258.35);
--secondary: oklch(0.799 0.034 78.103);
--secondary-foreground: oklch(0.248 0.019 77.74);
--accent: oklch(0.799 0.034 78.103);
--accent-foreground: oklch(0.248 0.019 77.74);
--destructive: oklch(0.397 0.143 30.488);
--destructive-foreground: oklch(0.884 0.053 25.585);
--ring: oklch(0.766 0.035 258.372);
--chart-1: oklch(0.766 0.035 258.372);
--chart-2: oklch(0.799 0.034 78.103);
--chart-3: oklch(0.799 0.034 78.103);
--chart-4: oklch(0.821 0.03 78.143);
--chart-5: oklch(0.764 0.039 258.372);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.016 253.648);
--foreground: oklch(0.984 0.002 258.317);
--muted: oklch(0.285 0.026 77.483);
--muted-foreground: oklch(0.789 0.015 78.242);
--popover: oklch(0.15 0.019 256.304);
--popover-foreground: oklch(0.992 0.001 258.315);
--card: oklch(0.15 0.019 256.304);
--card-foreground: oklch(0.992 0.001 258.315);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.766 0.035 258.372);
--primary-foreground: oklch(0.229 0.02 258.35);
--secondary: oklch(0.799 0.034 78.103);
--secondary-foreground: oklch(0.248 0.019 77.74);
--accent: oklch(0.799 0.034 78.103);
--accent-foreground: oklch(0.248 0.019 77.74);
--destructive: oklch(0.625 0.211 30.248);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.766 0.035 258.372);
--chart-1: oklch(0.766 0.035 258.372);
--chart-2: oklch(0.799 0.034 78.103);
--chart-3: oklch(0.799 0.034 78.103);
--chart-4: oklch(0.821 0.03 78.143);
--chart-5: oklch(0.764 0.039 258.372);
}