Second-hand for shadcn/ui

Second-hand is a shadcn/ui theme built around a vivid light orange primary color (#fac18e) with vivid light yellow accents (#faf78e). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid light orange primary (#fac18e) on a neutral background (#080503).

Color palette

TokenLightDark
Background
#fcfaf8snow
#080503black
Foreground
#0d0703black
#fbfaf8snow
Card
#faf7f4whitesmoke
#0b0704black
Card foreground
#080502black
#fdfcfcsnow
Popover
#fcfaf8snow
#080503black
Popover foreground
#0d0703black
#fbfaf8snow
Primary
#fac18eburlywood
#fac18eburlywood
Primary foreground
#532903maroon
#532903maroon
Secondary
#fa8e92lightcoral
#fa8e92lightcoral
Secondary foreground
#530306maroon
#530306maroon
Muted
#f3f2f2whitesmoke
#0d0c0cblack
Muted foreground
#5b5253dimgray
#ada4a4darkgray
Accent
#faf78ekhaki
#faf78ekhaki
Accent foreground
#535103darkolivegreen
#535103darkolivegreen
Destructive
#952509saddlebrown
#f3532btomato
Destructive foreground
#fcdcd4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fac18eburlywood
#fac18eburlywood

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.08:1AAA
Primary button7.75:1AAA
Secondary button6.78:1AA
Muted text6.74:1AA
Accent7.35:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.55:1AAA
Primary button7.75:1AAA
Secondary button6.78:1AA
Muted text8.01:1AAA
Accent7.35:1AAA
Destructive3.46:1AA Large

CSS variables

Paste this into your globals.css to use Second-hand in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 64.048);
  --foreground: oklch(0.136 0.017 72.663);
  --muted: oklch(0.961 0.001 14.816);
  --muted-foreground: oklch(0.448 0.011 15.274);
  --popover: oklch(0.985 0.003 64.048);
  --popover-foreground: oklch(0.136 0.017 72.663);
  --card: oklch(0.978 0.005 64.026);
  --card-foreground: oklch(0.118 0.015 73.511);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.851 0.093 62.258);
  --primary-foreground: oklch(0.331 0.078 55.288);
  --secondary: oklch(0.764 0.131 18.479);
  --secondary-foreground: oklch(0.282 0.11 26.732);
  --accent: oklch(0.956 0.127 106.834);
  --accent-foreground: oklch(0.422 0.089 107.429);
  --destructive: oklch(0.444 0.153 33.989);
  --destructive-foreground: oklch(0.919 0.038 34.317);
  --ring: oklch(0.851 0.093 62.258);
  --chart-1: oklch(0.851 0.093 62.258);
  --chart-2: oklch(0.764 0.131 18.479);
  --chart-3: oklch(0.956 0.127 106.834);
  --chart-4: oklch(0.792 0.112 17.752);
  --chart-5: oklch(0.852 0.096 62.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.011 71.363);
  --foreground: oklch(0.985 0.003 64.055);
  --muted: oklch(0.156 0.002 15.051);
  --muted-foreground: oklch(0.726 0.01 15.051);
  --popover: oklch(0.118 0.011 71.363);
  --popover-foreground: oklch(0.985 0.003 64.055);
  --card: oklch(0.135 0.013 71.001);
  --card-foreground: oklch(0.993 0.001 64.072);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.851 0.093 62.258);
  --primary-foreground: oklch(0.331 0.078 55.288);
  --secondary: oklch(0.764 0.131 18.479);
  --secondary-foreground: oklch(0.282 0.11 26.732);
  --accent: oklch(0.956 0.127 106.834);
  --accent-foreground: oklch(0.422 0.089 107.429);
  --destructive: oklch(0.655 0.203 34.835);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.093 62.258);
  --chart-1: oklch(0.851 0.093 62.258);
  --chart-2: oklch(0.764 0.131 18.479);
  --chart-3: oklch(0.956 0.127 106.834);
  --chart-4: oklch(0.792 0.112 17.752);
  --chart-5: oklch(0.852 0.096 62.176);
}