Prose is a shadcn/ui theme built around a muted deep purple primary color (#372f36) with muted deep green accents (#2f3730). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted deep purple primary (#372f36) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #040103black |
| Foreground | #11030fblack | #fcf8fbsnow |
| Card | #fcf8fbsnow | #080207black |
| Card foreground | #0d030bblack | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #040103black |
| Popover foreground | #11030fblack | #fcf8fbsnow |
| Primary | #372f36darkslategray | #372f36darkslategray |
| Primary foreground | #d0c8cflightgrey | #d0c8cflightgrey |
| Secondary | #2f3730darkslategray | #2f3730darkslategray |
| Secondary foreground | #c8d0c9lightgrey | #c8d0c9lightgrey |
| Muted | #ecf4edwhitesmoke | #0b130dblack |
| Muted foreground | #506854dimgray | #97af9bdarkseagreen |
| Accent | #2f3730darkslategray | #2f3730darkslategray |
| Accent foreground | #c8d0c9lightgrey | #c8d0c9lightgrey |
| Destructive | #c71c05firebrick | #f9270borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #372f36darkslategray | #372f36darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 5.41:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 5.84:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Prose in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 330.86);
--foreground: oklch(0.136 0.038 333.279);
--muted: oklch(0.959 0.013 150.64);
--muted-foreground: oklch(0.491 0.042 149.563);
--popover: oklch(0.991 0.003 330.86);
--popover-foreground: oklch(0.136 0.038 333.279);
--card: oklch(0.983 0.006 330.9);
--card-foreground: oklch(0.122 0.033 332.531);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.316 0.017 331.51);
--primary-foreground: oklch(0.841 0.013 331.028);
--secondary: oklch(0.327 0.016 150.121);
--secondary-foreground: oklch(0.85 0.013 150.613);
--accent: oklch(0.327 0.016 150.121);
--accent-foreground: oklch(0.85 0.013 150.613);
--destructive: oklch(0.53 0.205 30.773);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.316 0.017 331.51);
--chart-1: oklch(0.316 0.017 331.51);
--chart-2: oklch(0.327 0.016 150.121);
--chart-3: oklch(0.327 0.016 150.121);
--chart-4: oklch(0.358 0.018 150.101);
--chart-5: oklch(0.315 0.023 331.763);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.018 331.816);
--foreground: oklch(0.983 0.005 330.891);
--muted: oklch(0.178 0.019 149.251);
--muted-foreground: oklch(0.73 0.039 150.07);
--popover: oklch(0.086 0.018 331.816);
--popover-foreground: oklch(0.983 0.005 330.891);
--card: oklch(0.108 0.023 331.816);
--card-foreground: oklch(0.992 0.003 330.856);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.316 0.017 331.51);
--primary-foreground: oklch(0.841 0.013 331.028);
--secondary: oklch(0.327 0.016 150.121);
--secondary-foreground: oklch(0.85 0.013 150.613);
--accent: oklch(0.327 0.016 150.121);
--accent-foreground: oklch(0.85 0.013 150.613);
--destructive: oklch(0.628 0.241 30.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.316 0.017 331.51);
--chart-1: oklch(0.316 0.017 331.51);
--chart-2: oklch(0.327 0.016 150.121);
--chart-3: oklch(0.327 0.016 150.121);
--chart-4: oklch(0.358 0.018 150.101);
--chart-5: oklch(0.315 0.023 331.763);
}