Flickering is a shadcn/ui theme built around a vivid deep teal primary color (#032521) with neutral gray accents (#d5d8d7). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid deep teal primary (#032521) on a teal-tinted background (#040b0a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #040b0ablack |
| Foreground | #020808black | #f6f8f8whitesmoke |
| Card | #f8fcfbmintcream | #040b0ablack |
| Card foreground | #020808black | #f6f8f8whitesmoke |
| Popover | #f8fcfbmintcream | #040b0ablack |
| Popover foreground | #020808black | #f6f8f8whitesmoke |
| Primary | #032521black | #032521black |
| Primary foreground | #15e0c8darkturquoise | #15e0c8darkturquoise |
| Secondary | #d5d8d7lightgrey | #2a3c3adarkslategray |
| Secondary foreground | #3b403fdarkslategray | #c3d5d3lightgrey |
| Muted | #eff6f5whitesmoke | #09100fblack |
| Muted foreground | #525b5adimgray | #a4adacdarkgray |
| Accent | #d5d8d7lightgrey | #2a3c3adarkslategray |
| Accent foreground | #3b403fdarkslategray | #c3d5d3lightgrey |
| Destructive | #b7440bfirebrick | #f15a0eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #032521black | #032521black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 9.66:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 5.45:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 9.66:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Flickering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 188.816);
--foreground: oklch(0.126 0.016 188.204);
--muted: oklch(0.967 0.007 188.729);
--muted-foreground: oklch(0.463 0.011 188.34);
--popover: oklch(0.987 0.004 188.816);
--popover-foreground: oklch(0.126 0.016 188.204);
--card: oklch(0.987 0.004 188.816);
--card-foreground: oklch(0.126 0.016 188.204);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.241 0.039 183.867);
--primary-foreground: oklch(0.814 0.144 181.456);
--secondary: oklch(0.879 0.004 188.813);
--secondary-foreground: oklch(0.365 0.007 188.476);
--accent: oklch(0.879 0.004 188.813);
--accent-foreground: oklch(0.365 0.007 188.476);
--destructive: oklch(0.539 0.16 41.142);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.241 0.039 183.867);
--chart-1: oklch(0.241 0.039 183.867);
--chart-2: oklch(0.879 0.004 188.813);
--chart-3: oklch(0.879 0.004 188.813);
--chart-4: oklch(0.902 0.003 188.834);
--chart-5: oklch(0.242 0.04 183.743);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.012 188.202);
--foreground: oklch(0.979 0.002 188.858);
--muted: oklch(0.166 0.011 187.31);
--muted-foreground: oklch(0.739 0.01 188.591);
--popover: oklch(0.141 0.012 188.202);
--popover-foreground: oklch(0.979 0.002 188.858);
--card: oklch(0.141 0.012 188.202);
--card-foreground: oklch(0.979 0.002 188.858);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.241 0.039 183.867);
--primary-foreground: oklch(0.814 0.144 181.456);
--secondary: oklch(0.339 0.023 187.241);
--secondary-foreground: oklch(0.858 0.019 188.382);
--accent: oklch(0.339 0.023 187.241);
--accent-foreground: oklch(0.858 0.019 188.382);
--destructive: oklch(0.659 0.2 40.662);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.241 0.039 183.867);
--chart-1: oklch(0.241 0.039 183.867);
--chart-2: oklch(0.339 0.023 187.241);
--chart-3: oklch(0.339 0.023 187.241);
--chart-4: oklch(0.371 0.025 187.197);
--chart-5: oklch(0.242 0.04 183.743);
}