Flaky is a shadcn/ui theme built around a near-white primary color (#fafafa) with near-white accents (#fafafa). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the near-white primary (#fafafa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #030401black | #ffffffwhite |
| Card | #f9fbf4whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f9fbf4whitesmoke | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fafafasnow | #fafafasnow |
| Primary foreground | #2e2f2ddarkslategray | #2e2f2ddarkslategray |
| Secondary | #fafafasnow | #fafafasnow |
| Secondary foreground | #2d2e2fdarkslategray | #2d2e2fdarkslategray |
| Muted | #e7f0f3lavender | #0c1418black |
| Muted foreground | #556268dimgray | #97a5aadarkgray |
| Accent | #fafafasnow | #fafafasnow |
| Accent foreground | #645e62dimgray | #645e62dimgray |
| Destructive | #c2510fchocolate | #d55810chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafafasnow | #fafafasnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 12.89:1 | AAA |
| Secondary button | 13.02:1 | AAA |
| Muted text | 5.43:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 4.69:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.89:1 | AAA |
| Secondary button | 13.02:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Flaky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 119.409);
--foreground: oklch(0.105 0.019 119.272);
--muted: oklch(0.949 0.01 223.236);
--muted-foreground: oklch(0.488 0.019 223.594);
--popover: oklch(0.984 0.009 119.463);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.009 119.463);
--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.985 0 119.311);
--primary-foreground: oklch(0.305 0.005 119.585);
--secondary: oklch(0.985 0 223.133);
--secondary-foreground: oklch(0.301 0.003 223.237);
--accent: oklch(0.985 0 335.199);
--accent-foreground: oklch(0.489 0.01 335.552);
--destructive: oklch(0.574 0.161 44.013);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0 119.311);
--chart-1: oklch(0.985 0 119.311);
--chart-2: oklch(0.985 0 223.133);
--chart-3: oklch(0.985 0 335.199);
--chart-4: oklch(1.008 0 43.13);
--chart-5: oklch(0.985 0.001 119.319);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.014 224.283);
--muted-foreground: oklch(0.712 0.017 223.398);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.985 0 119.311);
--primary-foreground: oklch(0.305 0.005 119.585);
--secondary: oklch(0.985 0 223.133);
--secondary-foreground: oklch(0.301 0.003 223.237);
--accent: oklch(0.985 0 335.199);
--accent-foreground: oklch(0.489 0.01 335.552);
--destructive: oklch(0.615 0.173 43.84);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0 119.311);
--chart-1: oklch(0.985 0 119.311);
--chart-2: oklch(0.985 0 223.133);
--chart-3: oklch(0.985 0 335.199);
--chart-4: oklch(1.008 0 43.13);
--chart-5: oklch(0.985 0.001 119.319);
}