Flickering is a shadcn/ui theme built around a vivid deep violet primary color (#310c5f) with vivid deep green accents (#0c5f31). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid deep violet primary (#310c5f) on a violet-tinted background (#07050a).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #07050ablack |
| Foreground | #000000black | #faf8fcghostwhite |
| Card | #f7f4fbghostwhite | #0a070dblack |
| Card foreground | #000000black | #fcfbfdsnow |
| Popover | #f7f4fbghostwhite | #0a070dblack |
| Popover foreground | #000000black | #fcfbfdsnow |
| Primary | #310c5fmidnightblue | #310c5fmidnightblue |
| Primary foreground | #cba9f4plum | #cba9f4plum |
| Secondary | #5f310csaddlebrown | #5f310csaddlebrown |
| Secondary foreground | #f4cba9wheat | #f4cba9wheat |
| Muted | #e2e0dfgainsboro | #201e1dblack |
| Muted foreground | #5e534adarkolivegreen | #b5aaa1darkgray |
| Accent | #0c5f31darkslategray | #0c5f31darkslategray |
| Accent foreground | #a9f4cbpowderblue | #a9f4cbpowderblue |
| Destructive | #631603maroon | #e43307orangered |
| Destructive foreground | #fcaf9clightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #310c5fmidnightblue | #310c5fmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 6.12:1 | AA |
| Destructive | 7.13:1 | AAA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 7.26:1 | AAA |
| Accent | 6.12:1 | AA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Flickering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 306.35);
--foreground: oklch(0 0 0);
--muted: oklch(0.908 0.003 62.148);
--muted-foreground: oklch(0.451 0.021 61.56);
--popover: oklch(0.972 0.009 306.31);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.972 0.009 306.31);
--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.277 0.132 296.923);
--primary-foreground: oklch(0.791 0.109 304.632);
--secondary: oklch(0.367 0.081 54.927);
--secondary-foreground: oklch(0.869 0.065 61.097);
--accent: oklch(0.427 0.105 152.754);
--accent-foreground: oklch(0.907 0.093 159.748);
--destructive: oklch(0.332 0.113 34.717);
--destructive-foreground: oklch(0.823 0.095 34.602);
--ring: oklch(0.277 0.132 296.923);
--chart-1: oklch(0.277 0.132 296.923);
--chart-2: oklch(0.367 0.081 54.927);
--chart-3: oklch(0.427 0.105 152.754);
--chart-4: oklch(0.401 0.09 54.57);
--chart-5: oklch(0.276 0.135 296.359);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 307.077);
--foreground: oklch(0.981 0.006 306.354);
--muted: oklch(0.238 0.004 61.947);
--muted-foreground: oklch(0.744 0.018 61.865);
--popover: oklch(0.137 0.015 306.147);
--popover-foreground: oklch(0.991 0.003 306.392);
--card: oklch(0.137 0.015 306.147);
--card-foreground: oklch(0.991 0.003 306.392);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.277 0.132 296.923);
--primary-foreground: oklch(0.791 0.109 304.632);
--secondary: oklch(0.367 0.081 54.927);
--secondary-foreground: oklch(0.869 0.065 61.097);
--accent: oklch(0.427 0.105 152.754);
--accent-foreground: oklch(0.907 0.093 159.748);
--destructive: oklch(0.598 0.216 33.163);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.277 0.132 296.923);
--chart-1: oklch(0.277 0.132 296.923);
--chart-2: oklch(0.367 0.081 54.927);
--chart-3: oklch(0.427 0.105 152.754);
--chart-4: oklch(0.401 0.09 54.57);
--chart-5: oklch(0.276 0.135 296.359);
}