Flickering is a shadcn/ui theme built around a green primary color (#89c247) with near-white accents (#ebebeb). The light mode uses a neutral background (#fafcf8). Dark mode keeps the green primary (#89c247) on a green-tinted background (#080a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #080a05black |
| Foreground | #030501black | #f7f8f6whitesmoke |
| Card | #fafcf8snow | #080a05black |
| Card foreground | #030501black | #f7f8f6whitesmoke |
| Popover | #fafcf8snow | #080a05black |
| Popover foreground | #030501black | #f7f8f6whitesmoke |
| Primary | #89c247yellowgreen | #89c247yellowgreen |
| Primary foreground | #202e0fblack | #202e0fblack |
| Secondary | #ebebeblinen | #242a1dblack |
| Secondary foreground | #525252darkslategray | #bdc9b1silver |
| Muted | #e9e2e2gainsboro | #1a1d16black |
| Muted foreground | #585050dimgray | #abafa7darkgray |
| Accent | #ebebeblinen | #242a1dblack |
| Accent foreground | #525252darkslategray | #bdc9b1silver |
| Destructive | #df3101orangered | #fe5020orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #89c247yellowgreen | #89c247yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.12:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 4.57:1 | AA |
| Text on background | 18.64:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 8.51:1 | AAA |
| Destructive | 3.29:1 | AA Large |
Paste this into your globals.css to use Flickering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 127.183);
--foreground: oklch(0.104 0.022 125.751);
--muted: oklch(0.918 0.008 17.308);
--muted-foreground: oklch(0.439 0.011 17.585);
--popover: oklch(0.988 0.006 127.183);
--popover-foreground: oklch(0.104 0.022 125.751);
--card: oklch(0.988 0.006 127.183);
--card-foreground: oklch(0.104 0.022 125.751);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.749 0.164 130.725);
--primary-foreground: oklch(0.279 0.054 130.078);
--secondary: oklch(0.939 0 180);
--secondary-foreground: oklch(0.437 0 180);
--accent: oklch(0.939 0 180);
--accent-foreground: oklch(0.437 0 180);
--destructive: oklch(0.589 0.214 33.453);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.749 0.164 130.725);
--chart-1: oklch(0.749 0.164 130.725);
--chart-2: oklch(0.939 0 180);
--chart-3: oklch(0.939 0 180);
--chart-4: oklch(0.962 0 180);
--chart-5: oklch(0.758 0.172 130.945);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.014 126.454);
--foreground: oklch(0.979 0.003 127.15);
--muted: oklch(0.226 0.015 127.976);
--muted-foreground: oklch(0.749 0.013 127.32);
--popover: oklch(0.141 0.014 126.454);
--popover-foreground: oklch(0.979 0.003 127.15);
--card: oklch(0.141 0.014 126.454);
--card-foreground: oklch(0.979 0.003 127.15);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.749 0.164 130.725);
--primary-foreground: oklch(0.279 0.054 130.078);
--secondary: oklch(0.275 0.024 128.256);
--secondary-foreground: oklch(0.82 0.035 127.644);
--accent: oklch(0.275 0.024 128.256);
--accent-foreground: oklch(0.82 0.035 127.644);
--destructive: oklch(0.67 0.218 35.192);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.749 0.164 130.725);
--chart-1: oklch(0.749 0.164 130.725);
--chart-2: oklch(0.275 0.024 128.256);
--chart-3: oklch(0.275 0.024 128.256);
--chart-4: oklch(0.31 0.029 128.314);
--chart-5: oklch(0.758 0.172 130.945);
}