Idle is a shadcn/ui theme built around a purple primary color (#c1449b) with cyan accents (#449bc1). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c1449b) on a purple-tinted background (#0c0309).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0309black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #0c0309black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0c0309black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c1449bpalevioletred | #c1449bpalevioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9bc144yellowgreen | #9bc144yellowgreen |
| Secondary foreground | #222a0eblack | #222a0eblack |
| Muted | #eef0ealinen | #13150fblack |
| Muted foreground | #535846darkolivegreen | #b3b9a7darkgray |
| Accent | #449bc1steelblue | #449bc1steelblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #c53616firebrick | #e6431eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c1449bpalevioletred | #c1449bpalevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 5.35:1 | AA |
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 9.13:1 | AAA |
| Accent | 6.69:1 | AA |
| Destructive | 4.05:1 | AA Large |
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 0 0);
--muted: oklch(0.952 0.008 120.176);
--muted-foreground: oklch(0.449 0.028 121.11);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.586 0.185 341.6);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.758 0.157 124.373);
--secondary-foreground: oklch(0.269 0.048 123.467);
--accent: oklch(0.652 0.1 229.334);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.548 0.185 33.607);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.586 0.185 341.6);
--chart-1: oklch(0.586 0.185 341.6);
--chart-2: oklch(0.758 0.157 124.373);
--chart-3: oklch(0.652 0.1 229.334);
--chart-4: oklch(0.772 0.15 123.951);
--chart-5: oklch(0.589 0.194 341.921);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.027 336.808);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.011 121.069);
--muted-foreground: oklch(0.776 0.025 120.58);
--popover: oklch(0.122 0.027 336.808);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.027 336.808);
--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.586 0.185 341.6);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.758 0.157 124.373);
--secondary-foreground: oklch(0.269 0.048 123.467);
--accent: oklch(0.652 0.1 229.334);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.617 0.205 33.7);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.586 0.185 341.6);
--chart-1: oklch(0.586 0.185 341.6);
--chart-2: oklch(0.758 0.157 124.373);
--chart-3: oklch(0.652 0.1 229.334);
--chart-4: oklch(0.772 0.15 123.951);
--chart-5: oklch(0.589 0.194 341.921);
}