Unruly is a shadcn/ui theme built around a light blue primary color (#aec9ea) with light green accents (#c9eaae). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the light blue primary (#aec9ea) on a blue-tinted background (#05070b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #05070bblack |
| Foreground | #030c16black | #f5f7f9whitesmoke |
| Card | #fbfcfewhite | #05070bblack |
| Card foreground | #030c16black | #f5f7f9whitesmoke |
| Popover | #fbfcfewhite | #05070bblack |
| Popover foreground | #030c16black | #f5f7f9whitesmoke |
| Primary | #aec9ealightsteelblue | #aec9ealightsteelblue |
| Primary foreground | #153051midnightblue | #153051midnightblue |
| Secondary | #eaaec9lightpink | #eaaec9lightpink |
| Secondary foreground | #511530maroon | #511530maroon |
| Muted | #e1dbdegainsboro | #241e21black |
| Muted foreground | #664d58dimgray | #b299a5darkgray |
| Accent | #c9eaaepalegoldenrod | #c9eaaepalegoldenrod |
| Accent foreground | #305115darkolivegreen | #305115darkolivegreen |
| Destructive | #980101darkred | #f40101red |
| Destructive foreground | #ffccccpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aec9ealightsteelblue | #aec9ealightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.56:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 6.29:1 | AA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Unruly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 253.241);
--foreground: oklch(0.15 0.028 249.443);
--muted: oklch(0.897 0.007 348.013);
--muted-foreground: oklch(0.449 0.038 349.982);
--popover: oklch(0.991 0.003 253.241);
--popover-foreground: oklch(0.15 0.028 249.443);
--card: oklch(0.991 0.003 253.241);
--card-foreground: oklch(0.15 0.028 249.443);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.827 0.055 253.59);
--primary-foreground: oklch(0.306 0.069 254.739);
--secondary: oklch(0.814 0.078 350.29);
--secondary-foreground: oklch(0.305 0.094 356.541);
--accent: oklch(0.898 0.087 131.41);
--accent-foreground: oklch(0.396 0.096 133.822);
--destructive: oklch(0.428 0.175 29.173);
--destructive-foreground: oklch(0.89 0.057 18.287);
--ring: oklch(0.827 0.055 253.59);
--chart-1: oklch(0.827 0.055 253.59);
--chart-2: oklch(0.814 0.078 350.29);
--chart-3: oklch(0.898 0.087 131.41);
--chart-4: oklch(0.841 0.066 349.844);
--chart-5: oklch(0.826 0.058 253.607);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.01 247.582);
--foreground: oklch(0.976 0.003 253.243);
--muted: oklch(0.244 0.009 348.818);
--muted-foreground: oklch(0.709 0.033 349.056);
--popover: oklch(0.128 0.01 247.582);
--popover-foreground: oklch(0.976 0.003 253.243);
--card: oklch(0.128 0.01 247.582);
--card-foreground: oklch(0.976 0.003 253.243);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.827 0.055 253.59);
--primary-foreground: oklch(0.306 0.069 254.739);
--secondary: oklch(0.814 0.078 350.29);
--secondary-foreground: oklch(0.305 0.094 356.541);
--accent: oklch(0.898 0.087 131.41);
--accent-foreground: oklch(0.396 0.096 133.822);
--destructive: oklch(0.607 0.249 29.2);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.827 0.055 253.59);
--chart-1: oklch(0.827 0.055 253.59);
--chart-2: oklch(0.814 0.078 350.29);
--chart-3: oklch(0.898 0.087 131.41);
--chart-4: oklch(0.841 0.066 349.844);
--chart-5: oklch(0.826 0.058 253.607);
}