Rutabaga is a shadcn/ui theme built around a vivid violet primary color (#8860f6) with vivid green accents (#cef660). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#8860f6) on a violet-tinted background (#06040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06040bblack |
| Foreground | #06030cblack | #ffffffwhite |
| Card | #fcfbfewhite | #06040bblack |
| Card foreground | #06030cblack | #ffffffwhite |
| Popover | #fcfbfewhite | #06040bblack |
| Popover foreground | #06030cblack | #ffffffwhite |
| Primary | #8860f6mediumslateblue | #8860f6mediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cef660khaki | #cef660khaki |
| Secondary foreground | #192202black | #192202black |
| Muted | #f4f6eewhitesmoke | #0f1109black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #cef660khaki | #cef660khaki |
| Accent foreground | #192202black | #192202black |
| Destructive | #831a0cmaroon | #e52d15orangered |
| Destructive foreground | #facdc7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8860f6mediumslateblue | #8860f6mediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 4.16:1 | AA Large |
| Secondary button | 13.32:1 | AAA |
| Muted text | 9.22:1 | AAA |
| Accent | 13.32:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.39:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 4.16:1 | AA Large |
| Secondary button | 13.32:1 | AAA |
| Muted text | 10.15:1 | AAA |
| Accent | 13.32:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Rutabaga in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 298.494);
--foreground: oklch(0.113 0.025 298.224);
--muted: oklch(0.97 0.01 118.752);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.989 0.004 298.494);
--popover-foreground: oklch(0.113 0.025 298.224);
--card: oklch(0.989 0.004 298.494);
--card-foreground: oklch(0.113 0.025 298.224);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.608 0.214 290.968);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.916 0.18 122.656);
--secondary-foreground: oklch(0.234 0.054 122.902);
--accent: oklch(0.916 0.18 122.656);
--accent-foreground: oklch(0.234 0.054 122.902);
--destructive: oklch(0.398 0.142 31.041);
--destructive-foreground: oklch(0.885 0.052 26.939);
--ring: oklch(0.608 0.214 290.968);
--chart-1: oklch(0.608 0.214 290.968);
--chart-2: oklch(0.916 0.18 122.656);
--chart-3: oklch(0.916 0.18 122.656);
--chart-4: oklch(0.922 0.167 122.202);
--chart-5: oklch(0.605 0.22 290.598);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.021 298.345);
--foreground: oklch(1 0 180);
--muted: oklch(0.171 0.016 120.149);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.116 0.021 298.345);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.116 0.021 298.345);
--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.608 0.214 290.968);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.916 0.18 122.656);
--secondary-foreground: oklch(0.234 0.054 122.902);
--accent: oklch(0.916 0.18 122.656);
--accent-foreground: oklch(0.234 0.054 122.902);
--destructive: oklch(0.596 0.22 30.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.608 0.214 290.968);
--chart-1: oklch(0.608 0.214 290.968);
--chart-2: oklch(0.916 0.18 122.656);
--chart-3: oklch(0.916 0.18 122.656);
--chart-4: oklch(0.922 0.167 122.202);
--chart-5: oklch(0.605 0.22 290.598);
}