Flickering is a shadcn/ui theme built around a green primary color (#75b455) with violet accents (#9555b4). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the green primary (#75b455) on a neutral background (#040803).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #040803black |
| Foreground | #060d03black | #fcfdfcwhite |
| Card | #f6fcf3whitesmoke | #060b04black |
| Card foreground | #040802black | #ffffffwhite |
| Popover | #f9fdf7mintcream | #040803black |
| Popover foreground | #060d03black | #fcfdfcwhite |
| Primary | #75b455yellowgreen | #75b455yellowgreen |
| Primary foreground | #1b2b13black | #1b2b13black |
| Secondary | #9555b4darkorchid | #9555b4darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeebefwhitesmoke | #131014black |
| Muted foreground | #46384cdarkslategray | #c0b3c7silver |
| Accent | #9555b4darkorchid | #9555b4darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8c1c0ddarkred | #e52d15orangered |
| Destructive foreground | #fbd5d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #75b455yellowgreen | #75b455yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 4.96:1 | AA |
| Muted text | 9.20:1 | AAA |
| Accent | 4.96:1 | AA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 4.96:1 | AA |
| Muted text | 9.47:1 | AAA |
| Accent | 4.96:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Flickering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 134.869);
--foreground: oklch(0.145 0.028 133.217);
--muted: oklch(0.944 0.006 314.794);
--muted-foreground: oklch(0.364 0.038 314.32);
--popover: oklch(0.989 0.008 134.869);
--popover-foreground: oklch(0.145 0.028 133.217);
--card: oklch(0.983 0.013 134.89);
--card-foreground: oklch(0.127 0.024 133.007);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.706 0.144 136.256);
--primary-foreground: oklch(0.266 0.047 135.963);
--secondary: oklch(0.562 0.155 313.24);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.562 0.155 313.24);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.418 0.15 31.041);
--destructive-foreground: oklch(0.904 0.043 26.825);
--ring: oklch(0.706 0.144 136.256);
--chart-1: oklch(0.706 0.144 136.256);
--chart-2: oklch(0.562 0.155 313.24);
--chart-3: oklch(0.562 0.155 313.24);
--chart-4: oklch(0.589 0.145 313.466);
--chart-5: oklch(0.714 0.154 136.389);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.019 133.403);
--foreground: oklch(0.993 0.001 134.831);
--muted: oklch(0.177 0.01 314.559);
--muted-foreground: oklch(0.783 0.031 314.633);
--popover: oklch(0.124 0.019 133.403);
--popover-foreground: oklch(0.993 0.001 134.831);
--card: oklch(0.142 0.021 133.487);
--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.706 0.144 136.256);
--primary-foreground: oklch(0.266 0.047 135.963);
--secondary: oklch(0.562 0.155 313.24);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.562 0.155 313.24);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.596 0.22 30.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.706 0.144 136.256);
--chart-1: oklch(0.706 0.144 136.256);
--chart-2: oklch(0.562 0.155 313.24);
--chart-3: oklch(0.562 0.155 313.24);
--chart-4: oklch(0.589 0.145 313.466);
--chart-5: oklch(0.714 0.154 136.389);
}