Ruling Whole Nine Yards is a shadcn/ui theme built around a vivid green primary color (#03bf38) with vivid purple accents (#bf038a). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid green primary (#03bf38) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #010402black |
| Foreground | #021207black | #fcfdfcwhite |
| Card | #f8fcf9mintcream | #010402black |
| Card foreground | #021207black | #fcfdfcwhite |
| Popover | #f8fcf9mintcream | #010402black |
| Popover foreground | #021207black | #fcfdfcwhite |
| Primary | #03bf38limegreen | #03bf38limegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bf038amediumvioletred | #bf038amediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4ebf2whitesmoke | #140b11black |
| Muted foreground | #494648darkslategray | #b9b6b8silver |
| Accent | #bf038amediumvioletred | #bf038amediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a21a02darkred | #fd5335tomato |
| Destructive foreground | #ffddd7mistyrose | #000000black |
| Border | #e9ecealavender | #1d201eblack |
| Input | #e9ecealavender | #1d201eblack |
| Ring | #03bf38limegreen | #03bf38limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.54:1 | AAA |
| Text on card | 18.54:1 | AAA |
| Primary button | 2.46:1 | Fail |
| Secondary button | 5.84:1 | AA |
| Muted text | 8.00:1 | AAA |
| Accent | 5.84:1 | AA |
| Destructive | 6.20:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 2.46:1 | Fail |
| Secondary button | 5.84:1 | AA |
| Muted text | 9.63:1 | AAA |
| Accent | 5.84:1 | AA |
| Destructive | 6.46:1 | AA |
Paste this into your globals.css to use Ruling Whole Nine Yards in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 155.095);
--foreground: oklch(0.164 0.036 152.963);
--muted: oklch(0.949 0.013 335.441);
--muted-foreground: oklch(0.398 0.005 335.422);
--popover: oklch(0.987 0.005 155.095);
--popover-foreground: oklch(0.164 0.036 152.963);
--card: oklch(0.987 0.005 155.095);
--card-foreground: oklch(0.164 0.036 152.963);
--border: oklch(0.94 0.003 155.123);
--input: oklch(0.94 0.003 155.123);
--primary: oklch(0.7 0.217 145.324);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.536 0.226 345.475);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.226 345.475);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.458 0.173 31.847);
--destructive-foreground: oklch(0.923 0.039 29.672);
--ring: oklch(0.7 0.217 145.324);
--chart-1: oklch(0.7 0.217 145.324);
--chart-2: oklch(0.536 0.226 345.475);
--chart-3: oklch(0.536 0.226 345.475);
--chart-4: oklch(0.567 0.24 345.569);
--chart-5: oklch(0.707 0.221 145.155);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.013 154.722);
--foreground: oklch(0.993 0.002 155.147);
--muted: oklch(0.164 0.02 337.305);
--muted-foreground: oklch(0.78 0.004 335.291);
--popover: oklch(0.097 0.013 154.722);
--popover-foreground: oklch(0.993 0.002 155.147);
--card: oklch(0.097 0.013 154.722);
--card-foreground: oklch(0.993 0.002 155.147);
--border: oklch(0.241 0.007 154.62);
--input: oklch(0.241 0.007 154.62);
--primary: oklch(0.7 0.217 145.324);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.536 0.226 345.475);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.226 345.475);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.673 0.211 32.374);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.7 0.217 145.324);
--chart-1: oklch(0.7 0.217 145.324);
--chart-2: oklch(0.536 0.226 345.475);
--chart-3: oklch(0.536 0.226 345.475);
--chart-4: oklch(0.567 0.24 345.569);
--chart-5: oklch(0.707 0.221 145.155);
}