Firsthand for shadcn/ui

Firsthand is a shadcn/ui theme built around a muted red primary color (#815658) with muted orange accents (#816956). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#815658) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#000000black
#f9f6f6whitesmoke
Card
#fefbfbsnow
#000000black
Card foreground
#000000black
#f9f6f6whitesmoke
Popover
#fefbfbsnow
#000000black
Popover foreground
#000000black
#f9f6f6whitesmoke
Primary
#815658dimgray
#815658dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#81566ddimgray
#81566ddimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4d8degainsboro
#271b22black
Muted foreground
#584650darkslategray
#b9a7b1darkgray
Accent
#816956dimgray
#816956dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c81909firebrick
#f53524orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#815658dimgray
#815658dimgray

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button6.19:1AA
Secondary button6.05:1AA
Muted text6.29:1AA
Accent5.14:1AA
Destructive5.84:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.19:1AA
Secondary button6.05:1AA
Muted text7.27:1AAA
Accent5.14:1AA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 13.678);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.016 343.045);
  --muted-foreground: oklch(0.417 0.028 344.188);
  --popover: oklch(0.99 0.004 13.678);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.004 13.678);
  --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.499 0.057 16.033);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.506 0.066 345.578);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.538 0.042 61.038);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.531 0.206 30.078);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.499 0.057 16.033);
  --chart-1: oklch(0.499 0.057 16.033);
  --chart-2: oklch(0.506 0.066 345.578);
  --chart-3: oklch(0.538 0.042 61.038);
  --chart-4: oklch(0.532 0.069 345.601);
  --chart-5: oklch(0.496 0.066 16.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 13.66);
  --muted: oklch(0.24 0.022 344.74);
  --muted-foreground: oklch(0.747 0.024 343.389);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 13.66);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.003 13.66);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.499 0.057 16.033);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.506 0.066 345.578);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.538 0.042 61.038);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.228 29.92);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.499 0.057 16.033);
  --chart-1: oklch(0.499 0.057 16.033);
  --chart-2: oklch(0.506 0.066 345.578);
  --chart-3: oklch(0.538 0.042 61.038);
  --chart-4: oklch(0.532 0.069 345.601);
  --chart-5: oklch(0.496 0.066 16.476);
}