Spring is a shadcn/ui theme built around a muted light pink primary color (#ede8ea) with near-white accents (#e8e8e8). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted light pink primary (#ede8ea) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #000000black |
| Foreground | #160309black | #ffffffwhite |
| Card | #fefbfcsnow | #000000black |
| Card foreground | #160309black | #ffffffwhite |
| Popover | #fefbfcsnow | #000000black |
| Popover foreground | #160309black | #ffffffwhite |
| Primary | #ede8ealinen | #ede8ealinen |
| Primary foreground | #5b484ddarkslategray | #5b484ddarkslategray |
| Secondary | #e8e8e8lavender | #191516black |
| Secondary foreground | #504e4fdarkslategray | #b5aaaedarkgray |
| Muted | #f3e8eblinen | #170c10black |
| Muted foreground | #585556dimgray | #aaa7a8darkgray |
| Accent | #e8e8e8lavender | #191516black |
| Accent foreground | #504e4fdarkslategray | #b5aaaedarkgray |
| Destructive | #862c0esaddlebrown | #d04416chocolate |
| Destructive foreground | #fad8ccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ede8ealinen | #ede8ealinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 6.62:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Spring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 357.802);
--foreground: oklch(0.143 0.04 1.427);
--muted: oklch(0.94 0.012 358.086);
--muted-foreground: oklch(0.453 0.005 358.014);
--popover: oklch(0.991 0.003 357.802);
--popover-foreground: oklch(0.143 0.04 1.427);
--card: oklch(0.991 0.003 357.802);
--card-foreground: oklch(0.143 0.04 1.427);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.936 0.006 357.886);
--primary-foreground: oklch(0.423 0.028 359.54);
--secondary: oklch(0.931 0.001 357.73);
--secondary-foreground: oklch(0.427 0.002 357.862);
--accent: oklch(0.931 0.001 357.73);
--accent-foreground: oklch(0.427 0.002 357.862);
--destructive: oklch(0.424 0.129 37.292);
--destructive-foreground: oklch(0.906 0.041 39.297);
--ring: oklch(0.936 0.006 357.886);
--chart-1: oklch(0.936 0.006 357.886);
--chart-2: oklch(0.931 0.001 357.73);
--chart-3: oklch(0.931 0.001 357.73);
--chart-4: oklch(0.954 0 357.725);
--chart-5: oklch(0.935 0.007 357.929);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.019 0.773);
--muted-foreground: oklch(0.73 0.004 357.88);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.936 0.006 357.886);
--primary-foreground: oklch(0.423 0.028 359.54);
--secondary: oklch(0.201 0.005 358.477);
--secondary-foreground: oklch(0.75 0.013 358.224);
--accent: oklch(0.201 0.005 358.477);
--accent-foreground: oklch(0.75 0.013 358.224);
--destructive: oklch(0.581 0.184 36.82);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.936 0.006 357.886);
--chart-1: oklch(0.936 0.006 357.886);
--chart-2: oklch(0.201 0.005 358.477);
--chart-3: oklch(0.201 0.005 358.477);
--chart-4: oklch(0.234 0.007 358.558);
--chart-5: oklch(0.935 0.007 357.929);
}