Bite-sized is a shadcn/ui theme built around a violet primary color (#a625d4) with muted violet accents (#c4b4ca). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#a625d4) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060307black |
| Foreground | #070209black | #faf9fasnow |
| Card | #fdfbfewhite | #060307black |
| Card foreground | #070209black | #faf9fasnow |
| Popover | #fdfbfewhite | #060307black |
| Popover foreground | #070209black | #faf9fasnow |
| Primary | #a625d4darkorchid | #a625d4darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8d3d9lightgrey | #342a37darkslategray |
| Secondary foreground | #3f3842darkslategray | #cdc2d1thistle |
| Muted | #e9e6ealavender | #181519black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #c4b4casilver | #4c3654darkslategray |
| Accent foreground | #29202ddarkslategray | #e1d7e5gainsboro |
| Destructive | #933506saddlebrown | #f66923chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a625d4darkorchid | #a625d4darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 5.46:1 | AA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 4.86:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 7.63:1 | AAA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 5.46:1 | AA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.95:1 | AA |
Paste this into your globals.css to use Bite-sized in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 317.178);
--foreground: oklch(0.102 0.03 319.664);
--muted: oklch(0.929 0.005 317.177);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.99 0.005 317.178);
--popover-foreground: oklch(0.102 0.03 319.664);
--card: oklch(0.99 0.005 317.178);
--card-foreground: oklch(0.102 0.03 319.664);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.555 0.249 314.411);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.872 0.01 317.162);
--secondary-foreground: oklch(0.353 0.019 317.065);
--accent: oklch(0.791 0.035 317.089);
--accent-foreground: oklch(0.259 0.027 316.943);
--destructive: oklch(0.458 0.136 41.219);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.555 0.249 314.411);
--chart-1: oklch(0.555 0.249 314.411);
--chart-2: oklch(0.872 0.01 317.162);
--chart-3: oklch(0.791 0.035 317.089);
--chart-4: oklch(0.897 0.008 317.168);
--chart-5: oklch(0.558 0.256 314.181);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.015 318.387);
--foreground: oklch(0.984 0.002 317.186);
--muted: oklch(0.201 0.007 317.107);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.109 0.015 318.387);
--popover-foreground: oklch(0.984 0.002 317.186);
--card: oklch(0.109 0.015 318.387);
--card-foreground: oklch(0.984 0.002 317.186);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.555 0.249 314.411);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.3 0.028 316.977);
--secondary-foreground: oklch(0.827 0.024 317.124);
--accent: oklch(0.369 0.058 316.803);
--accent-foreground: oklch(0.891 0.023 317.131);
--destructive: oklch(0.687 0.189 42.876);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.555 0.249 314.411);
--chart-1: oklch(0.555 0.249 314.411);
--chart-2: oklch(0.3 0.028 316.977);
--chart-3: oklch(0.369 0.058 316.803);
--chart-4: oklch(0.329 0.031 316.97);
--chart-5: oklch(0.558 0.256 314.181);
}