Neat for shadcn/ui

Neat is a shadcn/ui theme built around a muted red primary color (#9d8589) with muted blue accents (#85899d). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#9d8589) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#110305black
#fbf9f9snow
Card
#fefbfbsnow
#040101black
Card foreground
#110305black
#fbf9f9snow
Popover
#fefbfbsnow
#040101black
Popover foreground
#110305black
#fbf9f9snow
Primary
#9d8589gray
#9d8589gray
Primary foreground
#000000black
#000000black
Secondary
#899d85gray
#899d85gray
Secondary foreground
#000000black
#000000black
Muted
#cfe6cclightgrey
#1d3319darkgreen
Muted foreground
#60685edimgray
#98a197darkgray
Accent
#85899dlightslategray
#85899dlightslategray
Accent foreground
#000000black
#000000black
Destructive
#660d05maroon
#f42310orangered
Destructive foreground
#fbaaa2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9d8589gray
#9d8589gray

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button6.17:1AA
Secondary button7.24:1AAA
Muted text4.34:1AA Large
Accent6.04:1AA
Destructive6.98:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.17:1AA
Secondary button7.24:1AAA
Muted text5.10:1AA
Accent6.04:1AA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 7.828);
  --foreground: oklch(0.13 0.031 10.417);
  --muted: oklch(0.9 0.042 141.459);
  --muted-foreground: oklch(0.508 0.019 141.488);
  --popover: oklch(0.99 0.003 7.828);
  --popover-foreground: oklch(0.13 0.031 10.417);
  --card: oklch(0.99 0.003 7.828);
  --card-foreground: oklch(0.13 0.031 10.417);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.641 0.03 8.875);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.674 0.042 141.416);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.633 0.031 278.542);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.33 0.123 30.345);
  --destructive-foreground: oklch(0.814 0.097 25.134);
  --ring: oklch(0.641 0.03 8.875);
  --chart-1: oklch(0.641 0.03 8.875);
  --chart-2: oklch(0.674 0.042 141.416);
  --chart-3: oklch(0.633 0.031 278.542);
  --chart-4: oklch(0.698 0.039 141.435);
  --chart-5: oklch(0.637 0.038 9.203);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.015 8.749);
  --foreground: oklch(0.983 0.003 7.812);
  --muted: oklch(0.295 0.054 141.129);
  --muted-foreground: oklch(0.698 0.017 141.522);
  --popover: oklch(0.083 0.015 8.749);
  --popover-foreground: oklch(0.983 0.003 7.812);
  --card: oklch(0.083 0.015 8.749);
  --card-foreground: oklch(0.983 0.003 7.812);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.641 0.03 8.875);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.674 0.042 141.416);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.633 0.031 278.542);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.618 0.239 30.088);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.03 8.875);
  --chart-1: oklch(0.641 0.03 8.875);
  --chart-2: oklch(0.674 0.042 141.416);
  --chart-3: oklch(0.633 0.031 278.542);
  --chart-4: oklch(0.698 0.039 141.435);
  --chart-5: oklch(0.637 0.038 9.203);
}