Personal Gold Foil for shadcn/ui

Personal Gold Foil is a shadcn/ui theme built around an orange primary color (#dca04c) with blue accents (#4c88dc). The light mode uses a neutral background (#fefdfb). Dark mode keeps the orange primary (#dca04c) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fefdfbsnow
#040301black
Foreground
#080602black
#faf8f5whitesmoke
Card
#fdfaf7snow
#070503black
Card foreground
#040301black
#fcfaf8snow
Popover
#fdfaf7snow
#070503black
Popover foreground
#040301black
#fcfaf8snow
Primary
#dca04csandybrown
#dca04csandybrown
Primary foreground
#000000black
#000000black
Secondary
#4c88dccornflowerblue
#4c88dccornflowerblue
Secondary foreground
#000000black
#000000black
Muted
#edeff2whitesmoke
#0d0f12black
Muted foreground
#5b6471dimgray
#8e97a4lightslategray
Accent
#4c88dccornflowerblue
#4c88dccornflowerblue
Accent foreground
#000000black
#000000black
Destructive
#c12206firebrick
#f8300dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ecebe9linen
#211f1cblack
Input
#ecebe9linen
#211f1cblack
Ring
#dca04csandybrown
#dca04csandybrown

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.85:1AAA
Primary button9.15:1AAA
Secondary button5.85:1AA
Muted text5.21:1AA
Accent5.85:1AA
Destructive6.00:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.49:1AAA
Primary button9.15:1AAA
Secondary button5.85:1AA
Muted text6.50:1AA
Accent5.85:1AA
Destructive3.88:1AA Large

CSS variables

Paste this into your globals.css to use Personal Gold Foil in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 76.641);
  --foreground: oklch(0.121 0.014 83.847);
  --muted: oklch(0.952 0.005 256.672);
  --muted-foreground: oklch(0.5 0.024 256.785);
  --popover: oklch(0.987 0.005 76.63);
  --popover-foreground: oklch(0.096 0.011 83.847);
  --card: oklch(0.987 0.005 76.63);
  --card-foreground: oklch(0.096 0.011 83.847);
  --border: oklch(0.94 0.003 76.638);
  --input: oklch(0.94 0.003 76.638);
  --primary: oklch(0.747 0.123 73.032);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.626 0.142 257.154);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.626 0.142 257.154);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.523 0.196 31.684);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.747 0.123 73.032);
  --chart-1: oklch(0.747 0.123 73.032);
  --chart-2: oklch(0.626 0.142 257.154);
  --chart-3: oklch(0.626 0.142 257.154);
  --chart-4: oklch(0.651 0.131 257.034);
  --chart-5: oklch(0.751 0.127 72.706);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.008 82.028);
  --foreground: oklch(0.979 0.005 76.631);
  --muted: oklch(0.167 0.007 256.778);
  --muted-foreground: oklch(0.674 0.022 256.756);
  --popover: oklch(0.12 0.01 82.028);
  --popover-foreground: oklch(0.986 0.003 76.638);
  --card: oklch(0.12 0.01 82.028);
  --card-foreground: oklch(0.986 0.003 76.638);
  --border: oklch(0.241 0.006 76.511);
  --input: oklch(0.241 0.006 76.511);
  --primary: oklch(0.747 0.123 73.032);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.626 0.142 257.154);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.626 0.142 257.154);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.631 0.236 31.694);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.747 0.123 73.032);
  --chart-1: oklch(0.747 0.123 73.032);
  --chart-2: oklch(0.626 0.142 257.154);
  --chart-3: oklch(0.626 0.142 257.154);
  --chart-4: oklch(0.651 0.131 257.034);
  --chart-5: oklch(0.751 0.127 72.706);
}