Cart is a shadcn/ui theme built around a muted light green primary color (#e6e9dd) with muted light green accents (#e0e9dd). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted light green primary (#e6e9dd) on a green-tinted background (#090b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #090b05black |
| Foreground | #0a0d03black | #f8f9f6whitesmoke |
| Card | #fbfcf8snow | #0c0e06black |
| Card foreground | #070802black | #fafbf9snow |
| Popover | #fdfdfcwhite | #090b05black |
| Popover foreground | #0a0d03black | #f8f9f6whitesmoke |
| Primary | #e6e9ddgainsboro | #e6e9ddgainsboro |
| Primary foreground | #191c12black | #191c12black |
| Secondary | #e9e6ddgainsboro | #e9e6ddgainsboro |
| Secondary foreground | #5a533adarkolivegreen | #5a533adarkolivegreen |
| Muted | #e7e1cagainsboro | #352e18darkslategray |
| Muted foreground | #4c4a43darkslategray | #bcbab3silver |
| Accent | #e0e9ddgainsboro | #e0e9ddgainsboro |
| Accent foreground | #415a3adarkolivegreen | #415a3adarkolivegreen |
| Destructive | #a82400firebrick | #ff5324tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6e9ddgainsboro | #e6e9ddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 14.03:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 6.74:1 | AA |
| Accent | 6.13:1 | AA |
| Destructive | 7.16:1 | AAA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 14.03:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 6.95:1 | AA |
| Accent | 6.13:1 | AA |
| Destructive | 6.52:1 | AA |
Paste this into your globals.css to use Cart in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 118.607);
--foreground: oklch(0.15 0.025 119.186);
--muted: oklch(0.908 0.031 92.952);
--muted-foreground: oklch(0.408 0.011 92.901);
--popover: oklch(0.994 0.002 118.607);
--popover-foreground: oklch(0.15 0.025 119.186);
--card: oklch(0.988 0.005 118.649);
--card-foreground: oklch(0.131 0.021 118.661);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.928 0.017 118.883);
--primary-foreground: oklch(0.22 0.019 120.128);
--secondary: oklch(0.925 0.013 92.791);
--secondary-foreground: oklch(0.441 0.039 93.17);
--accent: oklch(0.924 0.019 138.352);
--accent-foreground: oklch(0.439 0.06 138.54);
--destructive: oklch(0.478 0.172 33.955);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.928 0.017 118.883);
--chart-1: oklch(0.928 0.017 118.883);
--chart-2: oklch(0.925 0.013 92.791);
--chart-3: oklch(0.924 0.019 138.352);
--chart-4: oklch(0.946 0.009 92.754);
--chart-5: oklch(0.93 0.019 118.925);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 118.697);
--foreground: oklch(0.98 0.004 118.64);
--muted: oklch(0.302 0.037 93.019);
--muted-foreground: oklch(0.788 0.009 92.772);
--popover: oklch(0.144 0.016 118.697);
--popover-foreground: oklch(0.98 0.004 118.64);
--card: oklch(0.16 0.018 119.867);
--card-foreground: oklch(0.987 0.003 118.615);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.928 0.017 118.883);
--primary-foreground: oklch(0.22 0.019 120.128);
--secondary: oklch(0.925 0.013 92.791);
--secondary-foreground: oklch(0.441 0.039 93.17);
--accent: oklch(0.924 0.019 138.352);
--accent-foreground: oklch(0.439 0.06 138.54);
--destructive: oklch(0.675 0.216 35.368);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.928 0.017 118.883);
--chart-1: oklch(0.928 0.017 118.883);
--chart-2: oklch(0.925 0.013 92.791);
--chart-3: oklch(0.924 0.019 138.352);
--chart-4: oklch(0.946 0.009 92.754);
--chart-5: oklch(0.93 0.019 118.925);
}