Favorable for shadcn/ui

Favorable is a shadcn/ui theme built around a deep yellow primary color (#483b1e) with deep violet accents (#3b1e48). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#483b1e) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fefdfbsnow
#030302black
Foreground
#000000black
#ffffffwhite
Card
#fdfbf6snow
#070604black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfbf6snow
#070604black
Popover foreground
#000000black
#ffffffwhite
Primary
#483b1edarkolivegreen
#483b1edarkolivegreen
Primary foreground
#e1d4b7wheat
#e1d4b7wheat
Secondary
#1e483bdarkslategray
#1e483bdarkslategray
Secondary foreground
#b7e1d4powderblue
#b7e1d4powderblue
Muted
#d7e4e0gainsboro
#1b2824black
Muted foreground
#577068dimgray
#8fa8a0darkseagreen
Accent
#3b1e48darkslategray
#3b1e48darkslategray
Accent foreground
#d4b7e1thistle
#d4b7e1thistle
Destructive
#c11910firebrick
#d91c12firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#483b1edarkolivegreen
#483b1edarkolivegreen

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.34:1AAA
Primary button7.45:1AAA
Secondary button7.17:1AAA
Muted text4.11:1AA Large
Accent7.97:1AAA
Destructive6.13:1AA
Dark mode
Text on background20.64:1AAA
Text on card20.29:1AAA
Primary button7.45:1AAA
Secondary button7.17:1AAA
Muted text6.03:1AA
Accent7.97:1AAA
Destructive5.09:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 86.02);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.909 0.015 175.119);
  --muted-foreground: oklch(0.523 0.033 173.626);
  --popover: oklch(0.989 0.007 86.032);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.007 86.032);
  --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.359 0.048 85.095);
  --primary-foreground: oklch(0.873 0.042 86.091);
  --secondary: oklch(0.368 0.054 169.964);
  --secondary-foreground: oklch(0.877 0.048 173.897);
  --accent: oklch(0.294 0.082 314);
  --accent-foreground: oklch(0.817 0.067 315.082);
  --destructive: oklch(0.519 0.201 29.341);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.359 0.048 85.095);
  --chart-1: oklch(0.359 0.048 85.095);
  --chart-2: oklch(0.368 0.054 169.964);
  --chart-3: oklch(0.294 0.082 314);
  --chart-4: oklch(0.404 0.06 169.804);
  --chart-5: oklch(0.362 0.051 84.89);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.006 89.381);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.02 173.168);
  --muted-foreground: oklch(0.711 0.031 174.278);
  --popover: oklch(0.12 0.008 89.381);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.008 89.381);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.359 0.048 85.095);
  --primary-foreground: oklch(0.873 0.042 86.091);
  --secondary: oklch(0.368 0.054 169.964);
  --secondary-foreground: oklch(0.877 0.048 173.897);
  --accent: oklch(0.294 0.082 314);
  --accent-foreground: oklch(0.817 0.067 315.082);
  --destructive: oklch(0.565 0.22 29.373);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.359 0.048 85.095);
  --chart-1: oklch(0.359 0.048 85.095);
  --chart-2: oklch(0.368 0.054 169.964);
  --chart-3: oklch(0.294 0.082 314);
  --chart-4: oklch(0.404 0.06 169.804);
  --chart-5: oklch(0.362 0.051 84.89);
}