Elderberry is a shadcn/ui theme built around a light green primary color (#eaf3d3) with light violet accents (#dcd3f3). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the light green primary (#eaf3d3) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #060802black |
| Foreground | #0a0d03black | #f9faf4whitesmoke |
| Card | #fbfcf8snow | #060802black |
| Card foreground | #0a0d03black | #f9faf4whitesmoke |
| Popover | #fbfcf8snow | #060802black |
| Popover foreground | #0a0d03black | #f9faf4whitesmoke |
| Primary | #eaf3d3beige | #eaf3d3beige |
| Primary foreground | #1d240ablack | #1d240ablack |
| Secondary | #dcd3f3lavender | #dcd3f3lavender |
| Secondary foreground | #371f75midnightblue | #371f75midnightblue |
| Muted | #e4dff1lavender | #130e20black |
| Muted foreground | #5f5c66dimgray | #9c99a3darkgray |
| Accent | #dcd3f3lavender | #dcd3f3lavender |
| Accent foreground | #371f75midnightblue | #371f75midnightblue |
| Destructive | #761f05maroon | #f54914orangered |
| Destructive foreground | #fcc2b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eaf3d3beige | #eaf3d3beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 13.96:1 | AAA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 5.02:1 | AA |
| Accent | 9.05:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 13.96:1 | AAA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 9.05:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Elderberry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 119.404);
--foreground: oklch(0.15 0.025 119.808);
--muted: oklch(0.913 0.025 298.84);
--muted-foreground: oklch(0.481 0.016 298.743);
--popover: oklch(0.989 0.006 119.404);
--popover-foreground: oklch(0.15 0.025 119.808);
--card: oklch(0.989 0.006 119.404);
--card-foreground: oklch(0.15 0.025 119.808);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.949 0.044 120.103);
--primary-foreground: oklch(0.247 0.046 122.99);
--secondary: oklch(0.883 0.045 298.419);
--secondary-foreground: oklch(0.329 0.138 289.603);
--accent: oklch(0.883 0.045 298.419);
--accent-foreground: oklch(0.329 0.138 289.603);
--destructive: oklch(0.378 0.125 35.836);
--destructive-foreground: oklch(0.862 0.071 37.598);
--ring: oklch(0.949 0.044 120.103);
--chart-1: oklch(0.949 0.044 120.103);
--chart-2: oklch(0.883 0.045 298.419);
--chart-3: oklch(0.883 0.045 298.419);
--chart-4: oklch(0.915 0.033 298.691);
--chart-5: oklch(0.951 0.046 120.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.017 119.28);
--foreground: oklch(0.983 0.008 119.441);
--muted: oklch(0.18 0.036 295.568);
--muted-foreground: oklch(0.689 0.014 298.947);
--popover: oklch(0.128 0.017 119.28);
--popover-foreground: oklch(0.983 0.008 119.441);
--card: oklch(0.128 0.017 119.28);
--card-foreground: oklch(0.983 0.008 119.441);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.949 0.044 120.103);
--primary-foreground: oklch(0.247 0.046 122.99);
--secondary: oklch(0.883 0.045 298.419);
--secondary-foreground: oklch(0.329 0.138 289.603);
--accent: oklch(0.883 0.045 298.419);
--accent-foreground: oklch(0.329 0.138 289.603);
--destructive: oklch(0.648 0.216 35.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.949 0.044 120.103);
--chart-1: oklch(0.949 0.044 120.103);
--chart-2: oklch(0.883 0.045 298.419);
--chart-3: oklch(0.883 0.045 298.419);
--chart-4: oklch(0.915 0.033 298.691);
--chart-5: oklch(0.951 0.046 120.142);
}