Darling is a shadcn/ui theme built around a teal primary color (#1ca086) with neutral gray accents (#dadddc). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the teal primary (#1ca086) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #010403black |
| Foreground | #030c0ablack | #f6f8f8whitesmoke |
| Card | #f3fcfamintcream | #030706black |
| Card foreground | #020807black | #f9fbfamintcream |
| Popover | #f7fdfcmintcream | #010403black |
| Popover foreground | #030c0ablack | #f6f8f8whitesmoke |
| Primary | #1ca086darkcyan | #1ca086darkcyan |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dadddcgainsboro | #121716black |
| Secondary foreground | #404544darkslategray | #a4b7b3darkgray |
| Muted | #f0f4f4whitesmoke | #0b0f0eblack |
| Muted foreground | #4d5150darkslategray | #aeb2b1darkgray |
| Accent | #dadddcgainsboro | #121716black |
| Accent foreground | #404544darkslategray | #a4b7b3darkgray |
| Destructive | #b82c05firebrick | #f43a06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1ca086darkcyan | #1ca086darkcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 3.25:1 | AA Large |
| Secondary button | 7.11:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 3.25:1 | AA Large |
| Secondary button | 8.63:1 | AAA |
| Muted text | 9.01:1 | AAA |
| Accent | 8.63:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Darling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 182.991);
--foreground: oklch(0.143 0.016 182.424);
--muted: oklch(0.965 0.005 183.05);
--muted-foreground: oklch(0.432 0.006 182.783);
--popover: oklch(0.989 0.007 182.991);
--popover-foreground: oklch(0.143 0.016 182.424);
--card: oklch(0.984 0.01 182.893);
--card-foreground: oklch(0.125 0.014 183.031);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.634 0.114 174.721);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.894 0.003 183.087);
--secondary-foreground: oklch(0.385 0.007 182.665);
--accent: oklch(0.894 0.003 183.087);
--accent-foreground: oklch(0.385 0.007 182.665);
--destructive: oklch(0.514 0.182 34.025);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.634 0.114 174.721);
--chart-1: oklch(0.634 0.114 174.721);
--chart-2: oklch(0.894 0.003 183.087);
--chart-3: oklch(0.894 0.003 183.087);
--chart-4: oklch(0.917 0.002 183.11);
--chart-5: oklch(0.642 0.117 174.392);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 183.063);
--foreground: oklch(0.978 0.002 183.128);
--muted: oklch(0.163 0.007 181.934);
--muted-foreground: oklch(0.761 0.006 182.986);
--popover: oklch(0.097 0.009 183.063);
--popover-foreground: oklch(0.978 0.002 183.128);
--card: oklch(0.123 0.011 183.063);
--card-foreground: oklch(0.986 0.001 183.147);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.634 0.114 174.721);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.198 0.008 182.082);
--secondary-foreground: oklch(0.764 0.022 182.369);
--accent: oklch(0.198 0.008 182.082);
--accent-foreground: oklch(0.764 0.022 182.369);
--destructive: oklch(0.631 0.227 33.635);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.634 0.114 174.721);
--chart-1: oklch(0.634 0.114 174.721);
--chart-2: oklch(0.198 0.008 182.082);
--chart-3: oklch(0.198 0.008 182.082);
--chart-4: oklch(0.234 0.01 181.948);
--chart-5: oklch(0.642 0.117 174.392);
}