Fav2 for shadcn/ui

Fav2 is a shadcn/ui theme built around a yellow primary color (#e3d063) with blue accents (#6376e3). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the yellow primary (#e3d063) on a yellow-tinted background (#0e0d07).

Color palette

TokenLightDark
Background
#fdfcf6snow
#0e0d07black
Foreground
#080702black
#f9f8f6whitesmoke
Card
#fdfcf6snow
#0e0d07black
Card foreground
#080702black
#f9f8f6whitesmoke
Popover
#fdfcf6snow
#0e0d07black
Popover foreground
#080702black
#f9f8f6whitesmoke
Primary
#e3d063burlywood
#e3d063burlywood
Primary foreground
#110f03black
#110f03black
Secondary
#6376e3mediumslateblue
#6376e3mediumslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0e3f0lavender
#0f111fblack
Muted foreground
#494b5bdarkslategray
#a4a7b6darkgray
Accent
#6376e3mediumslateblue
#6376e3mediumslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d23f04orangered
#fa5d1eorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#ecebealinen
#20201dblack
Input
#ecebealinen
#20201dblack
Ring
#e3d063burlywood
#e3d063burlywood

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button12.34:1AAA
Secondary button4.00:1AA Large
Muted text6.70:1AA
Accent4.00:1AA Large
Destructive4.72:1AA
Dark mode
Text on background18.38:1AAA
Text on card18.38:1AAA
Primary button12.34:1AAA
Secondary button4.00:1AA Large
Muted text7.81:1AAA
Accent4.00:1AA Large
Destructive6.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 98.427);
  --foreground: oklch(0.128 0.016 101.958);
  --muted: oklch(0.917 0.018 278.025);
  --muted-foreground: oklch(0.417 0.026 277.352);
  --popover: oklch(0.991 0.008 98.427);
  --popover-foreground: oklch(0.128 0.016 101.958);
  --card: oklch(0.991 0.008 98.427);
  --card-foreground: oklch(0.128 0.016 101.958);
  --border: oklch(0.941 0.002 98.353);
  --input: oklch(0.941 0.002 98.353);
  --primary: oklch(0.853 0.131 99.433);
  --primary-foreground: oklch(0.168 0.026 101.025);
  --secondary: oklch(0.606 0.166 272.968);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.606 0.166 272.968);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.577 0.192 36.834);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.853 0.131 99.433);
  --chart-1: oklch(0.853 0.131 99.433);
  --chart-2: oklch(0.606 0.166 272.968);
  --chart-3: oklch(0.606 0.166 272.968);
  --chart-4: oklch(0.638 0.151 273.83);
  --chart-5: oklch(0.859 0.136 99.401);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.012 99.742);
  --foreground: oklch(0.98 0.003 98.36);
  --muted: oklch(0.185 0.027 275.719);
  --muted-foreground: oklch(0.731 0.022 277.863);
  --popover: oklch(0.156 0.012 99.742);
  --popover-foreground: oklch(0.98 0.003 98.36);
  --card: oklch(0.156 0.012 99.742);
  --card-foreground: oklch(0.98 0.003 98.36);
  --border: oklch(0.242 0.005 98.595);
  --input: oklch(0.242 0.005 98.595);
  --primary: oklch(0.853 0.131 99.433);
  --primary-foreground: oklch(0.168 0.026 101.025);
  --secondary: oklch(0.606 0.166 272.968);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.606 0.166 272.968);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.678 0.204 38.909);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.853 0.131 99.433);
  --chart-1: oklch(0.853 0.131 99.433);
  --chart-2: oklch(0.606 0.166 272.968);
  --chart-3: oklch(0.606 0.166 272.968);
  --chart-4: oklch(0.638 0.151 273.83);
  --chart-5: oklch(0.859 0.136 99.401);
}