Unruly is a shadcn/ui theme built around a light orange primary color (#f2dcd4) with light yellow accents (#f2ead4). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light orange primary (#f2dcd4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #000000black |
| Foreground | #090302black | #f9f6f6whitesmoke |
| Card | #fefcfbsnow | #000000black |
| Card foreground | #090302black | #f9f6f6whitesmoke |
| Popover | #fefcfbsnow | #000000black |
| Popover foreground | #090302black | #f9f6f6whitesmoke |
| Primary | #f2dcd4antiquewhite | #f2dcd4antiquewhite |
| Primary foreground | #703723saddlebrown | #703723saddlebrown |
| Secondary | #f2d4dcmistyrose | #f2d4dcmistyrose |
| Secondary foreground | #702337brown | #702337brown |
| Muted | #e4cdd3lightgrey | #321b21black |
| Muted foreground | #694f55dimgray | #b0969drosybrown |
| Accent | #f2ead4antiquewhite | #f2ead4antiquewhite |
| Accent foreground | #231d0bblack | #231d0bblack |
| Destructive | #6b1c0amaroon | #ea441forangered |
| Destructive foreground | #f8bdb0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2dcd4antiquewhite | #f2dcd4antiquewhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 4.91:1 | AA |
| Accent | 13.98:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 13.98:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Unruly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 39.49);
--foreground: oklch(0.111 0.017 49.119);
--muted: oklch(0.87 0.027 0.719);
--muted-foreground: oklch(0.456 0.036 2.001);
--popover: oklch(0.992 0.003 39.49);
--popover-foreground: oklch(0.111 0.017 49.119);
--card: oklch(0.992 0.003 39.49);
--card-foreground: oklch(0.111 0.017 49.119);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.909 0.026 39.353);
--primary-foreground: oklch(0.407 0.087 38.965);
--secondary: oklch(0.897 0.034 0.907);
--secondary-foreground: oklch(0.382 0.109 8.777);
--accent: oklch(0.938 0.03 91.656);
--accent-foreground: oklch(0.232 0.032 91.394);
--destructive: oklch(0.355 0.116 33.826);
--destructive-foreground: oklch(0.848 0.071 32.927);
--ring: oklch(0.909 0.026 39.353);
--chart-1: oklch(0.909 0.026 39.353);
--chart-2: oklch(0.897 0.034 0.907);
--chart-3: oklch(0.938 0.03 91.656);
--chart-4: oklch(0.925 0.024 0.596);
--chart-5: oklch(0.909 0.028 39.347);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 39.486);
--muted: oklch(0.254 0.037 3.886);
--muted-foreground: oklch(0.699 0.032 1.119);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 39.486);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 39.486);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.909 0.026 39.353);
--primary-foreground: oklch(0.407 0.087 38.965);
--secondary: oklch(0.897 0.034 0.907);
--secondary-foreground: oklch(0.382 0.109 8.777);
--accent: oklch(0.938 0.03 91.656);
--accent-foreground: oklch(0.232 0.032 91.394);
--destructive: oklch(0.625 0.208 33.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.909 0.026 39.353);
--chart-1: oklch(0.909 0.026 39.353);
--chart-2: oklch(0.897 0.034 0.907);
--chart-3: oklch(0.938 0.03 91.656);
--chart-4: oklch(0.925 0.024 0.596);
--chart-5: oklch(0.909 0.028 39.347);
}