Unruly is a shadcn/ui theme built around an indigo primary color (#797cc8) with yellow accents (#c8c679). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#797cc8) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020203black |
| Foreground | #050510black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #020203black |
| Card foreground | #050510black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #020203black |
| Popover foreground | #050510black | #ffffffwhite |
| Primary | #797cc8mediumpurple | #797cc8mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #c8c679darkkhaki | #c8c679darkkhaki |
| Secondary foreground | #0b0b04black | #0b0b04black |
| Muted | #f1f1e4linen | #1b1b0eblack |
| Muted foreground | #6b6b61dimgray | #9e9e94darkgray |
| Accent | #c8c679darkkhaki | #c8c679darkkhaki |
| Accent foreground | #0b0b04black | #0b0b04black |
| Destructive | #6a260bmaroon | #e85a21chocolate |
| Destructive foreground | #f7c4b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #797cc8mediumpurple | #797cc8mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 11.07:1 | AAA |
| Muted text | 4.72:1 | AA |
| Accent | 11.07:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 11.07:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 11.07:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Unruly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 284.73);
--foreground: oklch(0.122 0.027 279.561);
--muted: oklch(0.955 0.017 105.12);
--muted-foreground: oklch(0.524 0.015 105.3);
--popover: oklch(0.988 0.004 284.73);
--popover-foreground: oklch(0.122 0.027 279.561);
--card: oklch(0.988 0.004 284.73);
--card-foreground: oklch(0.122 0.027 279.561);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.616 0.115 280.955);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.81 0.098 106.691);
--secondary-foreground: oklch(0.145 0.015 106.759);
--accent: oklch(0.81 0.098 106.691);
--accent-foreground: oklch(0.145 0.015 106.759);
--destructive: oklch(0.366 0.104 39.736);
--destructive-foreground: oklch(0.861 0.064 42.634);
--ring: oklch(0.616 0.115 280.955);
--chart-1: oklch(0.616 0.115 280.955);
--chart-2: oklch(0.81 0.098 106.691);
--chart-3: oklch(0.81 0.098 106.691);
--chart-4: oklch(0.826 0.091 106.542);
--chart-5: oklch(0.61 0.123 280.584);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.01 282.138);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.024 106.518);
--muted-foreground: oklch(0.696 0.014 105.157);
--popover: oklch(0.083 0.01 282.138);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.083 0.01 282.138);
--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.616 0.115 280.955);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.81 0.098 106.691);
--secondary-foreground: oklch(0.145 0.015 106.759);
--accent: oklch(0.81 0.098 106.691);
--accent-foreground: oklch(0.145 0.015 106.759);
--destructive: oklch(0.645 0.188 39.441);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.115 280.955);
--chart-1: oklch(0.616 0.115 280.955);
--chart-2: oklch(0.81 0.098 106.691);
--chart-3: oklch(0.81 0.098 106.691);
--chart-4: oklch(0.826 0.091 106.542);
--chart-5: oklch(0.61 0.123 280.584);
}