hash for shadcn/ui

hash is a shadcn/ui theme built around a light red primary color (#f6c6c5) with light indigo accents (#c6c5f6). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the light red primary (#f6c6c5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f7snow
#000000black
Foreground
#0d0302black
#f9f6f6whitesmoke
Card
#fcf3f3lavenderblush
#030303black
Card foreground
#090202black
#fbf9f9snow
Popover
#fdf7f7snow
#000000black
Popover foreground
#0d0302black
#f9f6f6whitesmoke
Primary
#f6c6c5pink
#f6c6c5pink
Primary foreground
#781412maroon
#781412maroon
Secondary
#c5f6c6lightgrey
#c5f6c6lightgrey
Secondary foreground
#051f05black
#051f05black
Muted
#eaf5eahoneydew
#0a150ablack
Muted foreground
#415341darkslategray
#acbeacdarkgray
Accent
#c6c5f6lightsteelblue
#c6c5f6lightsteelblue
Accent foreground
#141278midnightblue
#141278midnightblue
Destructive
#d63d05orangered
#f95215orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6c6c5pink
#f6c6c5pink

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card18.83:1AAA
Primary button7.25:1AAA
Secondary button14.46:1AAA
Muted text7.39:1AAA
Accent9.19:1AAA
Destructive4.64:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.71:1AAA
Primary button7.25:1AAA
Secondary button14.46:1AAA
Muted text9.54:1AAA
Accent9.19:1AAA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 18.462);
  --foreground: oklch(0.116 0.026 23.651);
  --muted: oklch(0.96 0.018 145.896);
  --muted-foreground: oklch(0.421 0.036 145.324);
  --popover: oklch(0.981 0.006 18.462);
  --popover-foreground: oklch(0.116 0.026 23.651);
  --card: oklch(0.971 0.01 18.516);
  --card-foreground: oklch(0.101 0.022 23.618);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.869 0.055 19.405);
  --primary-foreground: oklch(0.372 0.135 27.473);
  --secondary: oklch(0.928 0.082 145.302);
  --secondary-foreground: oklch(0.211 0.059 143.497);
  --accent: oklch(0.841 0.068 285.601);
  --accent-foreground: oklch(0.285 0.162 270.401);
  --destructive: oklch(0.583 0.197 36.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.055 19.405);
  --chart-1: oklch(0.869 0.055 19.405);
  --chart-2: oklch(0.928 0.082 145.302);
  --chart-3: oklch(0.841 0.068 285.601);
  --chart-4: oklch(0.944 0.063 145.492);
  --chart-5: oklch(0.868 0.058 19.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 18.407);
  --muted: oklch(0.18 0.027 144.728);
  --muted-foreground: oklch(0.783 0.031 145.723);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 18.407);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 18.392);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.869 0.055 19.405);
  --primary-foreground: oklch(0.372 0.135 27.473);
  --secondary: oklch(0.928 0.082 145.302);
  --secondary-foreground: oklch(0.211 0.059 143.497);
  --accent: oklch(0.841 0.068 285.601);
  --accent-foreground: oklch(0.285 0.162 270.401);
  --destructive: oklch(0.664 0.213 37.199);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.055 19.405);
  --chart-1: oklch(0.869 0.055 19.405);
  --chart-2: oklch(0.928 0.082 145.302);
  --chart-3: oklch(0.841 0.068 285.601);
  --chart-4: oklch(0.944 0.063 145.492);
  --chart-5: oklch(0.868 0.058 19.455);
}