Ragged is a shadcn/ui theme built around a green primary color (#bed548) with indigo accents (#6048d5). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#bed548) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #0e0f05black | #ffffffwhite |
| Card | #f9faf5whitesmoke | #030303black |
| Card foreground | #0a0b04black | #ffffffwhite |
| Popover | #fbfcf8snow | #000000black |
| Popover foreground | #0e0f05black | #ffffffwhite |
| Primary | #bed548yellowgreen | #bed548yellowgreen |
| Primary foreground | #3a430fdarkolivegreen | #3a430fdarkolivegreen |
| Secondary | #6048d5slateblue | #6048d5slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eceaf6lavender | #0b0915black |
| Muted foreground | #484653darkslategray | #aeacb9darkgray |
| Accent | #6048d5slateblue | #6048d5slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c9230dfirebrick | #e6280forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bed548yellowgreen | #bed548yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.19:1 | AA |
| Muted text | 7.74:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 5.61:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.19:1 | AA |
| Muted text | 8.81:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Ragged in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 114.155);
--foreground: oklch(0.164 0.022 115.919);
--muted: oklch(0.942 0.016 293.754);
--muted-foreground: oklch(0.402 0.02 293.102);
--popover: oklch(0.989 0.005 114.155);
--popover-foreground: oklch(0.164 0.022 115.919);
--card: oklch(0.983 0.007 114.201);
--card-foreground: oklch(0.147 0.019 115.053);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.831 0.165 118.29);
--primary-foreground: oklch(0.362 0.073 118.418);
--secondary: oklch(0.513 0.206 284.047);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.513 0.206 284.047);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.539 0.203 30.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.831 0.165 118.29);
--chart-1: oklch(0.831 0.165 118.29);
--chart-2: oklch(0.513 0.206 284.047);
--chart-3: oklch(0.513 0.206 284.047);
--chart-4: oklch(0.543 0.193 285.65);
--chart-5: oklch(0.84 0.17 118.441);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.151 0.025 290.804);
--muted-foreground: oklch(0.751 0.017 293.63);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--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.831 0.165 118.29);
--primary-foreground: oklch(0.362 0.073 118.418);
--secondary: oklch(0.513 0.206 284.047);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.513 0.206 284.047);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.595 0.225 30.884);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.831 0.165 118.29);
--chart-1: oklch(0.831 0.165 118.29);
--chart-2: oklch(0.513 0.206 284.047);
--chart-3: oklch(0.513 0.206 284.047);
--chart-4: oklch(0.543 0.193 285.65);
--chart-5: oklch(0.84 0.17 118.441);
}