Neat for shadcn/ui

Neat is a shadcn/ui theme built around a yellow primary color (#ebd070) with purple accents (#d070eb). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the yellow primary (#ebd070) on a yellow-tinted background (#0c0a04).

Color palette

TokenLightDark
Background
#fcfbf8snow
#0c0a04black
Foreground
#100d05black
#ffffffwhite
Card
#faf9f5whitesmoke
#100d05black
Card foreground
#0c0a04black
#ffffffwhite
Popover
#faf9f5whitesmoke
#100d05black
Popover foreground
#0c0a04black
#ffffffwhite
Primary
#ebd070burlywood
#ebd070burlywood
Primary foreground
#241d05black
#241d05black
Secondary
#70ebd0aquamarine
#70ebd0aquamarine
Secondary foreground
#05241dblack
#05241dblack
Muted
#e0ebe9lavender
#141f1dblack
Muted foreground
#5a726ddimgray
#8da5a0darkseagreen
Accent
#d070eborchid
#d070eborchid
Accent foreground
#1d0524black
#1d0524black
Destructive
#b6200cfirebrick
#f2432ctomato
Destructive foreground
#fef6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebd070burlywood
#ebd070burlywood

Contrast

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

Light mode
Text on background18.73:1AAA
Text on card18.77:1AAA
Primary button11.00:1AAA
Secondary button11.31:1AAA
Muted text4.23:1AA Large
Accent6.55:1AA
Destructive6.16:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.40:1AAA
Primary button11.00:1AAA
Secondary button11.31:1AAA
Muted text6.46:1AA
Accent6.55:1AA
Destructive3.74: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.988 0.004 93.907);
  --foreground: oklch(0.16 0.019 96.075);
  --muted: oklch(0.931 0.012 181.712);
  --muted-foreground: oklch(0.532 0.03 180.406);
  --popover: oklch(0.981 0.006 93.928);
  --popover-foreground: oklch(0.144 0.017 97.695);
  --card: oklch(0.981 0.006 93.928);
  --card-foreground: oklch(0.144 0.017 97.695);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.861 0.12 94.249);
  --primary-foreground: oklch(0.233 0.04 94.05);
  --secondary: oklch(0.861 0.117 177.16);
  --secondary-foreground: oklch(0.234 0.038 175.762);
  --accent: oklch(0.701 0.195 318.565);
  --accent-foreground: oklch(0.179 0.067 318.427);
  --destructive: oklch(0.501 0.187 30.945);
  --destructive-foreground: oklch(0.98 0.009 26.5);
  --ring: oklch(0.861 0.12 94.249);
  --chart-1: oklch(0.861 0.12 94.249);
  --chart-2: oklch(0.861 0.117 177.16);
  --chart-3: oklch(0.701 0.195 318.565);
  --chart-4: oklch(0.872 0.109 177.764);
  --chart-5: oklch(0.865 0.124 94.197);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 97.695);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.016 179.951);
  --muted-foreground: oklch(0.702 0.028 180.902);
  --popover: oklch(0.16 0.019 96.075);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.019 96.075);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.861 0.12 94.249);
  --primary-foreground: oklch(0.233 0.04 94.05);
  --secondary: oklch(0.861 0.117 177.16);
  --secondary-foreground: oklch(0.234 0.038 175.762);
  --accent: oklch(0.701 0.195 318.565);
  --accent-foreground: oklch(0.179 0.067 318.427);
  --destructive: oklch(0.638 0.214 30.952);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.12 94.249);
  --chart-1: oklch(0.861 0.12 94.249);
  --chart-2: oklch(0.861 0.117 177.16);
  --chart-3: oklch(0.701 0.195 318.565);
  --chart-4: oklch(0.872 0.109 177.764);
  --chart-5: oklch(0.865 0.124 94.197);
}