Flickering for shadcn/ui

Flickering is a shadcn/ui theme built around a neutral gray primary color (#2e3333) with muted light teal accents (#c5cece). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#2e3333) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#ffffffwhite
#010404black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#020808black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#020808black
Popover foreground
#000000black
#ffffffwhite
Primary
#2e3333darkslategray
#2e3333darkslategray
Primary foreground
#c6cccdlightgrey
#c6cccdlightgrey
Secondary
#dddfdfgainsboro
#1f2d2edarkslategray
Secondary foreground
#434747darkslategray
#b3cbcbsilver
Muted
#f1f4f4whitesmoke
#0b0e0eblack
Muted foreground
#444546darkslategray
#b9bbbbsilver
Accent
#c5cecelightgrey
#2e4b4ddarkslategray
Accent foreground
#2c3535darkslategray
#cce0e0gainsboro
Destructive
#931b06darkred
#f53a19orangered
Destructive foreground
#fdd5cebisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e3333darkslategray
#2e3333darkslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.88:1AAA
Secondary button7.02:1AAA
Muted text8.66:1AAA
Accent7.84:1AAA
Destructive6.49:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.19:1AAA
Primary button7.88:1AAA
Secondary button8.36:1AAA
Muted text10.03:1AAA
Accent6.83:1AA
Destructive3.80:1AA Large

CSS variables

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.964 0.003 199.557);
  --muted-foreground: oklch(0.391 0.002 199.543);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.316 0.008 199.282);
  --primary-foreground: oklch(0.842 0.007 199.495);
  --secondary: oklch(0.902 0.002 199.574);
  --secondary-foreground: oklch(0.393 0.005 199.425);
  --accent: oklch(0.844 0.01 199.442);
  --accent-foreground: oklch(0.319 0.011 199.142);
  --destructive: oklch(0.431 0.157 32.002);
  --destructive-foreground: oklch(0.905 0.046 29.732);
  --ring: oklch(0.316 0.008 199.282);
  --chart-1: oklch(0.316 0.008 199.282);
  --chart-2: oklch(0.902 0.002 199.574);
  --chart-3: oklch(0.844 0.01 199.442);
  --chart-4: oklch(0.924 0.002 199.582);
  --chart-5: oklch(0.319 0.011 199.142);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.01 197.757);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.005 199.187);
  --muted-foreground: oklch(0.79 0.001 199.58);
  --popover: oklch(0.124 0.013 197.757);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.013 197.757);
  --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.316 0.008 199.282);
  --primary-foreground: oklch(0.842 0.007 199.495);
  --secondary: oklch(0.285 0.019 198.805);
  --secondary-foreground: oklch(0.823 0.025 199.205);
  --accent: oklch(0.392 0.035 198.589);
  --accent-foreground: oklch(0.891 0.021 199.293);
  --destructive: oklch(0.635 0.227 32.114);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.008 199.282);
  --chart-1: oklch(0.316 0.008 199.282);
  --chart-2: oklch(0.285 0.019 198.805);
  --chart-3: oklch(0.392 0.035 198.589);
  --chart-4: oklch(0.319 0.022 198.779);
  --chart-5: oklch(0.319 0.011 199.142);
}