Salty for shadcn/ui

Salty is a shadcn/ui theme built around an orange primary color (#aa471d) with muted light orange accents (#d8d2d0). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the orange primary (#aa471d) on a neutral background (#080402).

Color palette

TokenLightDark
Background
#fcf9f8snow
#080402black
Foreground
#0d0603black
#fdfcfbsnow
Card
#fcf9f8snow
#080402black
Card foreground
#0d0603black
#fdfcfbsnow
Popover
#fcf9f8snow
#080402black
Popover foreground
#0d0603black
#fdfcfbsnow
Primary
#aa471dsienna
#aa471dsienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e8e8e8lavender
#1a1919black
Secondary foreground
#504f4edarkslategray
#b4b2b1darkgray
Muted
#ece3dfgainsboro
#201713black
Muted foreground
#554d4adarkslategray
#b5aeaadarkgray
Accent
#d8d2d0lightgrey
#322c29darkslategray
Accent foreground
#403935darkslategray
#cdc5c1silver
Destructive
#c24400chocolate
#ff6d1ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aa471dsienna
#aa471dsienna

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button5.77:1AA
Secondary button6.67:1AA
Muted text6.51:1AA
Accent7.57:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button5.77:1AA
Secondary button8.28:1AAA
Muted text8.05:1AAA
Accent8.06:1AAA
Destructive7.46:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 44.943);
  --foreground: oklch(0.13 0.017 53.801);
  --muted: oklch(0.922 0.012 44.851);
  --muted-foreground: oklch(0.426 0.012 44.721);
  --popover: oklch(0.984 0.004 44.943);
  --popover-foreground: oklch(0.13 0.017 53.801);
  --card: oklch(0.984 0.004 44.943);
  --card-foreground: oklch(0.13 0.017 53.801);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.523 0.141 41.328);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.931 0 44.978);
  --secondary-foreground: oklch(0.428 0.002 44.942);
  --accent: oklch(0.868 0.007 44.901);
  --accent-foreground: oklch(0.349 0.012 44.67);
  --destructive: oklch(0.556 0.173 40.575);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.523 0.141 41.328);
  --chart-1: oklch(0.523 0.141 41.328);
  --chart-2: oklch(0.931 0 44.978);
  --chart-3: oklch(0.868 0.007 44.901);
  --chart-4: oklch(0.954 0 44.98);
  --chart-5: oklch(0.526 0.146 40.972);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.012 52.429);
  --foreground: oklch(0.992 0.002 44.965);
  --muted: oklch(0.214 0.018 44.328);
  --muted-foreground: oklch(0.755 0.01 44.848);
  --popover: oklch(0.114 0.012 52.429);
  --popover-foreground: oklch(0.992 0.002 44.965);
  --card: oklch(0.114 0.012 52.429);
  --card-foreground: oklch(0.992 0.002 44.965);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.523 0.141 41.328);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.215 0.001 44.921);
  --secondary-foreground: oklch(0.765 0.003 44.945);
  --accent: oklch(0.299 0.011 44.655);
  --accent-foreground: oklch(0.828 0.01 44.86);
  --destructive: oklch(0.706 0.195 43.584);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.523 0.141 41.328);
  --chart-1: oklch(0.523 0.141 41.328);
  --chart-2: oklch(0.215 0.001 44.921);
  --chart-3: oklch(0.299 0.011 44.655);
  --chart-4: oklch(0.248 0.002 44.916);
  --chart-5: oklch(0.526 0.146 40.972);
}