Ruddy is a shadcn/ui theme built around a light red primary color (#fceeee) with neutral gray accents (#d6d6d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#fceeee) on a red-tinted background (#100404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100404black |
| Foreground | #160303black | #f9f5f5whitesmoke |
| Card | #fcfcfcsnow | #140505black |
| Card foreground | #120303black | #fbf9f9snow |
| Popover | #fcfcfcsnow | #140505black |
| Popover foreground | #120303black | #fbf9f9snow |
| Primary | #fceeeeseashell | #fceeeeseashell |
| Primary foreground | #9c1c1cbrown | #9c1c1cbrown |
| Secondary | #d6d6d6lightgrey | #1e1515black |
| Secondary foreground | #3d3d3ddarkslategray | #c1a4a4darkgray |
| Muted | #e2dadagainsboro | #251d1dblack |
| Muted foreground | #555353dimgray | #acaaaadarkgray |
| Accent | #d6d6d6lightgrey | #1e1515black |
| Accent foreground | #3d3d3ddarkslategray | #c1a4a4darkgray |
| Destructive | #722608maroon | #db490fchocolate |
| Destructive foreground | #fac7b3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fceeeeseashell | #fceeeeseashell |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 18.61:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 4.21: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.141 0.038 23.423);
--muted: oklch(0.894 0.009 17.334);
--muted-foreground: oklch(0.445 0.002 17.239);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.128 0.034 23.116);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.128 0.034 23.116);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.959 0.015 17.427);
--primary-foreground: oklch(0.45 0.164 26.923);
--secondary: oklch(0.877 0 180);
--secondary-foreground: oklch(0.361 0 180);
--accent: oklch(0.877 0 180);
--accent-foreground: oklch(0.361 0 180);
--destructive: oklch(0.381 0.114 39.036);
--destructive-foreground: oklch(0.869 0.065 42.634);
--ring: oklch(0.959 0.015 17.427);
--chart-1: oklch(0.959 0.015 17.427);
--chart-2: oklch(0.877 0 180);
--chart-3: oklch(0.877 0 180);
--chart-4: oklch(0.9 0 188.746);
--chart-5: oklch(0.959 0.016 17.439);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.025 21.127);
--foreground: oklch(0.974 0.004 17.23);
--muted: oklch(0.24 0.014 18.135);
--muted-foreground: oklch(0.739 0.002 17.201);
--popover: oklch(0.144 0.029 21.398);
--popover-foreground: oklch(0.983 0.003 17.206);
--card: oklch(0.144 0.029 21.398);
--card-foreground: oklch(0.983 0.003 17.206);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.959 0.015 17.427);
--primary-foreground: oklch(0.45 0.164 26.923);
--secondary: oklch(0.207 0.016 18.529);
--secondary-foreground: oklch(0.744 0.034 17.947);
--accent: oklch(0.207 0.016 18.529);
--accent-foreground: oklch(0.744 0.034 17.947);
--destructive: oklch(0.605 0.192 37.943);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.959 0.015 17.427);
--chart-1: oklch(0.959 0.015 17.427);
--chart-2: oklch(0.207 0.016 18.529);
--chart-3: oklch(0.207 0.016 18.529);
--chart-4: oklch(0.237 0.02 18.674);
--chart-5: oklch(0.959 0.016 17.439);
}