Idle is a shadcn/ui theme built around a deep purple primary color (#45214a) with neutral gray accents (#e4e1e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#45214a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #45214adarkslategray | #45214adarkslategray |
| Primary foreground | #ddbce1thistle | #ddbce1thistle |
| Secondary | #e4e1e5gainsboro | #212121black |
| Secondary foreground | #4e454fdarkslategray | #bababasilver |
| Muted | #e9e6ealavender | #191515black |
| Muted foreground | #554856darkslategray | #b7a9a9darkgray |
| Accent | #e4e1e5gainsboro | #212121black |
| Accent foreground | #4e454fdarkslategray | #bababasilver |
| Destructive | #9b2f08saddlebrown | #f35820chocolate |
| Destructive foreground | #fde2d8mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #45214adarkslategray | #45214adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 7.08:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 8.28:1 | AAA |
| Destructive | 6.25:1 | AA |
Paste this into your globals.css to use Idle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.024 324.254);
--muted: oklch(0.929 0.006 322.135);
--muted-foreground: oklch(0.419 0.028 322.336);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.316 0.083 322.808);
--primary-foreground: oklch(0.835 0.062 322.356);
--secondary: oklch(0.914 0.006 322.137);
--secondary-foreground: oklch(0.403 0.021 322.286);
--accent: oklch(0.914 0.006 322.137);
--accent-foreground: oklch(0.403 0.021 322.286);
--destructive: oklch(0.465 0.15 37.146);
--destructive-foreground: oklch(0.932 0.033 41.075);
--ring: oklch(0.316 0.083 322.808);
--chart-1: oklch(0.316 0.083 322.808);
--chart-2: oklch(0.914 0.006 322.137);
--chart-3: oklch(0.914 0.006 322.137);
--chart-4: oklch(0.937 0.005 322.13);
--chart-5: oklch(0.316 0.088 322.83);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 322.12);
--muted: oklch(0.201 0.006 17.658);
--muted-foreground: oklch(0.746 0.016 17.528);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.316 0.083 322.808);
--primary-foreground: oklch(0.835 0.062 322.356);
--secondary: oklch(0.248 0 173.29);
--secondary-foreground: oklch(0.789 0 171.254);
--accent: oklch(0.248 0 173.29);
--accent-foreground: oklch(0.789 0 171.254);
--destructive: oklch(0.662 0.2 38.12);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.316 0.083 322.808);
--chart-1: oklch(0.316 0.083 322.808);
--chart-2: oklch(0.248 0 173.29);
--chart-3: oklch(0.248 0 173.29);
--chart-4: oklch(0.28 0 180);
--chart-5: oklch(0.316 0.088 322.83);
}