Unruly is a shadcn/ui theme built around a vivid light yellow primary color (#f1f6a2) with neutral gray accents (#e0e0e0). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid light yellow primary (#f1f6a2) on a yellow-tinted background (#0d0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0d0d07black |
| Foreground | #0c0d02black | #fcfcf8snow |
| Card | #fefefbwhite | #0d0d07black |
| Card foreground | #0c0d02black | #fcfcf8snow |
| Popover | #fefefbwhite | #0d0d07black |
| Popover foreground | #0c0d02black | #fcfcf8snow |
| Primary | #f1f6a2palegoldenrod | #f1f6a2palegoldenrod |
| Primary foreground | #585d09darkolivegreen | #585d09darkolivegreen |
| Secondary | #e0e0e0gainsboro | #262621darkslategray |
| Secondary foreground | #474747darkslategray | #c1c1b8silver |
| Muted | #f5eaealinen | #14150ablack |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #e0e0e0gainsboro | #262621darkslategray |
| Accent foreground | #474747darkslategray | #c1c1b8silver |
| Destructive | #7c0c09maroon | #ea1710red |
| Destructive foreground | #fabebclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1f6a2palegoldenrod | #f1f6a2palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 9.27:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Unruly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 109.555);
--foreground: oklch(0.155 0.027 111.812);
--muted: oklch(0.946 0.012 17.374);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.996 0.004 109.555);
--popover-foreground: oklch(0.155 0.027 111.812);
--card: oklch(0.996 0.004 109.555);
--card-foreground: oklch(0.155 0.027 111.812);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.106 111.497);
--primary-foreground: oklch(0.459 0.099 113.844);
--secondary: oklch(0.908 0 180);
--secondary-foreground: oklch(0.399 0 180);
--accent: oklch(0.908 0 180);
--accent-foreground: oklch(0.399 0 180);
--destructive: oklch(0.375 0.144 28.864);
--destructive-foreground: oklch(0.856 0.07 20.883);
--ring: oklch(0.951 0.106 111.497);
--chart-1: oklch(0.951 0.106 111.497);
--chart-2: oklch(0.908 0 180);
--chart-3: oklch(0.908 0 180);
--chart-4: oklch(0.931 0 180);
--chart-5: oklch(0.955 0.11 111.553);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.013 110.825);
--foreground: oklch(0.989 0.005 109.572);
--muted: oklch(0.191 0.021 111.488);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.157 0.013 110.825);
--popover-foreground: oklch(0.989 0.005 109.572);
--card: oklch(0.157 0.013 110.825);
--card-foreground: oklch(0.989 0.005 109.572);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.951 0.106 111.497);
--primary-foreground: oklch(0.459 0.099 113.844);
--secondary: oklch(0.267 0.009 110.101);
--secondary-foreground: oklch(0.809 0.013 109.772);
--accent: oklch(0.267 0.009 110.101);
--accent-foreground: oklch(0.809 0.013 109.772);
--destructive: oklch(0.594 0.235 29.163);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.106 111.497);
--chart-1: oklch(0.951 0.106 111.497);
--chart-2: oklch(0.267 0.009 110.101);
--chart-3: oklch(0.267 0.009 110.101);
--chart-4: oklch(0.3 0.011 110.132);
--chart-5: oklch(0.955 0.11 111.553);
}