Bag is a shadcn/ui theme built around an indigo primary color (#4d3bab) with violet accents (#853bab). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#4d3bab) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #030208black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #030208black | #ffffffwhite |
| Primary | #4d3babrebeccapurple | #4d3babrebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3b60absteelblue | #3b60absteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d1d6e0gainsboro | #1f242edarkslategray |
| Muted foreground | #4e576adimgray | #959fb1darkgray |
| Accent | #853babrebeccapurple | #853babrebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #e45401orangered | #fe6106orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d3babrebeccapurple | #4d3babrebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 4.99:1 | AA |
| Accent | 6.54:1 | AA |
| Destructive | 3.75:1 | AA Large |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.54:1 | AA |
| Destructive | 6.91:1 | AA |
Paste this into your globals.css to use Bag in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 293.987);
--foreground: oklch(0.098 0.02 292.626);
--muted: oklch(0.876 0.014 264.493);
--muted-foreground: oklch(0.457 0.032 264.183);
--popover: oklch(0.989 0.004 293.987);
--popover-foreground: oklch(0.098 0.02 292.626);
--card: oklch(0.989 0.004 293.987);
--card-foreground: oklch(0.098 0.02 292.626);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.44 0.171 284.509);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.5 0.127 262.676);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.179 312.408);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.633 0.193 41.421);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.44 0.171 284.509);
--chart-1: oklch(0.44 0.171 284.509);
--chart-2: oklch(0.5 0.127 262.676);
--chart-3: oklch(0.502 0.179 312.408);
--chart-4: oklch(0.523 0.134 262.662);
--chart-5: oklch(0.436 0.18 283.625);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.259 0.02 264.147);
--muted-foreground: oklch(0.7 0.029 264.37);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.44 0.171 284.509);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.5 0.127 262.676);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.179 312.408);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.688 0.206 41.824);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.44 0.171 284.509);
--chart-1: oklch(0.44 0.171 284.509);
--chart-2: oklch(0.5 0.127 262.676);
--chart-3: oklch(0.502 0.179 312.408);
--chart-4: oklch(0.523 0.134 262.662);
--chart-5: oklch(0.436 0.18 283.625);
}