Ruddy is a shadcn/ui theme built around a muted light purple primary color (#d0b7d1) with muted light green accents (#b8d1b7). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted light purple primary (#d0b7d1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #000000black |
| Foreground | #0c030dblack | #fdfcfdwhite |
| Card | #fdf7fdsnow | #030303black |
| Card foreground | #080208black | #ffffffwhite |
| Popover | #fdf7fdsnow | #030303black |
| Popover foreground | #080208black | #ffffffwhite |
| Primary | #d0b7d1thistle | #d0b7d1thistle |
| Primary foreground | #342235darkslategray | #342235darkslategray |
| Secondary | #b8d1b7silver | #b8d1b7silver |
| Secondary foreground | #223522darkslategray | #223522darkslategray |
| Muted | #e2e4e2gainsboro | #1b1d1bblack |
| Muted foreground | #445044darkslategray | #b0bbafdarkgray |
| Accent | #b8d1b7silver | #b8d1b7silver |
| Accent foreground | #223522darkslategray | #223522darkslategray |
| Destructive | #ae250afirebrick | #f45c3etomato |
| Destructive foreground | #feefecseashell | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d0b7d1thistle | #d0b7d1thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Ruddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 324.652);
--foreground: oklch(0.123 0.033 326.387);
--muted: oklch(0.917 0.005 144.585);
--muted-foreground: oklch(0.417 0.024 144.236);
--popover: oklch(0.982 0.01 324.686);
--popover-foreground: oklch(0.107 0.029 326.481);
--card: oklch(0.982 0.01 324.686);
--card-foreground: oklch(0.107 0.029 326.481);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.81 0.045 324.965);
--primary-foreground: oklch(0.282 0.043 325.516);
--secondary: oklch(0.836 0.044 144.269);
--secondary-foreground: oklch(0.306 0.041 143.702);
--accent: oklch(0.836 0.044 144.269);
--accent-foreground: oklch(0.306 0.041 143.702);
--destructive: oklch(0.489 0.176 32.53);
--destructive-foreground: oklch(0.962 0.017 31.083);
--ring: oklch(0.81 0.045 324.965);
--chart-1: oklch(0.81 0.045 324.965);
--chart-2: oklch(0.836 0.044 144.269);
--chart-3: oklch(0.836 0.044 144.269);
--chart-4: oklch(0.857 0.038 144.325);
--chart-5: oklch(0.809 0.051 325.011);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 324.63);
--muted: oklch(0.229 0.007 144.428);
--muted-foreground: oklch(0.78 0.021 144.445);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.81 0.045 324.965);
--primary-foreground: oklch(0.282 0.043 325.516);
--secondary: oklch(0.836 0.044 144.269);
--secondary-foreground: oklch(0.306 0.041 143.702);
--accent: oklch(0.836 0.044 144.269);
--accent-foreground: oklch(0.306 0.041 143.702);
--destructive: oklch(0.67 0.192 33.19);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.81 0.045 324.965);
--chart-1: oklch(0.81 0.045 324.965);
--chart-2: oklch(0.836 0.044 144.269);
--chart-3: oklch(0.836 0.044 144.269);
--chart-4: oklch(0.857 0.038 144.325);
--chart-5: oklch(0.809 0.051 325.011);
}