Lard is a shadcn/ui theme built around a pink primary color (#d62980) with red accents (#d62929). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#d62980) on a pink-tinted background (#0e060a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e060ablack |
| Foreground | #040103black | #fdfbfcsnow |
| Card | #ffffffwhite | #0e060ablack |
| Card foreground | #040103black | #fdfbfcsnow |
| Popover | #ffffffwhite | #0e060ablack |
| Popover foreground | #040103black | #fdfbfcsnow |
| Primary | #d62980mediumvioletred | #d62980mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d629d6mediumorchid | #d629d6mediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3dee3gainsboro | #211c21black |
| Muted foreground | #454045darkslategray | #bfbabfsilver |
| Accent | #d62929crimson | #d62929crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9a2c04saddlebrown | #ea4306orangered |
| Destructive foreground | #feded2blanchedalmond | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d62980mediumvioletred | #d62980mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.77:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 4.07:1 | AA Large |
| Muted text | 7.63:1 | AAA |
| Accent | 4.98:1 | AA |
| Destructive | 6.05:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 4.07:1 | AA Large |
| Muted text | 8.75:1 | AAA |
| Accent | 4.98:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Lard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.017 344.948);
--muted: oklch(0.906 0.007 325.637);
--muted-foreground: oklch(0.377 0.011 325.8);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.017 344.948);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.017 344.948);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.587 0.216 356.441);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.628 0.266 328.186);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.208 27);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.46 0.152 36.72);
--destructive-foreground: oklch(0.924 0.039 41.041);
--ring: oklch(0.587 0.216 356.441);
--chart-1: oklch(0.587 0.216 356.441);
--chart-2: oklch(0.628 0.266 328.186);
--chart-3: oklch(0.569 0.208 27);
--chart-4: oklch(0.641 0.258 328.082);
--chart-5: oklch(0.592 0.222 357.006);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 346.556);
--foreground: oklch(0.991 0.002 345.207);
--muted: oklch(0.235 0.01 325.9);
--muted-foreground: oklch(0.795 0.009 325.665);
--popover: oklch(0.138 0.018 346.556);
--popover-foreground: oklch(0.991 0.002 345.207);
--card: oklch(0.138 0.018 346.556);
--card-foreground: oklch(0.991 0.002 345.207);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.587 0.216 356.441);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.628 0.266 328.186);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.208 27);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.622 0.211 35.902);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.587 0.216 356.441);
--chart-1: oklch(0.587 0.216 356.441);
--chart-2: oklch(0.628 0.266 328.186);
--chart-3: oklch(0.569 0.208 27);
--chart-4: oklch(0.641 0.258 328.082);
--chart-5: oklch(0.592 0.222 357.006);
}