Hunger is a shadcn/ui theme built around a light blue primary color (#c8d6f3) with muted light blue accents (#caced8). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the light blue primary (#c8d6f3) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030407black |
| Foreground | #03060dblack | #f9fafbghostwhite |
| Card | #fbfcfewhite | #030407black |
| Card foreground | #03060dblack | #f9fafbghostwhite |
| Popover | #fbfcfewhite | #030407black |
| Popover foreground | #03060dblack | #f9fafbghostwhite |
| Primary | #c8d6f3powderblue | #c8d6f3powderblue |
| Primary foreground | #183472midnightblue | #183472midnightblue |
| Secondary | #caced8lightgrey | #121416black |
| Secondary foreground | #2f3541darkslategray | #a5aab6darkgray |
| Muted | #f0f2f4whitesmoke | #0b0c0fblack |
| Muted foreground | #5c5d61dimgray | #9ea0a3darkgray |
| Accent | #caced8lightgrey | #121416black |
| Accent foreground | #2f3541darkslategray | #a5aab6darkgray |
| Destructive | #b74706saddlebrown | #f86c1bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8d6f3powderblue | #c8d6f3powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 5.37:1 | AA |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Hunger in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 265.993);
--foreground: oklch(0.119 0.02 256.668);
--muted: oklch(0.959 0.004 265.988);
--muted-foreground: oklch(0.479 0.007 265.941);
--popover: oklch(0.991 0.003 265.993);
--popover-foreground: oklch(0.119 0.02 256.668);
--card: oklch(0.991 0.003 265.993);
--card-foreground: oklch(0.119 0.02 256.668);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.875 0.043 265.71);
--primary-foreground: oklch(0.344 0.111 263.115);
--secondary: oklch(0.852 0.015 265.921);
--secondary-foreground: oklch(0.328 0.023 265.543);
--accent: oklch(0.852 0.015 265.921);
--accent-foreground: oklch(0.328 0.023 265.543);
--destructive: oklch(0.542 0.159 42.76);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.043 265.71);
--chart-1: oklch(0.875 0.043 265.71);
--chart-2: oklch(0.852 0.015 265.921);
--chart-3: oklch(0.852 0.015 265.921);
--chart-4: oklch(0.877 0.012 265.94);
--chart-5: oklch(0.874 0.045 265.692);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.012 259.756);
--foreground: oklch(0.984 0.001 266.001);
--muted: oklch(0.154 0.006 265.772);
--muted-foreground: oklch(0.704 0.006 265.968);
--popover: oklch(0.108 0.012 259.756);
--popover-foreground: oklch(0.984 0.001 266.001);
--card: oklch(0.108 0.012 259.756);
--card-foreground: oklch(0.984 0.001 266.001);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.875 0.043 265.71);
--primary-foreground: oklch(0.344 0.111 263.115);
--secondary: oklch(0.189 0.006 265.835);
--secondary-foreground: oklch(0.739 0.017 265.888);
--accent: oklch(0.189 0.006 265.835);
--accent-foreground: oklch(0.739 0.017 265.888);
--destructive: oklch(0.694 0.19 44.679);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.875 0.043 265.71);
--chart-1: oklch(0.875 0.043 265.71);
--chart-2: oklch(0.189 0.006 265.835);
--chart-3: oklch(0.189 0.006 265.835);
--chart-4: oklch(0.222 0.008 265.808);
--chart-5: oklch(0.874 0.045 265.692);
}