Bite-sized is a shadcn/ui theme built around a deep green primary color (#435b20) with deep violet accents (#37205b). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep green primary (#435b20) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #000000black |
| Foreground | #000000black | #f8f9f6whitesmoke |
| Card | #fafcf8snow | #030303black |
| Card foreground | #000000black | #fafbf9snow |
| Popover | #fafcf8snow | #030303black |
| Popover foreground | #000000black | #fafbf9snow |
| Primary | #435b20darkolivegreen | #435b20darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #37205bmidnightblue | #37205bmidnightblue |
| Secondary foreground | #d2c3eathistle | #d2c3eathistle |
| Muted | #f2eff5whitesmoke | #0c0a10black |
| Muted foreground | #5e526fdimgray | #9b90addarkgray |
| Accent | #37205bmidnightblue | #37205bmidnightblue |
| Accent foreground | #d2c3eathistle | #d2c3eathistle |
| Destructive | #c74c05chocolate | #ea5906orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #435b20darkolivegreen | #435b20darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 4.70:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 6.56:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Bite-sized in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 124.38);
--foreground: oklch(0 0 0);
--muted: oklch(0.956 0.009 304.212);
--muted-foreground: oklch(0.463 0.048 302.831);
--popover: oklch(0.988 0.005 124.416);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.005 124.416);
--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.437 0.089 128.047);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.307 0.101 298.698);
--secondary-foreground: oklch(0.841 0.056 303.384);
--accent: oklch(0.307 0.101 298.698);
--accent-foreground: oklch(0.841 0.056 303.384);
--destructive: oklch(0.575 0.17 42.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.437 0.089 128.047);
--chart-1: oklch(0.437 0.089 128.047);
--chart-2: oklch(0.307 0.101 298.698);
--chart-3: oklch(0.307 0.101 298.698);
--chart-4: oklch(0.331 0.112 298.534);
--chart-5: oklch(0.442 0.093 128.269);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.004 124.398);
--muted: oklch(0.149 0.014 302.996);
--muted-foreground: oklch(0.672 0.044 303.401);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 124.38);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 124.38);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.437 0.089 128.047);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.307 0.101 298.698);
--secondary-foreground: oklch(0.841 0.056 303.384);
--accent: oklch(0.307 0.101 298.698);
--accent-foreground: oklch(0.841 0.056 303.384);
--destructive: oklch(0.647 0.193 42.014);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.437 0.089 128.047);
--chart-1: oklch(0.437 0.089 128.047);
--chart-2: oklch(0.307 0.101 298.698);
--chart-3: oklch(0.307 0.101 298.698);
--chart-4: oklch(0.331 0.112 298.534);
--chart-5: oklch(0.442 0.093 128.269);
}