Unruly is a shadcn/ui theme built around a light red primary color (#fbe4e6) with light indigo accents (#e4e6fb). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the light red primary (#fbe4e6) on a red-tinted background (#0a0506).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f7snow | #0a0506black |
| Foreground | #100405black | #ffffffwhite |
| Card | #fdf2f3lavenderblush | #0e0707black |
| Card foreground | #0c0304black | #ffffffwhite |
| Popover | #fdf2f3lavenderblush | #0e0707black |
| Popover foreground | #0c0304black | #ffffffwhite |
| Primary | #fbe4e6mistyrose | #fbe4e6mistyrose |
| Primary foreground | #981621brown | #981621brown |
| Secondary | #e6fbe4honeydew | #e6fbe4honeydew |
| Secondary foreground | #0d3e09darkgreen | #0d3e09darkgreen |
| Muted | #ebf6eahoneydew | #0a1509black |
| Muted foreground | #50544fdarkslategray | #abb0abdarkgray |
| Accent | #e4e6fblavender | #e4e6fblavender |
| Accent foreground | #162198midnightblue | #162198midnightblue |
| Destructive | #e62a00orangered | #ff4419orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbe4e6mistyrose | #fbe4e6mistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.96:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 11.29:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 9.99:1 | AAA |
| Destructive | 4.48:1 | AA Large |
| Text on background | 20.23:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 11.29:1 | AAA |
| Muted text | 8.46:1 | AAA |
| Accent | 9.99:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Unruly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 11.421);
--foreground: oklch(0.132 0.026 14.02);
--muted: oklch(0.961 0.019 143.042);
--muted-foreground: oklch(0.44 0.01 143.031);
--popover: oklch(0.97 0.012 11.511);
--popover-foreground: oklch(0.118 0.023 13.358);
--card: oklch(0.97 0.012 11.511);
--card-foreground: oklch(0.118 0.023 13.358);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.939 0.025 11.839);
--primary-foreground: oklch(0.438 0.163 23.914);
--secondary: oklch(0.967 0.037 142.952);
--secondary-foreground: oklch(0.321 0.096 141.918);
--accent: oklch(0.93 0.028 281.689);
--accent-foreground: oklch(0.344 0.188 268.088);
--destructive: oklch(0.595 0.224 32.24);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.025 11.839);
--chart-1: oklch(0.939 0.025 11.839);
--chart-2: oklch(0.967 0.037 142.952);
--chart-3: oklch(0.93 0.028 281.689);
--chart-4: oklch(0.983 0.019 143.046);
--chart-5: oklch(0.938 0.026 11.864);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.011 12.096);
--foreground: oklch(1 0 180);
--muted: oklch(0.182 0.028 142.387);
--muted-foreground: oklch(0.752 0.009 143.081);
--popover: oklch(0.138 0.013 12.478);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.013 12.478);
--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.939 0.025 11.839);
--primary-foreground: oklch(0.438 0.163 23.914);
--secondary: oklch(0.967 0.037 142.952);
--secondary-foreground: oklch(0.321 0.096 141.918);
--accent: oklch(0.93 0.028 281.689);
--accent-foreground: oklch(0.344 0.188 268.088);
--destructive: oklch(0.66 0.229 33.373);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.025 11.839);
--chart-1: oklch(0.939 0.025 11.839);
--chart-2: oklch(0.967 0.037 142.952);
--chart-3: oklch(0.93 0.028 281.689);
--chart-4: oklch(0.983 0.019 143.046);
--chart-5: oklch(0.938 0.026 11.864);
}