Flickering is a shadcn/ui theme built around a vivid deep red primary color (#831511) with vivid deep indigo accents (#151183). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#831511) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0504black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #fcfcfcsnow | #0f0606black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #0f0606black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #831511maroon | #831511maroon |
| Primary foreground | #f9cfcdpink | #f9cfcdpink |
| Secondary | #118315forestgreen | #118315forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4ddd4lightgrey | #222b22darkslategray |
| Muted foreground | #475248darkslategray | #adb8aedarkgray |
| Accent | #151183midnightblue | #151183midnightblue |
| Accent foreground | #cfcdf9lavender | #cfcdf9lavender |
| Destructive | #ad2001firebrick | #fe3406orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #831511maroon | #831511maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 4.91:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 9.55:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 4.91:1 | AA |
| Muted text | 7.14:1 | AAA |
| Accent | 9.55:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Flickering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.012 23.041);
--muted: oklch(0.889 0.016 146.388);
--muted-foreground: oklch(0.425 0.022 146.085);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.395 0.145 28.286);
--primary-foreground: oklch(0.889 0.047 20.407);
--secondary: oklch(0.531 0.171 142.953);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.299 0.176 270.025);
--accent-foreground: oklch(0.865 0.06 286.61);
--destructive: oklch(0.483 0.179 32.739);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.395 0.145 28.286);
--chart-1: oklch(0.395 0.145 28.286);
--chart-2: oklch(0.531 0.171 142.953);
--chart-3: oklch(0.299 0.176 270.025);
--chart-4: oklch(0.57 0.184 142.93);
--chart-5: oklch(0.398 0.149 28.513);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.014 22.299);
--foreground: oklch(0.983 0.003 19.644);
--muted: oklch(0.276 0.021 145.866);
--muted-foreground: oklch(0.771 0.019 146.327);
--popover: oklch(0.136 0.017 22.255);
--popover-foreground: oklch(0.992 0.001 19.625);
--card: oklch(0.136 0.017 22.255);
--card-foreground: oklch(0.992 0.001 19.625);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.395 0.145 28.286);
--primary-foreground: oklch(0.889 0.047 20.407);
--secondary: oklch(0.531 0.171 142.953);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.299 0.176 270.025);
--accent-foreground: oklch(0.865 0.06 286.61);
--destructive: oklch(0.645 0.239 32.394);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.395 0.145 28.286);
--chart-1: oklch(0.395 0.145 28.286);
--chart-2: oklch(0.531 0.171 142.953);
--chart-3: oklch(0.299 0.176 270.025);
--chart-4: oklch(0.57 0.184 142.93);
--chart-5: oklch(0.398 0.149 28.513);
}