Flickering for shadcn/ui

Flickering is a shadcn/ui theme built around a vivid deep red primary color (#900422) with vivid deep orange accents (#902c04). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#900422) on a red-tinted background (#0f0608).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0608black
Foreground
#000000black
#fdfcfcsnow
Card
#ffffffwhite
#0f0608black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#0f0608black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#900422darkred
#900422darkred
Primary foreground
#fec8d4pink
#fec8d4pink
Secondary
#900468purple
#900468purple
Secondary foreground
#fec8eemistyrose
#fec8eemistyrose
Muted
#eedde9mistyrose
#22111dblack
Muted foreground
#494147darkslategray
#beb6bcsilver
Accent
#902c04saddlebrown
#902c04saddlebrown
Accent foreground
#fed7c8bisque
#fed7c8bisque
Destructive
#8e0b0bdarkred
#ee2020crimson
Destructive foreground
#fbd0d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#900422darkred
#900422darkred

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.47:1AA
Secondary button6.11:1AA
Muted text7.57:1AAA
Accent6.19:1AA
Destructive6.81:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button6.47:1AA
Secondary button6.11:1AA
Muted text9.10:1AAA
Accent6.19:1AA
Destructive4.31: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.914 0.026 335.696);
  --muted-foreground: oklch(0.385 0.015 335.876);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.415 0.165 20.321);
  --primary-foreground: oklch(0.884 0.062 3.949);
  --secondary: oklch(0.437 0.184 344.912);
  --secondary-foreground: oklch(0.892 0.078 336.697);
  --accent: oklch(0.441 0.142 37.808);
  --accent-foreground: oklch(0.909 0.048 42.748);
  --destructive: oklch(0.412 0.162 28.316);
  --destructive-foreground: oklch(0.894 0.05 18.12);
  --ring: oklch(0.415 0.165 20.321);
  --chart-1: oklch(0.415 0.165 20.321);
  --chart-2: oklch(0.437 0.184 344.912);
  --chart-3: oklch(0.441 0.142 37.808);
  --chart-4: oklch(0.47 0.198 345.058);
  --chart-5: oklch(0.419 0.167 20.854);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.019 3.259);
  --foreground: oklch(0.992 0.001 2.1);
  --muted: oklch(0.207 0.037 338.2);
  --muted-foreground: oklch(0.785 0.012 335.476);
  --popover: oklch(0.136 0.019 3.259);
  --popover-foreground: oklch(0.992 0.001 2.1);
  --card: oklch(0.136 0.019 3.259);
  --card-foreground: oklch(0.992 0.001 2.1);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.415 0.165 20.321);
  --primary-foreground: oklch(0.884 0.062 3.949);
  --secondary: oklch(0.437 0.184 344.912);
  --secondary-foreground: oklch(0.892 0.078 336.697);
  --accent: oklch(0.441 0.142 37.808);
  --accent-foreground: oklch(0.909 0.048 42.748);
  --destructive: oklch(0.607 0.234 27.972);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.415 0.165 20.321);
  --chart-1: oklch(0.415 0.165 20.321);
  --chart-2: oklch(0.437 0.184 344.912);
  --chart-3: oklch(0.441 0.142 37.808);
  --chart-4: oklch(0.47 0.198 345.058);
  --chart-5: oklch(0.419 0.167 20.854);
}