Fav 2 for shadcn/ui

Fav 2 is a shadcn/ui theme built around a vivid light violet primary color (#d3a0f3) with vivid light purple accents (#f3a0e9). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid light violet primary (#d3a0f3) on a violet-tinted background (#08050b).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#08050bblack
Foreground
#030104black
#f8f6f9whitesmoke
Card
#f8f5fawhitesmoke
#0b060eblack
Card foreground
#000000black
#faf9fbghostwhite
Popover
#faf8fcghostwhite
#08050bblack
Popover foreground
#030104black
#f8f6f9whitesmoke
Primary
#d3a0f3plum
#d3a0f3plum
Primary foreground
#390b56midnightblue
#390b56midnightblue
Secondary
#aaa0f3lightsteelblue
#aaa0f3lightsteelblue
Secondary foreground
#140b56midnightblue
#140b56midnightblue
Muted
#d9d7e4gainsboro
#1c1b28black
Muted foreground
#4d4b5ddarkslategray
#a4a2b4darkgray
Accent
#f3a0e9plum
#f3a0e9plum
Accent foreground
#560b4dindigo
#560b4dindigo
Destructive
#d34503orangered
#fc6a27tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e6e4e7gainsboro
#221f23black
Input
#e6e4e7gainsboro
#221f23black
Ring
#d3a0f3plum
#d3a0f3plum

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.40:1AAA
Primary button7.45:1AAA
Secondary button7.45:1AAA
Muted text5.97:1AA
Accent7.10:1AAA
Destructive4.54:1AA
Dark mode
Text on background18.86:1AAA
Text on card19.09:1AAA
Primary button7.45:1AAA
Secondary button7.45:1AAA
Muted text6.82:1AA
Accent7.10:1AAA
Destructive7.23:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 312.951);
  --foreground: oklch(0.08 0.022 315.344);
  --muted: oklch(0.885 0.018 291.392);
  --muted-foreground: oklch(0.422 0.031 290.372);
  --popover: oklch(0.982 0.005 312.951);
  --popover-foreground: oklch(0.08 0.022 315.344);
  --card: oklch(0.973 0.007 312.933);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.921 0.005 312.946);
  --input: oklch(0.921 0.005 312.946);
  --primary: oklch(0.783 0.126 311.862);
  --primary-foreground: oklch(0.278 0.124 307.85);
  --secondary: oklch(0.746 0.118 288.554);
  --secondary-foreground: oklch(0.233 0.124 275.961);
  --accent: oklch(0.811 0.134 330.922);
  --accent-foreground: oklch(0.319 0.129 333.695);
  --destructive: oklch(0.586 0.188 38.599);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.783 0.126 311.862);
  --chart-1: oklch(0.783 0.126 311.862);
  --chart-2: oklch(0.746 0.118 288.554);
  --chart-3: oklch(0.811 0.134 330.922);
  --chart-4: oklch(0.783 0.1 289.218);
  --chart-5: oklch(0.781 0.131 311.812);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.018 314.198);
  --foreground: oklch(0.975 0.004 312.954);
  --muted: oklch(0.228 0.026 289.557);
  --muted-foreground: oklch(0.719 0.027 291.071);
  --popover: oklch(0.123 0.018 314.198);
  --popover-foreground: oklch(0.975 0.004 312.954);
  --card: oklch(0.136 0.02 312.978);
  --card-foreground: oklch(0.983 0.003 312.964);
  --border: oklch(0.244 0.01 312.717);
  --input: oklch(0.244 0.01 312.717);
  --primary: oklch(0.783 0.126 311.862);
  --primary-foreground: oklch(0.278 0.124 307.85);
  --secondary: oklch(0.746 0.118 288.554);
  --secondary-foreground: oklch(0.233 0.124 275.961);
  --accent: oklch(0.811 0.134 330.922);
  --accent-foreground: oklch(0.319 0.129 333.695);
  --destructive: oklch(0.698 0.193 41.907);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.783 0.126 311.862);
  --chart-1: oklch(0.783 0.126 311.862);
  --chart-2: oklch(0.746 0.118 288.554);
  --chart-3: oklch(0.811 0.134 330.922);
  --chart-4: oklch(0.783 0.1 289.218);
  --chart-5: oklch(0.781 0.131 311.812);
}