Ladle is a shadcn/ui theme built around a green primary color (#26b81e) with purple accents (#b11eb8). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#26b81e) on a green-tinted background (#050a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a05black |
| Foreground | #020901black | #fcfdfcwhite |
| Card | #ffffffwhite | #050a05black |
| Card foreground | #020901black | #fcfdfcwhite |
| Popover | #ffffffwhite | #050a05black |
| Popover foreground | #020901black | #fcfdfcwhite |
| Primary | #26b81elimegreen | #26b81elimegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b11eb8darkorchid | #b11eb8darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5cbe6gainsboro | #321934darkslategray |
| Muted foreground | #666066dimgray | #9e999fdarkgray |
| Accent | #b11eb8darkorchid | #b11eb8darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d45911chocolate | #de5d12chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #26b81elimegreen | #26b81elimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 2.63:1 | Fail |
| Secondary button | 5.61:1 | AA |
| Muted text | 4.09:1 | AA Large |
| Accent | 5.61:1 | AA |
| Destructive | 4.01:1 | AA Large |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 2.63:1 | Fail |
| Secondary button | 5.61:1 | AA |
| Muted text | 5.67:1 | AA |
| Accent | 5.61:1 | AA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Ladle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.03 141.933);
--muted: oklch(0.872 0.046 324.427);
--muted-foreground: oklch(0.498 0.012 324.265);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.03 141.933);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.03 141.933);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.683 0.219 142.288);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.547 0.237 325.841);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.547 0.237 325.841);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.613 0.172 44.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0.219 142.288);
--chart-1: oklch(0.683 0.219 142.288);
--chart-2: oklch(0.547 0.237 325.841);
--chart-3: oklch(0.547 0.237 325.841);
--chart-4: oklch(0.575 0.25 325.839);
--chart-5: oklch(0.691 0.224 142.289);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 143.022);
--foreground: oklch(0.993 0.002 144.119);
--muted: oklch(0.26 0.059 325.297);
--muted-foreground: oklch(0.688 0.011 324.221);
--popover: oklch(0.138 0.018 143.022);
--popover-foreground: oklch(0.993 0.002 144.119);
--card: oklch(0.138 0.018 143.022);
--card-foreground: oklch(0.993 0.002 144.119);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.683 0.219 142.288);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.547 0.237 325.841);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.547 0.237 325.841);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.633 0.178 43.956);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0.219 142.288);
--chart-1: oklch(0.683 0.219 142.288);
--chart-2: oklch(0.547 0.237 325.841);
--chart-3: oklch(0.547 0.237 325.841);
--chart-4: oklch(0.575 0.25 325.839);
--chart-5: oklch(0.691 0.224 142.289);
}