Flickering for shadcn/ui

Flickering is a shadcn/ui theme built around a deep red primary color (#5f1911) with deep orange accents (#5f4011). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the deep red primary (#5f1911) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfbsnow
#000000black
Foreground
#100605black
#fdfcfcsnow
Card
#fdfcfbsnow
#000000black
Card foreground
#100605black
#fdfcfcsnow
Popover
#fdfcfbsnow
#000000black
Popover foreground
#100605black
#fdfcfcsnow
Primary
#5f1911maroon
#5f1911maroon
Primary foreground
#f1b8b1lightpink
#f1b8b1lightpink
Secondary
#5f1130maroon
#5f1130maroon
Secondary foreground
#f1b1cblightpink
#f1b1cblightpink
Muted
#f2e9eclinen
#160d11black
Muted foreground
#615c5edimgray
#a39ea0darkgray
Accent
#5f4011saddlebrown
#5f4011saddlebrown
Accent foreground
#f1d7b1wheat
#f1d7b1wheat
Destructive
#8e3501saddlebrown
#fe5e01orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f1911maroon
#5f1911maroon

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.48:1AAA
Secondary button7.38:1AAA
Muted text5.49:1AA
Accent6.79:1AA
Destructive7.91:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.48:1AAA
Secondary button7.38:1AAA
Muted text7.21:1AAA
Accent6.79:1AA
Destructive6.79: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.002 25.006);
  --foreground: oklch(0.137 0.021 29.368);
  --muted: oklch(0.941 0.011 350.944);
  --muted-foreground: oklch(0.479 0.008 351.095);
  --popover: oklch(0.991 0.002 25.006);
  --popover-foreground: oklch(0.137 0.021 29.368);
  --card: oklch(0.991 0.002 25.006);
  --card-foreground: oklch(0.137 0.021 29.368);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.328 0.103 29.857);
  --primary-foreground: oklch(0.832 0.067 25.851);
  --secondary: oklch(0.327 0.112 1.777);
  --secondary-foreground: oklch(0.828 0.08 353.216);
  --accent: oklch(0.397 0.074 72.976);
  --accent-foreground: oklch(0.892 0.057 77.893);
  --destructive: oklch(0.449 0.133 42.955);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.328 0.103 29.857);
  --chart-1: oklch(0.328 0.103 29.857);
  --chart-2: oklch(0.327 0.112 1.777);
  --chart-3: oklch(0.397 0.074 72.976);
  --chart-4: oklch(0.356 0.124 2.101);
  --chart-5: oklch(0.33 0.106 30.02);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 25);
  --muted: oklch(0.175 0.017 353.18);
  --muted-foreground: oklch(0.704 0.007 350.916);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 25);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 25);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.328 0.103 29.857);
  --primary-foreground: oklch(0.832 0.067 25.851);
  --secondary: oklch(0.327 0.112 1.777);
  --secondary-foreground: oklch(0.828 0.08 353.216);
  --accent: oklch(0.397 0.074 72.976);
  --accent-foreground: oklch(0.892 0.057 77.893);
  --destructive: oklch(0.684 0.209 41.17);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.328 0.103 29.857);
  --chart-1: oklch(0.328 0.103 29.857);
  --chart-2: oklch(0.327 0.112 1.777);
  --chart-3: oklch(0.397 0.074 72.976);
  --chart-4: oklch(0.356 0.124 2.101);
  --chart-5: oklch(0.33 0.106 30.02);
}