Ruddy is a shadcn/ui theme built around a deep green primary color (#08160c) with deep purple accents (#160812). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#08160c) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #030704black |
| Foreground | #041509black | #f5faf6whitesmoke |
| Card | #fcfdfcwhite | #030704black |
| Card foreground | #041509black | #f5faf6whitesmoke |
| Popover | #fcfdfcwhite | #030704black |
| Popover foreground | #041509black | #f5faf6whitesmoke |
| Primary | #08160cblack | #08160cblack |
| Primary foreground | #3eac5fmediumseagreen | #3eac5fmediumseagreen |
| Secondary | #160812black | #160812black |
| Secondary foreground | #d180b9orchid | #d180b9orchid |
| Muted | #e7d9e3gainsboro | #261821black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #160812black | #160812black |
| Accent foreground | #d180b9orchid | #d180b9orchid |
| Destructive | #7f0c06maroon | #f5382ecrimson |
| Destructive foreground | #fcbebblightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #08160cblack | #08160cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.46:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 5.16:1 | AA |
| Accent | 6.94:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 6.94:1 | AA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Ruddy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 155.826);
--foreground: oklch(0.177 0.034 152.839);
--muted: oklch(0.901 0.02 336.286);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.993 0.002 155.826);
--popover-foreground: oklch(0.177 0.034 152.839);
--card: oklch(0.993 0.002 155.826);
--card-foreground: oklch(0.177 0.034 152.839);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.185 0.029 152.541);
--primary-foreground: oklch(0.664 0.151 150.041);
--secondary: oklch(0.162 0.032 339.138);
--secondary-foreground: oklch(0.702 0.124 338.933);
--accent: oklch(0.162 0.032 339.138);
--accent-foreground: oklch(0.702 0.124 338.933);
--destructive: oklch(0.38 0.147 29.464);
--destructive-foreground: oklch(0.857 0.072 22.113);
--ring: oklch(0.185 0.029 152.541);
--chart-1: oklch(0.185 0.029 152.541);
--chart-2: oklch(0.162 0.032 339.138);
--chart-3: oklch(0.162 0.032 339.138);
--chart-4: oklch(0.195 0.044 339.819);
--chart-5: oklch(0.187 0.031 152.398);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.016 155.479);
--foreground: oklch(0.98 0.006 155.748);
--muted: oklch(0.229 0.028 338.057);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.122 0.016 155.479);
--popover-foreground: oklch(0.98 0.006 155.748);
--card: oklch(0.122 0.016 155.479);
--card-foreground: oklch(0.98 0.006 155.748);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.185 0.029 152.541);
--primary-foreground: oklch(0.664 0.151 150.041);
--secondary: oklch(0.162 0.032 339.138);
--secondary-foreground: oklch(0.702 0.124 338.933);
--accent: oklch(0.162 0.032 339.138);
--accent-foreground: oklch(0.702 0.124 338.933);
--destructive: oklch(0.634 0.226 28.568);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.185 0.029 152.541);
--chart-1: oklch(0.185 0.029 152.541);
--chart-2: oklch(0.162 0.032 339.138);
--chart-3: oklch(0.162 0.032 339.138);
--chart-4: oklch(0.195 0.044 339.819);
--chart-5: oklch(0.187 0.031 152.398);
}