Darn is a shadcn/ui theme built around a pink primary color (#c93166) with muted light pink accents (#d2c1c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#c93166) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #120308black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0d0206black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #120308black | #fdfcfcsnow |
| Primary | #c93166mediumvioletred | #c93166mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfd8dagainsboro | #372f32darkslategray |
| Secondary foreground | #483c41darkslategray | #d0c8cblightgrey |
| Muted | #f1efefwhitesmoke | #100e0fblack |
| Muted foreground | #50494cdarkslategray | #b6afb2darkgray |
| Accent | #d2c1c7thistle | #56434adarkslategray |
| Accent foreground | #38292edarkslategray | #e9e2e5gainsboro |
| Destructive | #ce510dchocolate | #f16e27chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c93166mediumvioletred | #c93166mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 5.10:1 | AA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 7.62:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.37:1 | AA Large |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.10:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 7.19:1 | AAA |
| Destructive | 7.00:1 | AAA |
Paste this into your globals.css to use Darn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.035 355.393);
--muted: oklch(0.953 0.002 353.639);
--muted-foreground: oklch(0.414 0.009 354.183);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.035 355.393);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.117 0.031 353.624);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.563 0.191 5.031);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.888 0.008 353.821);
--secondary-foreground: oklch(0.371 0.018 354.92);
--accent: oklch(0.826 0.021 354.291);
--accent-foreground: oklch(0.3 0.025 355.842);
--destructive: oklch(0.593 0.173 42.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.563 0.191 5.031);
--chart-1: oklch(0.563 0.191 5.031);
--chart-2: oklch(0.888 0.008 353.821);
--chart-3: oklch(0.826 0.021 354.291);
--chart-4: oklch(0.912 0.006 353.762);
--chart-5: oklch(0.566 0.197 5.715);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 353.624);
--muted: oklch(0.168 0.003 354.138);
--muted-foreground: oklch(0.761 0.008 353.859);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 353.624);
--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.563 0.191 5.031);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.315 0.011 354.566);
--secondary-foreground: oklch(0.841 0.009 353.868);
--accent: oklch(0.405 0.029 355.577);
--accent-foreground: oklch(0.919 0.008 353.818);
--destructive: oklch(0.687 0.18 44.719);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.563 0.191 5.031);
--chart-1: oklch(0.563 0.191 5.031);
--chart-2: oklch(0.315 0.011 354.566);
--chart-3: oklch(0.405 0.029 355.577);
--chart-4: oklch(0.345 0.013 354.595);
--chart-5: oklch(0.566 0.197 5.715);
}