Neat for shadcn/ui

Neat is a shadcn/ui theme built around a blue primary color (#205a7e) with orange accents (#7e4420). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#205a7e) on a blue-tinted background (#04090c).

Color palette

TokenLightDark
Background
#ffffffwhite
#04090cblack
Foreground
#010609black
#f6f8f8whitesmoke
Card
#fcfcfcsnow
#050b0fblack
Card foreground
#010305black
#f9fafbghostwhite
Popover
#fcfcfcsnow
#050b0fblack
Popover foreground
#010305black
#f9fafbghostwhite
Primary
#205a7eteal
#205a7eteal
Primary foreground
#daebf6lavender
#daebf6lavender
Secondary
#7e4420saddlebrown
#7e4420saddlebrown
Secondary foreground
#f6e5daantiquewhite
#f6e5daantiquewhite
Muted
#eae5e1gainsboro
#1e1915black
Muted foreground
#51453ddarkslategray
#c2b5aesilver
Accent
#7e4420saddlebrown
#7e4420saddlebrown
Accent foreground
#f6e5daantiquewhite
#f6e5daantiquewhite
Destructive
#c2230afirebrick
#da270bfirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#205a7eteal
#205a7eteal

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.21:1AAA
Primary button6.07:1AA
Secondary button6.25:1AA
Muted text7.37:1AAA
Accent6.25:1AA
Destructive5.94:1AA
Dark mode
Text on background18.81:1AAA
Text on card18.89:1AAA
Primary button6.07:1AA
Secondary button6.25:1AA
Muted text8.75:1AAA
Accent6.25:1AA
Destructive4.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.115 0.016 225.464);
  --muted: oklch(0.924 0.007 54.402);
  --muted-foreground: oklch(0.401 0.021 53.801);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.092 0.013 225.464);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.092 0.013 225.464);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.448 0.084 240.024);
  --primary-foreground: oklch(0.931 0.023 234.874);
  --secondary: oklch(0.451 0.094 50.109);
  --secondary-foreground: oklch(0.932 0.023 54.165);
  --accent: oklch(0.451 0.094 50.109);
  --accent-foreground: oklch(0.932 0.023 54.165);
  --destructive: oklch(0.525 0.196 31.338);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.448 0.084 240.024);
  --chart-1: oklch(0.448 0.084 240.024);
  --chart-2: oklch(0.451 0.094 50.109);
  --chart-3: oklch(0.451 0.094 50.109);
  --chart-4: oklch(0.482 0.102 50.005);
  --chart-5: oklch(0.45 0.088 240.446);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.012 228.793);
  --foreground: oklch(0.977 0.002 234.529);
  --muted: oklch(0.216 0.01 53.883);
  --muted-foreground: oklch(0.782 0.018 54.197);
  --popover: oklch(0.146 0.014 232.493);
  --popover-foreground: oklch(0.985 0.001 234.521);
  --card: oklch(0.146 0.014 232.493);
  --card-foreground: oklch(0.985 0.001 234.521);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.448 0.084 240.024);
  --primary-foreground: oklch(0.931 0.023 234.874);
  --secondary: oklch(0.451 0.094 50.109);
  --secondary-foreground: oklch(0.932 0.023 54.165);
  --accent: oklch(0.451 0.094 50.109);
  --accent-foreground: oklch(0.932 0.023 54.165);
  --destructive: oklch(0.573 0.215 31.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.448 0.084 240.024);
  --chart-1: oklch(0.448 0.084 240.024);
  --chart-2: oklch(0.451 0.094 50.109);
  --chart-3: oklch(0.451 0.094 50.109);
  --chart-4: oklch(0.482 0.102 50.005);
  --chart-5: oklch(0.45 0.088 240.446);
}