Baggy is a shadcn/ui theme built around a red primary color (#b81e3d) with blue accents (#1e3db8). The light mode uses a neutral background (#fcf7f8). Dark mode keeps the red primary (#b81e3d) on a red-tinted background (#0e0608).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7f8snow | #0e0608black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcf7f8snow | #0e0608black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf7f8snow | #0e0608black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b81e3dfirebrick | #b81e3dfirebrick |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3db81elimegreen | #3db81elimegreen |
| Secondary foreground | #030901black | #030901black |
| Muted | #e8efe6beige | #121910black |
| Muted foreground | #40463fdarkslategray | #bbc0b9silver |
| Accent | #1e3db8darkslateblue | #1e3db8darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #601906maroon | #f35a30tomato |
| Destructive foreground | #f9b29flightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b81e3dfirebrick | #b81e3dfirebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 8.70:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 9.69:1 | AAA |
| Accent | 8.70:1 | AAA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use Baggy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 3.332);
--foreground: oklch(0 0 0);
--muted: oklch(0.944 0.014 139.44);
--muted-foreground: oklch(0.386 0.013 139.436);
--popover: oklch(0.982 0.005 3.332);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 3.332);
--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.51 0.186 17.222);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.688 0.212 140.538);
--secondary-foreground: oklch(0.126 0.028 137.24);
--accent: oklch(0.427 0.196 266.351);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.33 0.107 35.524);
--destructive-foreground: oklch(0.826 0.088 36.074);
--ring: oklch(0.51 0.186 17.222);
--chart-1: oklch(0.51 0.186 17.222);
--chart-2: oklch(0.688 0.212 140.538);
--chart-3: oklch(0.427 0.196 266.351);
--chart-4: oklch(0.724 0.224 140.556);
--chart-5: oklch(0.513 0.191 17.929);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.016 4.215);
--foreground: oklch(1 0 180);
--muted: oklch(0.202 0.021 139.438);
--muted-foreground: oklch(0.802 0.011 139.441);
--popover: oklch(0.137 0.016 4.215);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.016 4.215);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.51 0.186 17.222);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.688 0.212 140.538);
--secondary-foreground: oklch(0.126 0.028 137.24);
--accent: oklch(0.427 0.196 266.351);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.664 0.196 35.904);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.51 0.186 17.222);
--chart-1: oklch(0.51 0.186 17.222);
--chart-2: oklch(0.688 0.212 140.538);
--chart-3: oklch(0.427 0.196 266.351);
--chart-4: oklch(0.724 0.224 140.556);
--chart-5: oklch(0.513 0.191 17.929);
}