Rude is a shadcn/ui theme built around a muted purple primary color (#c299c0) with muted light purple accents (#e8e3e8). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the muted purple primary (#c299c0) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fdsnow | #070307black |
| Foreground | #140514black | #fdfcfdwhite |
| Card | #fdf2fclavenderblush | #0a050ablack |
| Card foreground | #100410black | #ffffffwhite |
| Popover | #fdf6fdsnow | #070307black |
| Popover foreground | #140514black | #fdfcfdwhite |
| Primary | #c299c0darkgray | #c299c0darkgray |
| Primary foreground | #1a0f19black | #1a0f19black |
| Secondary | #e8e3e8gainsboro | #2a282adarkslategray |
| Secondary foreground | #544554darkslategray | #c4c0c4silver |
| Muted | #eddeeclavender | #211220black |
| Muted foreground | #635463dimgray | #ab9caadarkgray |
| Accent | #e8e3e8gainsboro | #2a282adarkslategray |
| Accent foreground | #544554darkslategray | #c4c0c4silver |
| Destructive | #9c0f0ddarkred | #ed2521crimson |
| Destructive foreground | #fcdedemistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c299c0darkgray | #c299c0darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.41:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Rude in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.012 326.645);
--foreground: oklch(0.152 0.041 328.537);
--muted: oklch(0.917 0.025 326.773);
--muted-foreground: oklch(0.467 0.029 327.067);
--popover: oklch(0.982 0.012 326.645);
--popover-foreground: oklch(0.152 0.041 328.537);
--card: oklch(0.972 0.018 326.698);
--card-foreground: oklch(0.138 0.036 328.392);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.733 0.072 327.355);
--primary-foreground: oklch(0.188 0.025 327.631);
--secondary: oklch(0.921 0.009 326.621);
--secondary-foreground: oklch(0.411 0.031 327.178);
--accent: oklch(0.921 0.009 326.621);
--accent-foreground: oklch(0.411 0.031 327.178);
--destructive: oklch(0.441 0.172 28.605);
--destructive-foreground: oklch(0.926 0.033 18.928);
--ring: oklch(0.733 0.072 327.355);
--chart-1: oklch(0.733 0.072 327.355);
--chart-2: oklch(0.921 0.009 326.621);
--chart-3: oklch(0.921 0.009 326.621);
--chart-4: oklch(0.945 0.006 326.596);
--chart-5: oklch(0.732 0.081 327.448);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.014 327.381);
--foreground: oklch(0.992 0.001 326.549);
--muted: oklch(0.21 0.035 327.892);
--muted-foreground: oklch(0.709 0.026 326.857);
--popover: oklch(0.112 0.014 327.381);
--popover-foreground: oklch(0.992 0.001 326.549);
--card: oklch(0.128 0.016 327.381);
--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.733 0.072 327.355);
--primary-foreground: oklch(0.188 0.025 327.631);
--secondary: oklch(0.279 0.006 326.712);
--secondary-foreground: oklch(0.812 0.006 326.609);
--accent: oklch(0.279 0.006 326.712);
--accent-foreground: oklch(0.812 0.006 326.609);
--destructive: oklch(0.607 0.231 28.225);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.072 327.355);
--chart-1: oklch(0.733 0.072 327.355);
--chart-2: oklch(0.279 0.006 326.712);
--chart-3: oklch(0.279 0.006 326.712);
--chart-4: oklch(0.309 0.006 326.719);
--chart-5: oklch(0.732 0.081 327.448);
}