Piccolo is a shadcn/ui theme built around a near-black primary color (#121211) with near-white accents (#eaecea). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the near-black primary (#121211) on a green-tinted background (#060b05).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #060b05black |
| Foreground | #050c04black | #fcfdfcwhite |
| Card | #f8fdf7mintcream | #060b05black |
| Card foreground | #050c04black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #060b05black |
| Popover foreground | #050c04black | #fcfdfcwhite |
| Primary | #121211black | #121211black |
| Primary foreground | #aaada9darkgray | #aaada9darkgray |
| Secondary | #eaecealinen | #2e2e2edarkslategray |
| Secondary foreground | #4f564edarkslategray | #c7c7c7silver |
| Muted | #e2e5e1gainsboro | #1e1a1ablack |
| Muted foreground | #646963dimgray | #9c9696darkgray |
| Accent | #eaecealinen | #2e2e2edarkslategray |
| Accent foreground | #4f564edarkslategray | #c7c7c7silver |
| Destructive | #c94208chocolate | #f04f0aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #121211black | #121211black |
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 | 8.25:1 | AAA |
| Secondary button | 6.35:1 | AA |
| Muted text | 4.40:1 | AA Large |
| Accent | 6.35:1 | AA |
| Destructive | 4.92:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Piccolo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 141.568);
--foreground: oklch(0.141 0.025 139.988);
--muted: oklch(0.918 0.006 141.573);
--muted-foreground: oklch(0.514 0.012 141.529);
--popover: oklch(0.988 0.009 141.568);
--popover-foreground: oklch(0.141 0.025 139.988);
--card: oklch(0.988 0.009 141.568);
--card-foreground: oklch(0.141 0.025 139.988);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.182 0.002 141.565);
--primary-foreground: oklch(0.743 0.006 141.57);
--secondary: oklch(0.94 0.003 141.582);
--secondary-foreground: oklch(0.443 0.016 141.491);
--accent: oklch(0.94 0.003 141.582);
--accent-foreground: oklch(0.443 0.016 141.491);
--destructive: oklch(0.566 0.18 38.36);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.182 0.002 141.565);
--chart-1: oklch(0.182 0.002 141.565);
--chart-2: oklch(0.94 0.003 141.582);
--chart-3: oklch(0.94 0.003 141.582);
--chart-4: oklch(0.963 0.002 141.586);
--chart-5: oklch(0.183 0.004 141.525);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 140.421);
--foreground: oklch(0.993 0.002 141.587);
--muted: oklch(0.223 0.006 17.626);
--muted-foreground: oklch(0.678 0.007 17.334);
--popover: oklch(0.138 0.018 140.421);
--popover-foreground: oklch(0.993 0.002 141.587);
--card: oklch(0.138 0.018 140.421);
--card-foreground: oklch(0.993 0.002 141.587);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.182 0.002 141.565);
--primary-foreground: oklch(0.743 0.006 141.57);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.301 0 189.462);
--accent-foreground: oklch(0.829 0 180);
--destructive: oklch(0.645 0.207 38.068);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.182 0.002 141.565);
--chart-1: oklch(0.182 0.002 141.565);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.301 0 189.462);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.183 0.004 141.525);
}