Golden for shadcn/ui

Golden is a shadcn/ui theme built around a muted blue primary color (#656981) with neutral gray accents (#c0c1c8). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the muted blue primary (#656981) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f6f7fdghostwhite
#000000black
Foreground
#010104black
#fcfcfdwhite
Card
#f2f4fdaliceblue
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f2f4fdaliceblue
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#656981dimgray
#656981dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5d6d7lightgrey
#1a1b23black
Secondary foreground
#3c3c3edarkslategray
#adb0c2silver
Muted
#e2e3e9gainsboro
#16171dblack
Muted foreground
#4e4f56darkslategray
#a9abb1darkgray
Accent
#c0c1c8silver
#26293bdarkslategray
Accent foreground
#28292edarkslategray
#bec2d5lightsteelblue
Destructive
#c8430echocolate
#ea4e10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#656981dimgray
#656981dimgray

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.08:1AAA
Primary button5.39:1AA
Secondary button7.54:1AAA
Muted text6.36:1AA
Accent8.12:1AAA
Destructive4.92:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button5.39:1AA
Secondary button7.94:1AAA
Muted text7.78:1AAA
Accent8.08:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 278.197);
  --foreground: oklch(0.075 0.018 268.736);
  --muted: oklch(0.917 0.008 278.187);
  --muted-foreground: oklch(0.428 0.011 277.916);
  --popover: oklch(0.967 0.012 278.132);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.967 0.012 278.132);
  --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.526 0.037 277.193);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.875 0.002 278.286);
  --secondary-foreground: oklch(0.358 0.004 278.172);
  --accent: oklch(0.814 0.01 278.142);
  --accent-foreground: oklch(0.283 0.009 277.811);
  --destructive: oklch(0.566 0.178 38.068);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.526 0.037 277.193);
  --chart-1: oklch(0.526 0.037 277.193);
  --chart-2: oklch(0.875 0.002 278.286);
  --chart-3: oklch(0.814 0.01 278.142);
  --chart-4: oklch(0.899 0.002 278.293);
  --chart-5: oklch(0.52 0.047 276.85);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 278.307);
  --muted: oklch(0.206 0.012 277.394);
  --muted-foreground: oklch(0.741 0.01 278.12);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.526 0.037 277.193);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.226 0.015 277.243);
  --secondary-foreground: oklch(0.761 0.026 277.797);
  --accent: oklch(0.287 0.032 276.447);
  --accent-foreground: oklch(0.816 0.027 277.818);
  --destructive: oklch(0.634 0.202 37.861);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.526 0.037 277.193);
  --chart-1: oklch(0.526 0.037 277.193);
  --chart-2: oklch(0.226 0.015 277.243);
  --chart-3: oklch(0.287 0.032 276.447);
  --chart-4: oklch(0.256 0.019 277.158);
  --chart-5: oklch(0.52 0.047 276.85);
}