Flickering for shadcn/ui

Flickering is a shadcn/ui theme built around a vivid purple primary color (#dc04b1) with vivid cyan accents (#04b1dc). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid purple primary (#dc04b1) on a purple-tinted background (#0b0509).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#0b0509black
Foreground
#10050eblack
#ffffffwhite
Card
#fdfbfdsnow
#0b0509black
Card foreground
#10050eblack
#ffffffwhite
Popover
#fdfbfdsnow
#0b0509black
Popover foreground
#10050eblack
#ffffffwhite
Primary
#dc04b1deeppink
#dc04b1deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b1dc04yellowgreen
#b1dc04yellowgreen
Secondary foreground
#101400black
#101400black
Muted
#f2f3ecwhitesmoke
#11130cblack
Muted foreground
#5e6052dimgray
#aaad9fdarkgray
Accent
#04b1dcdarkturquoise
#04b1dcdarkturquoise
Accent foreground
#001014black
#001014black
Destructive
#73250dsaddlebrown
#e95f35tomato
Destructive foreground
#f7c8bapeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dc04b1deeppink
#dc04b1deeppink

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button4.47:1AA Large
Secondary button11.67:1AAA
Muted text5.75:1AA
Accent7.66:1AAA
Destructive6.99:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button4.47:1AA Large
Secondary button11.67:1AAA
Muted text8.19:1AAA
Accent7.66:1AAA
Destructive6.13:1AA

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 332.052);
  --foreground: oklch(0.138 0.029 334.078);
  --muted: oklch(0.962 0.009 115.758);
  --muted-foreground: oklch(0.483 0.022 116.432);
  --popover: oklch(0.991 0.003 332.052);
  --popover-foreground: oklch(0.138 0.029 334.078);
  --card: oklch(0.991 0.003 332.052);
  --card-foreground: oklch(0.138 0.029 334.078);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.605 0.261 340.018);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.833 0.203 122.79);
  --secondary-foreground: oklch(0.181 0.041 118.432);
  --accent: oklch(0.706 0.131 223.518);
  --accent-foreground: oklch(0.16 0.027 212.838);
  --destructive: oklch(0.38 0.115 36.562);
  --destructive-foreground: oklch(0.871 0.057 37.592);
  --ring: oklch(0.605 0.261 340.018);
  --chart-1: oklch(0.605 0.261 340.018);
  --chart-2: oklch(0.833 0.203 122.79);
  --chart-3: oklch(0.706 0.131 223.518);
  --chart-4: oklch(0.876 0.214 122.831);
  --chart-5: oklch(0.611 0.265 340.21);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 332.701);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.014 116.998);
  --muted-foreground: oklch(0.741 0.02 116.081);
  --popover: oklch(0.126 0.019 332.701);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.019 332.701);
  --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.605 0.261 340.018);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.833 0.203 122.79);
  --secondary-foreground: oklch(0.181 0.041 118.432);
  --accent: oklch(0.706 0.131 223.518);
  --accent-foreground: oklch(0.16 0.027 212.838);
  --destructive: oklch(0.655 0.18 37.169);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.605 0.261 340.018);
  --chart-1: oklch(0.605 0.261 340.018);
  --chart-2: oklch(0.833 0.203 122.79);
  --chart-3: oklch(0.706 0.131 223.518);
  --chart-4: oklch(0.876 0.214 122.831);
  --chart-5: oklch(0.611 0.265 340.21);
}