Damson Plum Locust is a shadcn/ui theme built around a purple primary color (#e199d7) with green accents (#99e1a2). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#e199d7) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #070307black |
| Foreground | #0d020cblack | #f8f7f8whitesmoke |
| Card | #fefbfdsnow | #070307black |
| Card foreground | #0d020cblack | #f8f7f8whitesmoke |
| Popover | #fefbfdsnow | #070307black |
| Popover foreground | #0d020cblack | #f8f7f8whitesmoke |
| Primary | #e199d7plum | #e199d7plum |
| Primary foreground | #371032midnightblue | #371032midnightblue |
| Secondary | #99e1a2lightgreen | #99e1a2lightgreen |
| Secondary foreground | #103716darkgreen | #103716darkgreen |
| Muted | #d0e2d2lightgrey | #1d2f20darkslategray |
| Muted foreground | #3d5240darkslategray | #adc2b0silver |
| Accent | #99e1a2lightgreen | #99e1a2lightgreen |
| Accent foreground | #103716darkgreen | #103716darkgreen |
| Destructive | #7f310asaddlebrown | #e75a13chocolate |
| Destructive foreground | #fad4c2peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e199d7plum | #e199d7plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 8.60:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 8.60:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Damson Plum Locust in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 329.738);
--foreground: oklch(0.121 0.037 331.66);
--muted: oklch(0.894 0.029 149.274);
--muted-foreground: oklch(0.415 0.04 148.393);
--popover: oklch(0.991 0.004 329.738);
--popover-foreground: oklch(0.121 0.037 331.66);
--card: oklch(0.991 0.004 329.738);
--card-foreground: oklch(0.121 0.037 331.66);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.773 0.117 331.419);
--primary-foreground: oklch(0.253 0.078 333.167);
--secondary: oklch(0.845 0.112 147.874);
--secondary-foreground: oklch(0.3 0.072 145.927);
--accent: oklch(0.845 0.112 147.874);
--accent-foreground: oklch(0.3 0.072 145.927);
--destructive: oklch(0.42 0.118 42.488);
--destructive-foreground: oklch(0.898 0.049 48.149);
--ring: oklch(0.773 0.117 331.419);
--chart-1: oklch(0.773 0.117 331.419);
--chart-2: oklch(0.845 0.112 147.874);
--chart-3: oklch(0.845 0.112 147.874);
--chart-4: oklch(0.862 0.099 148.136);
--chart-5: oklch(0.772 0.123 331.509);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.019 330.583);
--foreground: oklch(0.976 0.002 329.714);
--muted: oklch(0.286 0.038 147.884);
--muted-foreground: oklch(0.794 0.035 149.125);
--popover: oklch(0.11 0.019 330.583);
--popover-foreground: oklch(0.976 0.002 329.714);
--card: oklch(0.11 0.019 330.583);
--card-foreground: oklch(0.976 0.002 329.714);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.773 0.117 331.419);
--primary-foreground: oklch(0.253 0.078 333.167);
--secondary: oklch(0.845 0.112 147.874);
--secondary-foreground: oklch(0.3 0.072 145.927);
--accent: oklch(0.845 0.112 147.874);
--accent-foreground: oklch(0.3 0.072 145.927);
--destructive: oklch(0.644 0.19 41.4);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.773 0.117 331.419);
--chart-1: oklch(0.773 0.117 331.419);
--chart-2: oklch(0.845 0.112 147.874);
--chart-3: oklch(0.845 0.112 147.874);
--chart-4: oklch(0.862 0.099 148.136);
--chart-5: oklch(0.772 0.123 331.509);
}