Firsthand for shadcn/ui

Firsthand is a shadcn/ui theme built around a light yellow primary color (#eae9b8) with light indigo accents (#b8baea). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#eae9b8) on a neutral background (#070704).

Color palette

TokenLightDark
Background
#ffffffwhite
#070704black
Foreground
#111004black
#f8f8f7whitesmoke
Card
#fcfcfcsnow
#0a0a05black
Card foreground
#0c0c03black
#fafaf9snow
Popover
#ffffffwhite
#070704black
Popover foreground
#111004black
#f8f8f7whitesmoke
Primary
#eae9b8palegoldenrod
#eae9b8palegoldenrod
Primary foreground
#575519darkolivegreen
#575519darkolivegreen
Secondary
#b8baealightsteelblue
#b8baealightsteelblue
Secondary foreground
#191b57midnightblue
#191b57midnightblue
Muted
#dedee3gainsboro
#1c1c21black
Muted foreground
#46464edarkslategray
#b1b2b9darkgray
Accent
#b8baealightsteelblue
#b8baealightsteelblue
Accent foreground
#191b57midnightblue
#191b57midnightblue
Destructive
#9d0101darkred
#fe1616red
Destructive foreground
#ffd1d1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eae9b8palegoldenrod
#eae9b8palegoldenrod

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.21:1AAA
Primary button6.18:1AA
Secondary button8.39:1AAA
Muted text6.97:1AA
Accent8.39:1AAA
Destructive6.25:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.01:1AAA
Primary button6.18:1AA
Secondary button8.39:1AAA
Muted text8.00:1AAA
Accent8.39:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.17 0.026 107.29);
  --muted: oklch(0.902 0.006 284.682);
  --muted-foreground: oklch(0.398 0.012 284.268);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.17 0.026 107.29);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.152 0.023 107.424);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.064 105.941);
  --primary-foreground: oklch(0.438 0.08 107.353);
  --secondary: oklch(0.803 0.069 283.185);
  --secondary-foreground: oklch(0.265 0.105 275.048);
  --accent: oklch(0.803 0.069 283.185);
  --accent-foreground: oklch(0.265 0.105 275.048);
  --destructive: oklch(0.438 0.179 29.176);
  --destructive-foreground: oklch(0.901 0.051 18.147);
  --ring: oklch(0.922 0.064 105.941);
  --chart-1: oklch(0.922 0.064 105.941);
  --chart-2: oklch(0.803 0.069 283.185);
  --chart-3: oklch(0.803 0.069 283.185);
  --chart-4: oklch(0.836 0.057 283.543);
  --chart-5: oklch(0.926 0.067 105.991);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.01 106.322);
  --foreground: oklch(0.979 0.002 104.843);
  --muted: oklch(0.23 0.009 284.089);
  --muted-foreground: oklch(0.764 0.01 284.573);
  --popover: oklch(0.124 0.01 106.322);
  --popover-foreground: oklch(0.979 0.002 104.843);
  --card: oklch(0.142 0.011 106.322);
  --card-foreground: oklch(0.986 0.001 104.831);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.922 0.064 105.941);
  --primary-foreground: oklch(0.438 0.08 107.353);
  --secondary: oklch(0.803 0.069 283.185);
  --secondary-foreground: oklch(0.265 0.105 275.048);
  --accent: oklch(0.803 0.069 283.185);
  --accent-foreground: oklch(0.265 0.105 275.048);
  --destructive: oklch(0.631 0.252 28.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.064 105.941);
  --chart-1: oklch(0.922 0.064 105.941);
  --chart-2: oklch(0.803 0.069 283.185);
  --chart-3: oklch(0.803 0.069 283.185);
  --chart-4: oklch(0.836 0.057 283.543);
  --chart-5: oklch(0.926 0.067 105.991);
}