Flickering is a shadcn/ui theme built around a vivid deep red primary color (#900422) with vivid deep orange accents (#902c04). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#900422) on a red-tinted background (#0f0608).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0608black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #ffffffwhite | #0f0608black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0f0608black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #900422darkred | #900422darkred |
| Primary foreground | #fec8d4pink | #fec8d4pink |
| Secondary | #900468purple | #900468purple |
| Secondary foreground | #fec8eemistyrose | #fec8eemistyrose |
| Muted | #eedde9mistyrose | #22111dblack |
| Muted foreground | #494147darkslategray | #beb6bcsilver |
| Accent | #902c04saddlebrown | #902c04saddlebrown |
| Accent foreground | #fed7c8bisque | #fed7c8bisque |
| Destructive | #8e0b0bdarkred | #ee2020crimson |
| Destructive foreground | #fbd0d0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #900422darkred | #900422darkred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 7.57:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 9.10:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 4.31: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 0 0);
--muted: oklch(0.914 0.026 335.696);
--muted-foreground: oklch(0.385 0.015 335.876);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.415 0.165 20.321);
--primary-foreground: oklch(0.884 0.062 3.949);
--secondary: oklch(0.437 0.184 344.912);
--secondary-foreground: oklch(0.892 0.078 336.697);
--accent: oklch(0.441 0.142 37.808);
--accent-foreground: oklch(0.909 0.048 42.748);
--destructive: oklch(0.412 0.162 28.316);
--destructive-foreground: oklch(0.894 0.05 18.12);
--ring: oklch(0.415 0.165 20.321);
--chart-1: oklch(0.415 0.165 20.321);
--chart-2: oklch(0.437 0.184 344.912);
--chart-3: oklch(0.441 0.142 37.808);
--chart-4: oklch(0.47 0.198 345.058);
--chart-5: oklch(0.419 0.167 20.854);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.019 3.259);
--foreground: oklch(0.992 0.001 2.1);
--muted: oklch(0.207 0.037 338.2);
--muted-foreground: oklch(0.785 0.012 335.476);
--popover: oklch(0.136 0.019 3.259);
--popover-foreground: oklch(0.992 0.001 2.1);
--card: oklch(0.136 0.019 3.259);
--card-foreground: oklch(0.992 0.001 2.1);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.415 0.165 20.321);
--primary-foreground: oklch(0.884 0.062 3.949);
--secondary: oklch(0.437 0.184 344.912);
--secondary-foreground: oklch(0.892 0.078 336.697);
--accent: oklch(0.441 0.142 37.808);
--accent-foreground: oklch(0.909 0.048 42.748);
--destructive: oklch(0.607 0.234 27.972);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.165 20.321);
--chart-1: oklch(0.415 0.165 20.321);
--chart-2: oklch(0.437 0.184 344.912);
--chart-3: oklch(0.441 0.142 37.808);
--chart-4: oklch(0.47 0.198 345.058);
--chart-5: oklch(0.419 0.167 20.854);
}