Solvency for shadcn/ui

Solvency is a shadcn/ui theme built around a vivid light orange primary color (#fee4c3) with vivid light yellow accents (#fafec3). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid light orange primary (#fee4c3) on an orange-tinted background (#0b0804).

Color palette

TokenLightDark
Background
#fcfaf8snow
#0b0804black
Foreground
#0c0803black
#ffffffwhite
Card
#fcfaf8snow
#0b0804black
Card foreground
#0c0803black
#ffffffwhite
Popover
#fcfaf8snow
#0b0804black
Popover foreground
#0c0803black
#ffffffwhite
Primary
#fee4c3bisque
#fee4c3bisque
Primary foreground
#281701black
#281701black
Secondary
#fec7c3pink
#fec7c3pink
Secondary foreground
#8c0c03darkred
#8c0c03darkred
Muted
#f7eeedlinen
#120808black
Muted foreground
#423e3edarkslategray
#c1bebdsilver
Accent
#fafec3lemonchiffon
#fafec3lemonchiffon
Accent foreground
#252801black
#252801black
Destructive
#da0b0bred
#f42f2fcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fee4c3bisque
#fee4c3bisque

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button14.11:1AAA
Secondary button6.52:1AA
Muted text9.25:1AAA
Accent14.46:1AAA
Destructive5.20:1AA
Dark mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button14.11:1AAA
Secondary button6.52:1AA
Muted text10.67:1AAA
Accent14.46:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 74.933);
  --foreground: oklch(0.139 0.017 81.985);
  --muted: oklch(0.956 0.01 22.334);
  --muted-foreground: oklch(0.368 0.005 22.368);
  --popover: oklch(0.986 0.003 74.933);
  --popover-foreground: oklch(0.139 0.017 81.985);
  --card: oklch(0.986 0.003 74.933);
  --card-foreground: oklch(0.139 0.017 81.985);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.932 0.052 74.479);
  --primary-foreground: oklch(0.222 0.046 72.315);
  --secondary: oklch(0.877 0.063 23.157);
  --secondary-foreground: oklch(0.407 0.16 30.052);
  --accent: oklch(0.979 0.075 110.873);
  --accent-foreground: oklch(0.265 0.058 113.5);
  --destructive: oklch(0.561 0.226 28.835);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.932 0.052 74.479);
  --chart-1: oklch(0.932 0.052 74.479);
  --chart-2: oklch(0.877 0.063 23.157);
  --chart-3: oklch(0.979 0.075 110.873);
  --chart-4: oklch(0.907 0.046 22.856);
  --chart-5: oklch(0.933 0.053 74.459);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 80.997);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.15 0.017 24.372);
  --muted-foreground: oklch(0.803 0.004 22.271);
  --popover: oklch(0.138 0.013 80.997);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.013 80.997);
  --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.932 0.052 74.479);
  --primary-foreground: oklch(0.222 0.046 72.315);
  --secondary: oklch(0.877 0.063 23.157);
  --secondary-foreground: oklch(0.407 0.16 30.052);
  --accent: oklch(0.979 0.075 110.873);
  --accent-foreground: oklch(0.265 0.058 113.5);
  --destructive: oklch(0.626 0.23 27.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.932 0.052 74.479);
  --chart-1: oklch(0.932 0.052 74.479);
  --chart-2: oklch(0.877 0.063 23.157);
  --chart-3: oklch(0.979 0.075 110.873);
  --chart-4: oklch(0.907 0.046 22.856);
  --chart-5: oklch(0.933 0.053 74.459);
}