Ruddy is a shadcn/ui theme built around a light orange primary color (#f6e0cb) with light yellow accents (#f6f5cb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#f6e0cb) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #150c04black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #080502black |
| Card foreground | #110a04black | #ffffffwhite |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #150c04black | #fdfcfcsnow |
| Primary | #f6e0cbbisque | #f6e0cbbisque |
| Primary foreground | #7a4615saddlebrown | #7a4615saddlebrown |
| Secondary | #f6cbcbpink | #f6cbcbpink |
| Secondary foreground | #7a1516maroon | #7a1516maroon |
| Muted | #e8dedegainsboro | #211717black |
| Muted foreground | #4e3c3cdarkslategray | #c3b1b1silver |
| Accent | #f6f5cblightgoldenrodyellow | #f6f5cblightgoldenrodyellow |
| Accent foreground | #232206black | #232206black |
| Destructive | #d54810chocolate | #ee5317orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6e0cbbisque | #f6e0cbbisque |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 14.49:1 | AAA |
| Destructive | 4.39:1 | AA Large |
| Text on background | 20.17:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 14.49:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Ruddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.166 0.023 67.511);
--muted: oklch(0.909 0.01 16.177);
--muted-foreground: oklch(0.375 0.025 17.223);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.166 0.023 67.511);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.152 0.02 70.9);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.918 0.037 65.448);
--primary-foreground: oklch(0.447 0.094 58.836);
--secondary: oklch(0.879 0.049 17.005);
--secondary-foreground: oklch(0.378 0.136 26.003);
--accent: oklch(0.961 0.055 106.597);
--accent-foreground: oklch(0.247 0.045 108.365);
--destructive: oklch(0.594 0.187 38.114);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.918 0.037 65.448);
--chart-1: oklch(0.918 0.037 65.448);
--chart-2: oklch(0.879 0.049 17.005);
--chart-3: oklch(0.961 0.055 106.597);
--chart-4: oklch(0.909 0.036 16.699);
--chart-5: oklch(0.919 0.039 65.424);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.094 0.01 73.746);
--foreground: oklch(0.993 0 65.961);
--muted: oklch(0.218 0.015 17.294);
--muted-foreground: oklch(0.776 0.021 16.449);
--popover: oklch(0.094 0.01 73.746);
--popover-foreground: oklch(0.993 0 65.961);
--card: oklch(0.118 0.012 73.746);
--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.918 0.037 65.448);
--primary-foreground: oklch(0.447 0.094 58.836);
--secondary: oklch(0.879 0.049 17.005);
--secondary-foreground: oklch(0.378 0.136 26.003);
--accent: oklch(0.961 0.055 106.597);
--accent-foreground: oklch(0.247 0.045 108.365);
--destructive: oklch(0.647 0.2 38.433);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.918 0.037 65.448);
--chart-1: oklch(0.918 0.037 65.448);
--chart-2: oklch(0.879 0.049 17.005);
--chart-3: oklch(0.961 0.055 106.597);
--chart-4: oklch(0.909 0.036 16.699);
--chart-5: oklch(0.919 0.039 65.424);
}