Bite-sized is a shadcn/ui theme built around a green primary color (#86c959) with pink accents (#c95986). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#86c959) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0b1603black | #fcfdfbsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0b1603black | #fcfdfbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0b1603black | #fcfdfbsnow |
| Primary | #86c959yellowgreen | #86c959yellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #5986c9steelblue | #5986c9steelblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #d3d8degainsboro | #21252cdarkslategray |
| Muted foreground | #444d5adarkslategray | #a5aebbdarkgray |
| Accent | #c95986palevioletred | #c95986palevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #9b410dsaddlebrown | #e15f14chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #86c959yellowgreen | #86c959yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.57:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 10.54:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 5.27:1 | AA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 10.54:1 | AAA |
| Secondary button | 5.69:1 | AA |
| Muted text | 6.86:1 | AA |
| Accent | 5.27:1 | AA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Bite-sized in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.184 0.041 133.034);
--muted: oklch(0.879 0.011 258.341);
--muted-foreground: oklch(0.417 0.025 258.37);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.184 0.041 133.034);
--card: oklch(1 0 180);
--card-foreground: oklch(0.184 0.041 133.034);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.768 0.161 134.493);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.618 0.114 258.276);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.618 0.149 357.298);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.489 0.133 44.818);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.768 0.161 134.493);
--chart-1: oklch(0.768 0.161 134.493);
--chart-2: oklch(0.618 0.114 258.276);
--chart-3: oklch(0.618 0.149 357.298);
--chart-4: oklch(0.645 0.105 258.278);
--chart-5: oklch(0.775 0.168 134.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.003 132.381);
--muted: oklch(0.263 0.015 258.372);
--muted-foreground: oklch(0.747 0.022 258.364);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.003 132.381);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.003 132.381);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.768 0.161 134.493);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.618 0.114 258.276);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.618 0.149 357.298);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.642 0.179 44.112);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.768 0.161 134.493);
--chart-1: oklch(0.768 0.161 134.493);
--chart-2: oklch(0.618 0.114 258.276);
--chart-3: oklch(0.618 0.149 357.298);
--chart-4: oklch(0.645 0.105 258.278);
--chart-5: oklch(0.775 0.168 134.633);
}