Ragged is a shadcn/ui theme built around a muted light orange primary color (#dacbbe) with muted light blue accents (#becdda). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the muted light orange primary (#dacbbe) on a neutral background (#080503).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #080503black |
| Foreground | #170c03black | #f9f7f6whitesmoke |
| Card | #fdfaf7snow | #080503black |
| Card foreground | #170c03black | #f9f7f6whitesmoke |
| Popover | #fdfaf7snow | #080503black |
| Popover foreground | #170c03black | #f9f7f6whitesmoke |
| Primary | #dacbbelightgrey | #dacbbelightgrey |
| Primary foreground | #413225darkslategray | #413225darkslategray |
| Secondary | #becddalightsteelblue | #becddalightsteelblue |
| Secondary foreground | #253441darkslategray | #253441darkslategray |
| Muted | #e3e9edlavender | #12171cblack |
| Muted foreground | #51575ddimgray | #a2a9aedarkgray |
| Accent | #becddalightsteelblue | #becddalightsteelblue |
| Accent foreground | #253441darkslategray | #253441darkslategray |
| Destructive | #742f06saddlebrown | #f36a1bchocolate |
| Destructive foreground | #fbccb1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dacbbelightgrey | #dacbbelightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.47:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.90:1 | AA |
Paste this into your globals.css to use Ragged in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 62.123);
--foreground: oklch(0.166 0.028 65.219);
--muted: oklch(0.93 0.008 242.304);
--muted-foreground: oklch(0.454 0.012 242.554);
--popover: oklch(0.986 0.005 62.123);
--popover-foreground: oklch(0.166 0.028 65.219);
--card: oklch(0.986 0.005 62.123);
--card-foreground: oklch(0.166 0.028 65.219);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.85 0.024 61.812);
--primary-foreground: oklch(0.329 0.03 60.759);
--secondary: oklch(0.842 0.024 242.571);
--secondary-foreground: oklch(0.319 0.03 243.574);
--accent: oklch(0.842 0.024 242.571);
--accent-foreground: oklch(0.319 0.03 243.574);
--destructive: oklch(0.397 0.109 44.687);
--destructive-foreground: oklch(0.88 0.064 51.654);
--ring: oklch(0.85 0.024 61.812);
--chart-1: oklch(0.85 0.024 61.812);
--chart-2: oklch(0.842 0.024 242.571);
--chart-3: oklch(0.842 0.024 242.571);
--chart-4: oklch(0.866 0.02 242.503);
--chart-5: oklch(0.851 0.027 61.769);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.011 69.226);
--foreground: oklch(0.978 0.003 62.155);
--muted: oklch(0.203 0.011 242.955);
--muted-foreground: oklch(0.731 0.011 242.392);
--popover: oklch(0.117 0.011 69.226);
--popover-foreground: oklch(0.978 0.003 62.155);
--card: oklch(0.117 0.011 69.226);
--card-foreground: oklch(0.978 0.003 62.155);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.85 0.024 61.812);
--primary-foreground: oklch(0.329 0.03 60.759);
--secondary: oklch(0.842 0.024 242.571);
--secondary-foreground: oklch(0.319 0.03 243.574);
--accent: oklch(0.842 0.024 242.571);
--accent-foreground: oklch(0.319 0.03 243.574);
--destructive: oklch(0.684 0.187 44.754);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.85 0.024 61.812);
--chart-1: oklch(0.85 0.024 61.812);
--chart-2: oklch(0.842 0.024 242.571);
--chart-3: oklch(0.842 0.024 242.571);
--chart-4: oklch(0.866 0.02 242.503);
--chart-5: oklch(0.851 0.027 61.769);
}