Waffle is a shadcn/ui theme built around a near-white primary color (#fafcff) with muted light blue accents (#c8ccd0). The light mode uses a neutral background (#f7fafd). Dark mode keeps the near-white primary (#fafcff) on a neutral background (#020508).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #020508black |
| Foreground | #050c14black | #ffffffwhite |
| Card | #f7fafdghostwhite | #020508black |
| Card foreground | #050c14black | #ffffffwhite |
| Popover | #f7fafdghostwhite | #020508black |
| Popover foreground | #050c14black | #ffffffwhite |
| Primary | #fafcffghostwhite | #fafcffghostwhite |
| Primary foreground | #095dberoyalblue | #095dberoyalblue |
| Secondary | #c8ccd0lightgrey | #14171ablack |
| Secondary foreground | #2f3337darkslategray | #a6afbadarkgray |
| Muted | #e9ebeclavender | #131416black |
| Muted foreground | #57606bdimgray | #949da8darkgray |
| Accent | #c8ccd0lightgrey | #14171ablack |
| Accent foreground | #2f3337darkslategray | #a6afbadarkgray |
| Destructive | #7f2a06saddlebrown | #f56629tomato |
| Destructive foreground | #fccebbpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafcffghostwhite | #fafcffghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.71:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.32:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 6.80:1 | AA |
Paste this into your globals.css to use Waffle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 251.494);
--foreground: oklch(0.152 0.021 249.734);
--muted: oklch(0.938 0.003 251.472);
--muted-foreground: oklch(0.486 0.02 251.757);
--popover: oklch(0.983 0.005 251.494);
--popover-foreground: oklch(0.152 0.021 249.734);
--card: oklch(0.983 0.005 251.494);
--card-foreground: oklch(0.152 0.021 249.734);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.991 0.004 251.484);
--primary-foreground: oklch(0.493 0.168 256.808);
--secondary: oklch(0.843 0.007 251.521);
--secondary-foreground: oklch(0.318 0.009 251.676);
--accent: oklch(0.843 0.007 251.521);
--accent-foreground: oklch(0.318 0.009 251.676);
--destructive: oklch(0.408 0.124 39.505);
--destructive-foreground: oklch(0.887 0.058 44.438);
--ring: oklch(0.991 0.004 251.484);
--chart-1: oklch(0.991 0.004 251.484);
--chart-2: oklch(0.843 0.007 251.521);
--chart-3: oklch(0.843 0.007 251.521);
--chart-4: oklch(0.867 0.006 251.509);
--chart-5: oklch(0.991 0.004 251.485);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.012 243.514);
--foreground: oklch(1 0 180);
--muted: oklch(0.192 0.004 251.603);
--muted-foreground: oklch(0.694 0.018 251.654);
--popover: oklch(0.111 0.012 243.514);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.111 0.012 243.514);
--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.991 0.004 251.484);
--primary-foreground: oklch(0.493 0.168 256.808);
--secondary: oklch(0.202 0.008 251.735);
--secondary-foreground: oklch(0.751 0.019 251.646);
--accent: oklch(0.202 0.008 251.735);
--accent-foreground: oklch(0.751 0.019 251.646);
--destructive: oklch(0.682 0.189 40.937);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.991 0.004 251.484);
--chart-1: oklch(0.991 0.004 251.484);
--chart-2: oklch(0.202 0.008 251.735);
--chart-3: oklch(0.202 0.008 251.735);
--chart-4: oklch(0.234 0.01 251.763);
--chart-5: oklch(0.991 0.004 251.485);
}