Darling is a shadcn/ui theme built around a vivid purple primary color (#e736b5) with vivid cyan accents (#36b5e7). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#e736b5) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #070306black |
| Foreground | #090207black | #fbf9fasnow |
| Card | #fdf7fbsnow | #0b0509black |
| Card foreground | #040103black | #fdfcfdwhite |
| Popover | #fdf7fbsnow | #0b0509black |
| Popover foreground | #040103black | #fdfcfdwhite |
| Primary | #e736b5deeppink | #e736b5deeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b5e736greenyellow | #b5e736greenyellow |
| Secondary foreground | #374909darkolivegreen | #374909darkolivegreen |
| Muted | #f3f5f0whitesmoke | #0e0f0ablack |
| Muted foreground | #42453bdarkslategray | #c1c4basilver |
| Accent | #36b5e7mediumturquoise | #36b5e7mediumturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #5d1f09maroon | #d14715chocolate |
| Destructive foreground | #f6b8a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e736b5deeppink | #e736b5deeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 6.84:1 | AA |
| Muted text | 8.89:1 | AAA |
| Accent | 8.94:1 | AAA |
| Destructive | 7.36:1 | AAA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 6.84:1 | AA |
| Muted text | 10.87:1 | AAA |
| Accent | 8.94:1 | AAA |
| Destructive | 4.55:1 | AA |
Paste this into your globals.css to use Darling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 335.266);
--foreground: oklch(0.105 0.029 335.947);
--muted: oklch(0.967 0.006 119.415);
--muted-foreground: oklch(0.384 0.017 120.081);
--popover: oklch(0.982 0.008 335.343);
--popover-foreground: oklch(0.083 0.023 335.947);
--card: oklch(0.982 0.008 335.343);
--card-foreground: oklch(0.083 0.023 335.947);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.645 0.242 342.268);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.864 0.2 124.789);
--secondary-foreground: oklch(0.377 0.088 124.978);
--accent: oklch(0.727 0.129 229.53);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.332 0.095 38.756);
--destructive-foreground: oklch(0.835 0.078 40.866);
--ring: oklch(0.645 0.242 342.268);
--chart-1: oklch(0.645 0.242 342.268);
--chart-2: oklch(0.864 0.2 124.789);
--chart-3: oklch(0.727 0.129 229.53);
--chart-4: oklch(0.872 0.192 124.245);
--chart-5: oklch(0.649 0.248 342.516);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.015 335.597);
--foreground: oklch(0.984 0.003 335.244);
--muted: oklch(0.165 0.01 120.306);
--muted-foreground: oklch(0.816 0.014 119.607);
--popover: oklch(0.126 0.017 335.635);
--popover-foreground: oklch(0.992 0.001 335.217);
--card: oklch(0.126 0.017 335.635);
--card-foreground: oklch(0.992 0.001 335.217);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.645 0.242 342.268);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.864 0.2 124.789);
--secondary-foreground: oklch(0.377 0.088 124.978);
--accent: oklch(0.727 0.129 229.53);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.585 0.183 37.658);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.645 0.242 342.268);
--chart-1: oklch(0.645 0.242 342.268);
--chart-2: oklch(0.864 0.2 124.789);
--chart-3: oklch(0.727 0.129 229.53);
--chart-4: oklch(0.872 0.192 124.245);
--chart-5: oklch(0.649 0.248 342.516);
}