Licorice is a shadcn/ui theme built around a muted deep blue primary color (#191c24) with muted deep yellow accents (#242219). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted deep blue primary (#191c24) on a blue-tinted background (#05060b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #05060bblack |
| Foreground | #010204black | #f9f9fbghostwhite |
| Card | #f4f6fawhitesmoke | #06080eblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f4f6fawhitesmoke | #06080eblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #191c24black | #191c24black |
| Primary foreground | #aab1c5silver | #aab1c5silver |
| Secondary | #242219black | #242219black |
| Secondary foreground | #c5beaasilver | #c5beaasilver |
| Muted | #e8e6degainsboro | #211f17black |
| Muted foreground | #5a5649darkolivegreen | #b6b1a5darkgray |
| Accent | #242219black | #242219black |
| Accent foreground | #c5beaasilver | #c5beaasilver |
| Destructive | #671a04maroon | #f65428tomato |
| Destructive foreground | #fbb5a2lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #191c24black | #191c24black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 5.85:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.22:1 | AA |
Paste this into your globals.css to use Licorice in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 271.368);
--foreground: oklch(0.08 0.015 261.962);
--muted: oklch(0.924 0.011 91.512);
--muted-foreground: oklch(0.452 0.02 91.725);
--popover: oklch(0.973 0.006 271.347);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.006 271.347);
--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.226 0.018 270.526);
--primary-foreground: oklch(0.761 0.03 271);
--secondary: oklch(0.25 0.016 91.801);
--secondary-foreground: oklch(0.803 0.029 91.68);
--accent: oklch(0.25 0.016 91.801);
--accent-foreground: oklch(0.803 0.029 91.68);
--destructive: oklch(0.343 0.114 35.357);
--destructive-foreground: oklch(0.834 0.086 36.064);
--ring: oklch(0.226 0.018 270.526);
--chart-1: oklch(0.226 0.018 270.526);
--chart-2: oklch(0.25 0.016 91.801);
--chart-3: oklch(0.25 0.016 91.801);
--chart-4: oklch(0.285 0.02 91.808);
--chart-5: oklch(0.224 0.02 270.347);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.013 266.4);
--foreground: oklch(0.983 0.002 271.391);
--muted: oklch(0.238 0.015 91.797);
--muted-foreground: oklch(0.762 0.018 91.597);
--popover: oklch(0.136 0.015 267.425);
--popover-foreground: oklch(0.992 0.001 271.4);
--card: oklch(0.136 0.015 267.425);
--card-foreground: oklch(0.992 0.001 271.4);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.226 0.018 270.526);
--primary-foreground: oklch(0.761 0.03 271);
--secondary: oklch(0.25 0.016 91.801);
--secondary-foreground: oklch(0.803 0.029 91.68);
--accent: oklch(0.25 0.016 91.801);
--accent-foreground: oklch(0.803 0.029 91.68);
--destructive: oklch(0.662 0.205 35.603);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.226 0.018 270.526);
--chart-1: oklch(0.226 0.018 270.526);
--chart-2: oklch(0.25 0.016 91.801);
--chart-3: oklch(0.25 0.016 91.801);
--chart-4: oklch(0.285 0.02 91.808);
--chart-5: oklch(0.224 0.02 270.347);
}