Playroom is a shadcn/ui theme built around a violet primary color (#5937be) with green accents (#9cbe37). The light mode uses a neutral background (#f8f6fd). Dark mode keeps the violet primary (#5937be) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f6fdghostwhite | #020104black |
| Foreground | #06030cblack | #fcfcfdwhite |
| Card | #f8f6fdghostwhite | #020104black |
| Card foreground | #06030cblack | #fcfcfdwhite |
| Popover | #f8f6fdghostwhite | #020104black |
| Popover foreground | #06030cblack | #fcfcfdwhite |
| Primary | #5937berebeccapurple | #5937berebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9cbe37yellowgreen | #9cbe37yellowgreen |
| Secondary foreground | #1a2009black | #1a2009black |
| Muted | #e0e7cbgainsboro | #2d3418darkslategray |
| Muted foreground | #4a4d42darkslategray | #babdb2silver |
| Accent | #9cbe37yellowgreen | #9cbe37yellowgreen |
| Accent foreground | #1a2009black | #1a2009black |
| Destructive | #b72c06firebrick | #f95f34tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5937berebeccapurple | #5937berebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.69:1 | AA |
Paste this into your globals.css to use Playroom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.009 297.658);
--foreground: oklch(0.113 0.025 297.307);
--muted: oklch(0.915 0.038 118.57);
--muted-foreground: oklch(0.414 0.019 118.634);
--popover: oklch(0.978 0.009 297.658);
--popover-foreground: oklch(0.113 0.025 297.307);
--card: oklch(0.978 0.009 297.658);
--card-foreground: oklch(0.113 0.025 297.307);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.462 0.198 287.436);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.751 0.161 122.651);
--secondary-foreground: oklch(0.23 0.039 121.208);
--accent: oklch(0.751 0.161 122.651);
--accent-foreground: oklch(0.23 0.039 121.208);
--destructive: oklch(0.512 0.18 34.099);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.462 0.198 287.436);
--chart-1: oklch(0.462 0.198 287.436);
--chart-2: oklch(0.751 0.161 122.651);
--chart-3: oklch(0.751 0.161 122.651);
--chart-4: oklch(0.778 0.165 122.514);
--chart-5: oklch(0.459 0.206 286.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.016 297.516);
--foreground: oklch(0.991 0.002 297.788);
--muted: oklch(0.312 0.047 120.714);
--muted-foreground: oklch(0.794 0.016 118.185);
--popover: oklch(0.079 0.016 297.516);
--popover-foreground: oklch(0.991 0.002 297.788);
--card: oklch(0.079 0.016 297.516);
--card-foreground: oklch(0.991 0.002 297.788);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.462 0.198 287.436);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.751 0.161 122.651);
--secondary-foreground: oklch(0.23 0.039 121.208);
--accent: oklch(0.751 0.161 122.651);
--accent-foreground: oklch(0.23 0.039 121.208);
--destructive: oklch(0.68 0.197 35.985);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.462 0.198 287.436);
--chart-1: oklch(0.462 0.198 287.436);
--chart-2: oklch(0.751 0.161 122.651);
--chart-3: oklch(0.751 0.161 122.651);
--chart-4: oklch(0.778 0.165 122.514);
--chart-5: oklch(0.459 0.206 286.576);
}