Flickering for shadcn/ui

Flickering is a shadcn/ui theme built around a muted purple primary color (#82608a) with muted light purple accents (#dad0dc). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted purple primary (#82608a) on a purple-tinted background (#0d050f).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#0d050fblack
Foreground
#0e0311black
#f8f6f9whitesmoke
Card
#fdfbfdsnow
#0d050fblack
Card foreground
#0e0311black
#f8f6f9whitesmoke
Popover
#fdfbfdsnow
#0d050fblack
Popover foreground
#0e0311black
#f8f6f9whitesmoke
Primary
#82608agray
#82608agray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e9e6ealavender
#211a23black
Secondary foreground
#534955darkslategray
#beaec2silver
Muted
#e8dbeblavender
#211424black
Muted foreground
#66526bdimgray
#a894addarkgray
Accent
#dad0dclightgrey
#3f2c44darkslategray
Accent foreground
#433446darkslategray
#d7c7dbthistle
Destructive
#6d1e09maroon
#e23f12orangered
Destructive foreground
#f8bfaflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#82608agray
#82608agray

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.67:1AAA
Primary button5.25:1AA
Secondary button6.93:1AA
Muted text5.27:1AA
Accent7.72:1AAA
Destructive7.10:1AAA
Dark mode
Text on background18.65:1AAA
Text on card18.65:1AAA
Primary button5.25:1AA
Secondary button8.08:1AAA
Muted text6.30:1AA
Accent7.87:1AAA
Destructive4.21: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.991 0.003 319.445);
  --foreground: oklch(0.132 0.04 320.504);
  --muted: oklch(0.906 0.026 319.452);
  --muted-foreground: oklch(0.468 0.046 319.465);
  --popover: oklch(0.991 0.003 319.445);
  --popover-foreground: oklch(0.132 0.04 320.504);
  --card: oklch(0.991 0.003 319.445);
  --card-foreground: oklch(0.132 0.04 320.504);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.54 0.076 319.46);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.929 0.006 319.446);
  --secondary-foreground: oklch(0.419 0.024 319.46);
  --accent: oklch(0.869 0.02 319.451);
  --accent-foreground: oklch(0.349 0.037 319.465);
  --destructive: oklch(0.36 0.115 35.399);
  --destructive-foreground: oklch(0.852 0.071 36.004);
  --ring: oklch(0.54 0.076 319.46);
  --chart-1: oklch(0.54 0.076 319.46);
  --chart-2: oklch(0.929 0.006 319.446);
  --chart-3: oklch(0.869 0.02 319.451);
  --chart-4: oklch(0.953 0.004 319.445);
  --chart-5: oklch(0.537 0.088 319.45);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.027 320.089);
  --foreground: oklch(0.976 0.004 319.445);
  --muted: oklch(0.216 0.036 319.448);
  --muted-foreground: oklch(0.693 0.042 319.46);
  --popover: oklch(0.136 0.027 320.089);
  --popover-foreground: oklch(0.976 0.004 319.445);
  --card: oklch(0.136 0.027 320.089);
  --card-foreground: oklch(0.976 0.004 319.445);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.54 0.076 319.46);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.231 0.019 319.463);
  --secondary-foreground: oklch(0.769 0.033 319.456);
  --accent: oklch(0.326 0.048 319.458);
  --accent-foreground: oklch(0.85 0.031 319.454);
  --destructive: oklch(0.607 0.206 34.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.54 0.076 319.46);
  --chart-1: oklch(0.54 0.076 319.46);
  --chart-2: oklch(0.231 0.019 319.463);
  --chart-3: oklch(0.326 0.048 319.458);
  --chart-4: oklch(0.262 0.023 319.464);
  --chart-5: oklch(0.537 0.088 319.45);
}