Sort for shadcn/ui

Sort is a shadcn/ui theme built around a muted red primary color (#7a5a52) with muted indigo accents (#5a527a). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted red primary (#7a5a52) on a neutral background (#070404).

Color palette

TokenLightDark
Background
#fcf9f8snow
#070404black
Foreground
#140906black
#f8f7f6whitesmoke
Card
#fbf5f4whitesmoke
#0a0605black
Card foreground
#100704black
#fbfaf9snow
Popover
#fbf5f4whitesmoke
#0a0605black
Popover foreground
#100704black
#fbfaf9snow
Primary
#7a5a52dimgray
#7a5a52dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#527a5adimgray
#527a5adimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebf4edhoneydew
#0b140dblack
Muted foreground
#57755ddimgray
#8aa890darkseagreen
Accent
#5a527adimgray
#5a527adimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d2301firebrick
#fe400borangered
Destructive foreground
#ffdbd1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a5a52dimgray
#7a5a52dimgray

Contrast

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

Light mode
Text on background18.66:1AAA
Text on card18.50:1AAA
Primary button6.12:1AA
Secondary button4.87:1AA
Muted text4.55:1AA
Accent7.19:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.32:1AAA
Primary button6.12:1AA
Secondary button4.87:1AA
Muted text7.23:1AAA
Accent7.19:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 35.998);
  --foreground: oklch(0.154 0.022 39.404);
  --muted: oklch(0.959 0.013 152.401);
  --muted-foreground: oklch(0.532 0.051 150.983);
  --popover: oklch(0.975 0.006 35.991);
  --popover-foreground: oklch(0.141 0.019 41.223);
  --card: oklch(0.975 0.006 35.991);
  --card-foreground: oklch(0.141 0.019 41.223);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.5 0.045 36.021);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.541 0.068 150.442);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.463 0.066 293.602);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.456 0.163 34.147);
  --destructive-foreground: oklch(0.919 0.042 35.945);
  --ring: oklch(0.5 0.045 36.021);
  --chart-1: oklch(0.5 0.045 36.021);
  --chart-2: oklch(0.541 0.068 150.442);
  --chart-3: oklch(0.463 0.066 293.602);
  --chart-4: oklch(0.57 0.072 150.424);
  --chart-5: oklch(0.499 0.052 36.064);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.007 39.381);
  --foreground: oklch(0.977 0.002 36.006);
  --muted: oklch(0.178 0.02 150.743);
  --muted-foreground: oklch(0.703 0.048 151.482);
  --popover: oklch(0.129 0.008 39.381);
  --popover-foreground: oklch(0.984 0.001 36.008);
  --card: oklch(0.129 0.008 39.381);
  --card-foreground: oklch(0.984 0.001 36.008);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.5 0.045 36.021);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.541 0.068 150.442);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.463 0.066 293.602);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.654 0.231 33.943);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.5 0.045 36.021);
  --chart-1: oklch(0.5 0.045 36.021);
  --chart-2: oklch(0.541 0.068 150.442);
  --chart-3: oklch(0.463 0.066 293.602);
  --chart-4: oklch(0.57 0.072 150.424);
  --chart-5: oklch(0.499 0.052 36.064);
}