Ragged is a shadcn/ui theme built around a green primary color (#38a636) with green accents (#36a66c). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#38a636) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #000000black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f7fdf7mintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefbwhite | #000000black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #38a636limegreen | #38a636limegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #70a636olivedrab | #70a636olivedrab |
| Secondary foreground | #080c04black | #080c04black |
| Muted | #dce3d3gainsboro | #242c1cdarkslategray |
| Muted foreground | #4d5841darkolivegreen | #b3bea7darkgray |
| Accent | #36a66cmediumseagreen | #36a66cmediumseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b7100bfirebrick | #f34039tomato |
| Destructive foreground | #fef6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #38a636limegreen | #38a636limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 3.16:1 | AA Large |
| Secondary button | 6.72:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 3.09:1 | AA Large |
| Destructive | 6.36:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 3.16:1 | AA Large |
| Secondary button | 6.72:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 3.09:1 | AA Large |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Ragged in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 145.068);
--foreground: oklch(0 0 0);
--muted: oklch(0.906 0.023 128.084);
--muted-foreground: oklch(0.444 0.039 128.87);
--popover: oklch(0.994 0.005 145.068);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.009 145.035);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.638 0.18 142.877);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.663 0.153 131.6);
--secondary-foreground: oklch(0.144 0.021 126.961);
--accent: oklch(0.646 0.133 156.572);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.495 0.196 29.146);
--destructive-foreground: oklch(0.979 0.009 19.741);
--ring: oklch(0.638 0.18 142.877);
--chart-1: oklch(0.638 0.18 142.877);
--chart-2: oklch(0.663 0.153 131.6);
--chart-3: oklch(0.646 0.133 156.572);
--chart-4: oklch(0.697 0.162 131.629);
--chart-5: oklch(0.646 0.187 142.811);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.003 145.078);
--muted: oklch(0.279 0.03 129.128);
--muted-foreground: oklch(0.786 0.034 128.306);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.003 145.078);
--card: oklch(0.092 0 180);
--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.638 0.18 142.877);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.663 0.153 131.6);
--secondary-foreground: oklch(0.144 0.021 126.961);
--accent: oklch(0.646 0.133 156.572);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.639 0.217 27.358);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.18 142.877);
--chart-1: oklch(0.638 0.18 142.877);
--chart-2: oklch(0.663 0.153 131.6);
--chart-3: oklch(0.646 0.133 156.572);
--chart-4: oklch(0.697 0.162 131.629);
--chart-5: oklch(0.646 0.187 142.811);
}