Baggie is a shadcn/ui theme built around a green primary color (#46c34c) with purple accents (#c346bd). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the green primary (#46c34c) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #010401black |
| Foreground | #010401black | #f5f9f5whitesmoke |
| Card | #f3fcf3honeydew | #020802black |
| Card foreground | #000000black | #f8fbf9mintcream |
| Popover | #f3fcf3honeydew | #020802black |
| Popover foreground | #000000black | #f8fbf9mintcream |
| Primary | #46c34climegreen | #46c34climegreen |
| Primary foreground | #0f2e11black | #0f2e11black |
| Secondary | #c346bdmediumorchid | #c346bdmediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9cde8gainsboro | #321630darkslategray |
| Muted foreground | #454045darkslategray | #bfbabfsilver |
| Accent | #c346bdmediumorchid | #c346bdmediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d90b08red | #dd0c08red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #46c34climegreen | #46c34climegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 4.25:1 | AA Large |
| Muted text | 6.95:1 | AA |
| Accent | 4.25:1 | AA Large |
| Destructive | 5.26:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 4.25:1 | AA Large |
| Muted text | 8.52:1 | AAA |
| Accent | 4.25:1 | AA Large |
| Destructive | 5.06:1 | AA |
Paste this into your globals.css to use Baggie in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 146.949);
--foreground: oklch(0.098 0.023 145.175);
--muted: oklch(0.881 0.047 327.517);
--muted-foreground: oklch(0.377 0.011 327.305);
--popover: oklch(0.981 0.014 146.903);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.014 146.903);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.723 0.194 144.002);
--primary-foreground: oklch(0.27 0.064 144.427);
--secondary: oklch(0.609 0.208 329.833);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.609 0.208 329.833);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.558 0.225 29.111);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.723 0.194 144.002);
--chart-1: oklch(0.723 0.194 144.002);
--chart-2: oklch(0.609 0.208 329.833);
--chart-3: oklch(0.609 0.208 329.833);
--chart-4: oklch(0.629 0.198 329.616);
--chart-5: oklch(0.731 0.202 143.876);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.019 145.501);
--foreground: oklch(0.979 0.007 146.972);
--muted: oklch(0.252 0.061 329.073);
--muted-foreground: oklch(0.795 0.009 327.144);
--popover: oklch(0.122 0.024 145.501);
--popover-foreground: oklch(0.986 0.005 146.994);
--card: oklch(0.122 0.024 145.501);
--card-foreground: oklch(0.986 0.005 146.994);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.723 0.194 144.002);
--primary-foreground: oklch(0.27 0.064 144.427);
--secondary: oklch(0.609 0.208 329.833);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.609 0.208 329.833);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.567 0.229 29.115);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.723 0.194 144.002);
--chart-1: oklch(0.723 0.194 144.002);
--chart-2: oklch(0.609 0.208 329.833);
--chart-3: oklch(0.609 0.208 329.833);
--chart-4: oklch(0.629 0.198 329.616);
--chart-5: oklch(0.731 0.202 143.876);
}