Flippant is a shadcn/ui theme built around a near-black primary color (#000500) with neutral gray accents (#dddfdd). The light mode uses a neutral background (#f7fcf7). Dark mode keeps the near-black primary (#000500) on a green-tinted background (#050b05).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf7mintcream | #050b05black |
| Foreground | #031103black | #ffffffwhite |
| Card | #f4fbf4whitesmoke | #060e06black |
| Card foreground | #020d02black | #ffffffwhite |
| Popover | #f7fcf7mintcream | #050b05black |
| Popover foreground | #031103black | #ffffffwhite |
| Primary | #000500black | #000500black |
| Primary foreground | #08c90clime | #08c90clime |
| Secondary | #dddfddgainsboro | #1f2d20darkslategray |
| Secondary foreground | #424842darkslategray | #b4cbb4silver |
| Muted | #eaf1eawhitesmoke | #0e150fblack |
| Muted foreground | #526f53dimgray | #90ad90darkseagreen |
| Accent | #dddfddgainsboro | #1f2d20darkslategray |
| Accent foreground | #424842darkslategray | #b4cbb4silver |
| Destructive | #df2007red | #f8351borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000500black | #000500black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.70:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 9.17:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 4.84:1 | AA |
| Accent | 7.00:1 | AAA |
| Destructive | 4.84:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 9.17:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.33:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Flippant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 145.984);
--foreground: oklch(0.16 0.04 143.895);
--muted: oklch(0.95 0.011 145.956);
--muted-foreground: oklch(0.512 0.056 145.111);
--popover: oklch(0.987 0.008 145.984);
--popover-foreground: oklch(0.16 0.04 143.895);
--card: oklch(0.981 0.013 145.948);
--card-foreground: oklch(0.142 0.035 143.991);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.1 0.031 143.366);
--primary-foreground: oklch(0.724 0.244 142.588);
--secondary: oklch(0.901 0.005 146.013);
--secondary-foreground: oklch(0.393 0.012 145.812);
--accent: oklch(0.901 0.005 146.013);
--accent-foreground: oklch(0.393 0.012 145.812);
--destructive: oklch(0.577 0.223 30.717);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.1 0.031 143.366);
--chart-1: oklch(0.1 0.031 143.366);
--chart-2: oklch(0.901 0.005 146.013);
--chart-3: oklch(0.901 0.005 146.013);
--chart-4: oklch(0.924 0.003 146.023);
--chart-5: oklch(0.1 0.032 143.269);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.019 144.932);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.017 145.285);
--muted-foreground: oklch(0.716 0.052 145.442);
--popover: oklch(0.138 0.019 144.932);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.022 144.858);
--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.1 0.031 143.366);
--primary-foreground: oklch(0.724 0.244 142.588);
--secondary: oklch(0.281 0.031 145.106);
--secondary-foreground: oklch(0.818 0.04 145.648);
--accent: oklch(0.281 0.031 145.106);
--accent-foreground: oklch(0.818 0.04 145.648);
--destructive: oklch(0.636 0.232 31.024);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.1 0.031 143.366);
--chart-1: oklch(0.1 0.031 143.366);
--chart-2: oklch(0.281 0.031 145.106);
--chart-3: oklch(0.281 0.031 145.106);
--chart-4: oklch(0.314 0.036 145.063);
--chart-5: oklch(0.1 0.032 143.269);
}