Flickering for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.29:1AAA
Primary button6.02:1AA
Secondary button4.96:1AA
Muted text9.20:1AAA
Accent4.96:1AA
Destructive6.79:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.81:1AAA
Primary button6.02:1AA
Secondary button4.96:1AA
Muted text9.47:1AAA
Accent4.96:1AA
Destructive4.45:1AA Large

CSS variables

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);
}