Fearful for shadcn/ui

Fearful is a shadcn/ui theme built around a vivid violet primary color (#4e01f4) with muted light violet accents (#c5c2cb). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid violet primary (#4e01f4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#000000black
Foreground
#090317black
#f7f6f9whitesmoke
Card
#f6f5fawhitesmoke
#030303black
Card foreground
#070212black
#f9f9fbghostwhite
Popover
#f6f5fawhitesmoke
#030303black
Popover foreground
#070212black
#f9f9fbghostwhite
Primary
#4e01f4blueviolet
#4e01f4blueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8d8dagainsboro
#171717black
Secondary foreground
#3f3e41darkslategray
#b0afb1darkgray
Muted
#e0dbebgainsboro
#191424black
Muted foreground
#625c70dimgray
#958fa3lightslategray
Accent
#c5c2cbsilver
#27252cdarkslategray
Accent foreground
#2d2a32darkslategray
#c0bcc7silver
Destructive
#cf2c17firebrick
#ea523etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4e01f4blueviolet
#4e01f4blueviolet

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card18.81:1AAA
Primary button7.98:1AAA
Secondary button7.46:1AAA
Muted text4.70:1AA
Accent8.06:1AAA
Destructive5.22:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.66:1AAA
Primary button7.98:1AAA
Secondary button8.22:1AAA
Muted text5.78:1AA
Accent8.09:1AAA
Destructive3.64:1AA Large

CSS variables

Paste this into your globals.css to use Fearful in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 300.682);
  --foreground: oklch(0.127 0.048 297.376);
  --muted: oklch(0.899 0.023 300.338);
  --muted-foreground: oklch(0.488 0.033 299.641);
  --popover: oklch(0.972 0.008 300.637);
  --popover-foreground: oklch(0.116 0.043 299.222);
  --card: oklch(0.972 0.008 300.637);
  --card-foreground: oklch(0.116 0.043 299.222);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.47 0.286 279.011);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.883 0.002 300.728);
  --secondary-foreground: oklch(0.367 0.004 300.569);
  --accent: oklch(0.82 0.013 300.511);
  --accent-foreground: oklch(0.291 0.014 299.999);
  --destructive: oklch(0.556 0.201 31.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.286 279.011);
  --chart-1: oklch(0.47 0.286 279.011);
  --chart-2: oklch(0.883 0.002 300.728);
  --chart-3: oklch(0.82 0.013 300.511);
  --chart-4: oklch(0.907 0.002 300.737);
  --chart-5: oklch(0.473 0.291 278.234);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.005 300.687);
  --muted: oklch(0.205 0.034 297.942);
  --muted-foreground: oklch(0.662 0.031 300.002);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.983 0.003 300.714);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.003 300.714);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.47 0.286 279.011);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.204 0.001 300.693);
  --secondary-foreground: oklch(0.755 0.002 300.718);
  --accent: oklch(0.271 0.014 299.924);
  --accent-foreground: oklch(0.802 0.016 300.444);
  --destructive: oklch(0.642 0.191 30.491);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.286 279.011);
  --chart-1: oklch(0.47 0.286 279.011);
  --chart-2: oklch(0.204 0.001 300.693);
  --chart-3: oklch(0.271 0.014 299.924);
  --chart-4: oklch(0.237 0.001 300.685);
  --chart-5: oklch(0.473 0.291 278.234);
}