Darn is a shadcn/ui theme built around a green primary color (#92b34d) with violet accents (#6d4db3). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the green primary (#92b34d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #000000black |
| Foreground | #0c1004black | #f8f9f5whitesmoke |
| Card | #fdfdfcwhite | #000000black |
| Card foreground | #0c1004black | #f8f9f5whitesmoke |
| Popover | #fdfdfcwhite | #000000black |
| Popover foreground | #0c1004black | #f8f9f5whitesmoke |
| Primary | #92b34dyellowgreen | #92b34dyellowgreen |
| Primary foreground | #1d240fblack | #1d240fblack |
| Secondary | #6d4db3slateblue | #6d4db3slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2f0f4whitesmoke | #0c0b0fblack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #6d4db3slateblue | #6d4db3slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a54812saddlebrown | #cf5a17chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92b34dyellowgreen | #92b34dyellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 6.39:1 | AA |
| Accent | 6.28:1 | AA |
| Destructive | 5.92:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.28:1 | AA |
| Muted text | 8.25:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Darn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 120.803);
--foreground: oklch(0.166 0.027 122.3);
--muted: oklch(0.958 0.005 300.678);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.994 0.002 120.803);
--popover-foreground: oklch(0.166 0.027 122.3);
--card: oklch(0.994 0.002 120.803);
--card-foreground: oklch(0.166 0.027 122.3);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.719 0.135 124.421);
--primary-foreground: oklch(0.246 0.037 123.47);
--secondary: oklch(0.505 0.156 294.805);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.505 0.156 294.805);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.516 0.137 45.346);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.719 0.135 124.421);
--chart-1: oklch(0.719 0.135 124.421);
--chart-2: oklch(0.505 0.156 294.805);
--chart-3: oklch(0.505 0.156 294.805);
--chart-4: oklch(0.535 0.146 295.656);
--chart-5: oklch(0.729 0.143 124.668);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.006 120.862);
--muted: oklch(0.152 0.008 299.865);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.006 120.862);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.006 120.862);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.719 0.135 124.421);
--primary-foreground: oklch(0.246 0.037 123.47);
--secondary: oklch(0.505 0.156 294.805);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.505 0.156 294.805);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.607 0.164 44.964);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.719 0.135 124.421);
--chart-1: oklch(0.719 0.135 124.421);
--chart-2: oklch(0.505 0.156 294.805);
--chart-3: oklch(0.505 0.156 294.805);
--chart-4: oklch(0.535 0.146 295.656);
--chart-5: oklch(0.729 0.143 124.668);
}