Rude is a shadcn/ui theme built around a muted indigo primary color (#6b67a2) with muted green accents (#67a26b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#6b67a2) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #000000black | #fcfbfdsnow |
| Card | #fcfcfcsnow | #030307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #6b67a2slategray | #6b67a2slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a26b67indianred | #a26b67indianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8cbc9lightgrey | #361917black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #67a26bmediumseagreen | #67a26bmediumseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #ce3009firebrick | #e13509orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6b67a2slategray | #6b67a2slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.12:1 | AA |
| Secondary button | 4.33:1 | AA Large |
| Muted text | 6.63:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 5.19:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 5.12:1 | AA |
| Secondary button | 4.33:1 | AA Large |
| Muted text | 8.56:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Rude in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.867 0.032 22.667);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.543 0.091 286.009);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.585 0.071 23.963);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.657 0.101 145.859);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.557 0.199 33.426);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.091 286.009);
--chart-1: oklch(0.543 0.091 286.009);
--chart-2: oklch(0.585 0.071 23.963);
--chart-3: oklch(0.657 0.101 145.859);
--chart-4: oklch(0.612 0.066 23.719);
--chart-5: oklch(0.535 0.102 285.44);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.013 286.984);
--foreground: oklch(0.99 0.003 289.427);
--muted: oklch(0.253 0.046 25.106);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.1 0.017 286.984);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.1 0.017 286.984);
--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.543 0.091 286.009);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.585 0.071 23.963);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.657 0.101 145.859);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.595 0.213 33.336);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.091 286.009);
--chart-1: oklch(0.543 0.091 286.009);
--chart-2: oklch(0.585 0.071 23.963);
--chart-3: oklch(0.657 0.101 145.859);
--chart-4: oklch(0.612 0.066 23.719);
--chart-5: oklch(0.535 0.102 285.44);
}