Neat for shadcn/ui

Neat is a shadcn/ui theme built around a muted orange primary color (#695e54) with muted blue accents (#545e69). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the muted orange primary (#695e54) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#fdfaf7snow
#070503black
Foreground
#040301black
#faf7f5whitesmoke
Card
#fbf7f3floralwhite
#0b0804black
Card foreground
#000000black
#fbfaf8snow
Popover
#fdfaf7snow
#070503black
Popover foreground
#040301black
#faf7f5whitesmoke
Primary
#695e54dimgray
#695e54dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#545e69dimgray
#545e69dimgray
Secondary foreground
#f7f7f8whitesmoke
#f7f7f8whitesmoke
Muted
#d1d9e0gainsboro
#1f262edarkslategray
Muted foreground
#51575ddimgray
#a2a8aedarkgray
Accent
#545e69dimgray
#545e69dimgray
Accent foreground
#f7f7f8whitesmoke
#f7f7f8whitesmoke
Destructive
#87380dsaddlebrown
#ea661fchocolate
Destructive foreground
#fadcccbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#695e54dimgray
#695e54dimgray

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.76:1AAA
Primary button6.28:1AA
Secondary button6.14:1AA
Muted text5.11:1AA
Accent6.14:1AA
Destructive6.22:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.18:1AAA
Primary button6.28:1AA
Secondary button6.14:1AA
Muted text6.35:1AA
Accent6.14:1AA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 67.77);
  --foreground: oklch(0.095 0.011 76.491);
  --muted: oklch(0.881 0.013 247.98);
  --muted-foreground: oklch(0.452 0.013 248.106);
  --popover: oklch(0.986 0.005 67.77);
  --popover-foreground: oklch(0.095 0.011 76.491);
  --card: oklch(0.979 0.007 67.744);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.49 0.021 67.304);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.478 0.021 248.27);
  --secondary-foreground: oklch(0.977 0.001 247.837);
  --accent: oklch(0.478 0.021 248.27);
  --accent-foreground: oklch(0.977 0.001 247.837);
  --destructive: oklch(0.443 0.121 43.925);
  --destructive-foreground: oklch(0.915 0.04 50.128);
  --ring: oklch(0.49 0.021 67.304);
  --chart-1: oklch(0.49 0.021 67.304);
  --chart-2: oklch(0.478 0.021 248.27);
  --chart-3: oklch(0.478 0.021 248.27);
  --chart-4: oklch(0.505 0.023 248.274);
  --chart-5: oklch(0.492 0.027 67.141);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.01 74.189);
  --foreground: oklch(0.978 0.004 67.779);
  --muted: oklch(0.266 0.018 248.507);
  --muted-foreground: oklch(0.73 0.011 247.98);
  --popover: oklch(0.118 0.01 74.189);
  --popover-foreground: oklch(0.978 0.004 67.779);
  --card: oklch(0.136 0.012 73.968);
  --card-foreground: oklch(0.986 0.003 67.793);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.49 0.021 67.304);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.478 0.021 248.27);
  --secondary-foreground: oklch(0.977 0.001 247.837);
  --accent: oklch(0.478 0.021 248.27);
  --accent-foreground: oklch(0.977 0.001 247.837);
  --destructive: oklch(0.666 0.181 44.016);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.49 0.021 67.304);
  --chart-1: oklch(0.49 0.021 67.304);
  --chart-2: oklch(0.478 0.021 248.27);
  --chart-3: oklch(0.478 0.021 248.27);
  --chart-4: oklch(0.505 0.023 248.274);
  --chart-5: oklch(0.492 0.027 67.141);
}