Swanling is a shadcn/ui theme built around a deep pink primary color (#6d1838) with deep red accents (#6d2218). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the deep pink primary (#6d1838) on a pink-tinted background (#100409).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #100409black |
| Foreground | #17030ablack | #fbf9fasnow |
| Card | #fdf7f9snow | #100409black |
| Card foreground | #17030ablack | #fbf9fasnow |
| Popover | #fdf7f9snow | #100409black |
| Popover foreground | #17030ablack | #fbf9fasnow |
| Primary | #6d1838brown | #6d1838brown |
| Primary foreground | #f2c4d6pink | #f2c4d6pink |
| Secondary | #6d1863purple | #6d1863purple |
| Secondary foreground | #f2c4edthistle | #f2c4edthistle |
| Muted | #e8e3e7gainsboro | #1c171bblack |
| Muted foreground | #685e67dimgray | #a1979fdarkgray |
| Accent | #6d2218maroon | #6d2218maroon |
| Accent foreground | #f2cac4pink | #f2cac4pink |
| Destructive | #aa3b03saddlebrown | #fb7837coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d1838brown | #6d1838brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 4.90:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 7.85:1 | AAA |
Paste this into your globals.css to use Swanling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 351.79);
--foreground: oklch(0.144 0.043 355.735);
--muted: oklch(0.921 0.007 329.225);
--muted-foreground: oklch(0.496 0.019 329.561);
--popover: oklch(0.981 0.007 351.79);
--popover-foreground: oklch(0.144 0.043 355.735);
--card: oklch(0.981 0.007 351.79);
--card-foreground: oklch(0.144 0.043 355.735);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.363 0.121 2.317);
--primary-foreground: oklch(0.867 0.056 353.374);
--secondary: oklch(0.382 0.146 333.318);
--secondary-foreground: oklch(0.874 0.074 330.077);
--accent: oklch(0.366 0.109 30.485);
--accent-foreground: oklch(0.872 0.047 26.888);
--destructive: oklch(0.505 0.156 40.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.121 2.317);
--chart-1: oklch(0.363 0.121 2.317);
--chart-2: oklch(0.382 0.146 333.318);
--chart-3: oklch(0.366 0.109 30.485);
--chart-4: oklch(0.412 0.159 333.373);
--chart-5: oklch(0.364 0.125 2.915);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.026 353.12);
--foreground: oklch(0.984 0.002 351.658);
--muted: oklch(0.213 0.011 329.698);
--muted-foreground: oklch(0.686 0.017 329.42);
--popover: oklch(0.134 0.026 353.12);
--popover-foreground: oklch(0.984 0.002 351.658);
--card: oklch(0.134 0.026 353.12);
--card-foreground: oklch(0.984 0.002 351.658);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.363 0.121 2.317);
--primary-foreground: oklch(0.867 0.056 353.374);
--secondary: oklch(0.382 0.146 333.318);
--secondary-foreground: oklch(0.874 0.074 330.077);
--accent: oklch(0.366 0.109 30.485);
--accent-foreground: oklch(0.872 0.047 26.888);
--destructive: oklch(0.717 0.177 44.446);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.363 0.121 2.317);
--chart-1: oklch(0.363 0.121 2.317);
--chart-2: oklch(0.382 0.146 333.318);
--chart-3: oklch(0.366 0.109 30.485);
--chart-4: oklch(0.412 0.159 333.373);
--chart-5: oklch(0.364 0.125 2.915);
}