Slippers is a shadcn/ui theme built around a deep green primary color (#3c5328) with deep pink accents (#53283c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#3c5328) on a neutral background (#050802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050802black |
| Foreground | #070c04black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #070c04black |
| Card foreground | #050802black | #ffffffwhite |
| Popover | #ffffffwhite | #050802black |
| Popover foreground | #070c04black | #fcfdfcwhite |
| Primary | #3c5328darkolivegreen | #3c5328darkolivegreen |
| Primary foreground | #d5e4c8lightgrey | #d5e4c8lightgrey |
| Secondary | #283c53darkslategray | #283c53darkslategray |
| Secondary foreground | #c8d5e4lightgrey | #c8d5e4lightgrey |
| Muted | #e6e8ealavender | #151719black |
| Muted foreground | #5d656fdimgray | #9098a2lightslategray |
| Accent | #53283cdarkslategray | #53283cdarkslategray |
| Accent foreground | #e4c8d5thistle | #e4c8d5thistle |
| Destructive | #c71100firebrick | #ff1500red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c5328darkolivegreen | #3c5328darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 4.80:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 5.99:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Slippers in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.022 128.757);
--muted: oklch(0.93 0.004 251.482);
--muted-foreground: oklch(0.504 0.019 251.73);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.022 128.757);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.126 0.019 128.595);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.411 0.072 131.903);
--primary-foreground: oklch(0.901 0.042 130.255);
--secondary: oklch(0.349 0.048 252.442);
--secondary-foreground: oklch(0.868 0.026 251.675);
--accent: oklch(0.341 0.069 352.036);
--accent-foreground: oklch(0.86 0.037 348.019);
--destructive: oklch(0.525 0.209 30.191);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.411 0.072 131.903);
--chart-1: oklch(0.411 0.072 131.903);
--chart-2: oklch(0.349 0.048 252.442);
--chart-3: oklch(0.341 0.069 352.036);
--chart-4: oklch(0.377 0.053 252.468);
--chart-5: oklch(0.415 0.077 132.09);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.019 128.595);
--foreground: oklch(0.993 0.001 129.796);
--muted: oklch(0.203 0.005 251.652);
--muted-foreground: oklch(0.677 0.018 251.649);
--popover: oklch(0.126 0.019 128.595);
--popover-foreground: oklch(0.993 0.001 129.796);
--card: oklch(0.144 0.022 128.757);
--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.411 0.072 131.903);
--primary-foreground: oklch(0.901 0.042 130.255);
--secondary: oklch(0.349 0.048 252.442);
--secondary-foreground: oklch(0.868 0.026 251.675);
--accent: oklch(0.341 0.069 352.036);
--accent-foreground: oklch(0.86 0.037 348.019);
--destructive: oklch(0.632 0.254 30.001);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.411 0.072 131.903);
--chart-1: oklch(0.411 0.072 131.903);
--chart-2: oklch(0.349 0.048 252.442);
--chart-3: oklch(0.341 0.069 352.036);
--chart-4: oklch(0.377 0.053 252.468);
--chart-5: oklch(0.415 0.077 132.09);
}