Hash for shadcn/ui

Hash is a shadcn/ui theme built around a vivid light yellow primary color (#f9f8cd) with vivid light green accents (#e4f9cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#f9f8cd) on a yellow-tinted background (#0e0e06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0e06black
Foreground
#111103black
#fdfdfcwhite
Card
#ffffffwhite
#0e0e06black
Card foreground
#111103black
#fdfdfcwhite
Popover
#ffffffwhite
#0e0e06black
Popover foreground
#111103black
#fdfdfcwhite
Primary
#f9f8cdlightgoldenrodyellow
#f9f8cdlightgoldenrodyellow
Primary foreground
#292805black
#292805black
Secondary
#f9e2cdblanchedalmond
#f9e2cdblanchedalmond
Secondary foreground
#291605black
#291605black
Muted
#f6f2efwhitesmoke
#100d09black
Muted foreground
#63615fdimgray
#a09e9cdarkgray
Accent
#e4f9cdlightgoldenrodyellow
#e4f9cdlightgoldenrodyellow
Accent foreground
#182905black
#182905black
Destructive
#65110bmaroon
#d32417firebrick
Destructive foreground
#f6b1aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9f8cdlightgoldenrodyellow
#f9f8cdlightgoldenrodyellow

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button13.84:1AAA
Secondary button13.88:1AAA
Muted text5.54:1AA
Accent13.79:1AAA
Destructive7.19:1AAA
Dark mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button13.84:1AAA
Secondary button13.88:1AAA
Muted text7.26:1AAA
Accent13.79:1AAA
Destructive5.19:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.173 0.028 108.245);
  --muted: oklch(0.963 0.006 65.892);
  --muted-foreground: oklch(0.493 0.004 65.872);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.173 0.028 108.245);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.173 0.028 108.245);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.97 0.056 106.605);
  --primary-foreground: oklch(0.271 0.053 108.503);
  --secondary: oklch(0.926 0.038 65.443);
  --secondary-foreground: oklch(0.223 0.042 62.206);
  --accent: oklch(0.955 0.062 128.58);
  --accent-foreground: oklch(0.257 0.063 131.646);
  --destructive: oklch(0.331 0.118 29.202);
  --destructive-foreground: oklch(0.824 0.081 23.57);
  --ring: oklch(0.97 0.056 106.605);
  --chart-1: oklch(0.97 0.056 106.605);
  --chart-2: oklch(0.926 0.038 65.443);
  --chart-3: oklch(0.955 0.062 128.58);
  --chart-4: oklch(0.946 0.028 65.607);
  --chart-5: oklch(0.972 0.058 106.637);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.017 107.371);
  --foreground: oklch(0.993 0.001 105.636);
  --muted: oklch(0.161 0.01 65.326);
  --muted-foreground: oklch(0.7 0.004 65.906);
  --popover: oklch(0.162 0.017 107.371);
  --popover-foreground: oklch(0.993 0.001 105.636);
  --card: oklch(0.162 0.017 107.371);
  --card-foreground: oklch(0.993 0.001 105.636);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.97 0.056 106.605);
  --primary-foreground: oklch(0.271 0.053 108.503);
  --secondary: oklch(0.926 0.038 65.443);
  --secondary-foreground: oklch(0.223 0.042 62.206);
  --accent: oklch(0.955 0.062 128.58);
  --accent-foreground: oklch(0.257 0.063 131.646);
  --destructive: oklch(0.559 0.21 29.592);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.97 0.056 106.605);
  --chart-1: oklch(0.97 0.056 106.605);
  --chart-2: oklch(0.926 0.038 65.443);
  --chart-3: oklch(0.955 0.062 128.58);
  --chart-4: oklch(0.946 0.028 65.607);
  --chart-5: oklch(0.972 0.058 106.637);
}