Neat for shadcn/ui

Neat is a shadcn/ui theme built around a pink primary color (#df9ab8) with teal accents (#9adfc1). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#df9ab8) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fefbfcsnow
#070305black
Foreground
#080205black
#f9f5f7whitesmoke
Card
#fdf7f9snow
#0b0507black
Card foreground
#040102black
#fbf9fasnow
Popover
#fdf7f9snow
#0b0507black
Popover foreground
#040102black
#fbf9fasnow
Primary
#df9ab8plum
#df9ab8plum
Primary foreground
#361121black
#361121black
Secondary
#9adfc1lightblue
#9adfc1lightblue
Secondary foreground
#113626darkslategray
#113626darkslategray
Muted
#f0f4f3whitesmoke
#0b0f0dblack
Muted foreground
#5e6461dimgray
#9ba19edarkgray
Accent
#9adfc1lightblue
#9adfc1lightblue
Accent foreground
#113626darkslategray
#113626darkslategray
Destructive
#d21204firebrick
#eb1405red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df9ab8plum
#df9ab8plum

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.62:1AAA
Primary button7.52:1AAA
Secondary button8.68:1AAA
Muted text5.46:1AA
Accent8.68:1AAA
Destructive5.48:1AA
Dark mode
Text on background18.96:1AAA
Text on card19.31:1AAA
Primary button7.52:1AAA
Secondary button8.68:1AAA
Muted text7.34:1AAA
Accent8.68:1AAA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 348.838);
  --foreground: oklch(0.105 0.022 348.361);
  --muted: oklch(0.965 0.005 168.582);
  --muted-foreground: oklch(0.497 0.008 168.263);
  --popover: oklch(0.981 0.008 348.945);
  --popover-foreground: oklch(0.083 0.017 348.361);
  --card: oklch(0.981 0.008 348.945);
  --card-foreground: oklch(0.083 0.017 348.361);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.763 0.09 351.817);
  --primary-foreground: oklch(0.244 0.063 355.727);
  --secondary: oklch(0.85 0.081 165.689);
  --secondary-foreground: oklch(0.302 0.052 162.104);
  --accent: oklch(0.85 0.081 165.689);
  --accent-foreground: oklch(0.302 0.052 162.104);
  --destructive: oklch(0.547 0.218 29.813);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.763 0.09 351.817);
  --chart-1: oklch(0.763 0.09 351.817);
  --chart-2: oklch(0.85 0.081 165.689);
  --chart-3: oklch(0.85 0.081 165.689);
  --chart-4: oklch(0.867 0.072 166.137);
  --chart-5: oklch(0.761 0.096 351.998);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.013 348.512);
  --foreground: oklch(0.975 0.005 348.865);
  --muted: oklch(0.162 0.008 167.282);
  --muted-foreground: oklch(0.704 0.008 168.43);
  --popover: oklch(0.125 0.015 348.546);
  --popover-foreground: oklch(0.983 0.003 348.82);
  --card: oklch(0.125 0.015 348.546);
  --card-foreground: oklch(0.983 0.003 348.82);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.763 0.09 351.817);
  --primary-foreground: oklch(0.244 0.063 355.727);
  --secondary: oklch(0.85 0.081 165.689);
  --secondary-foreground: oklch(0.302 0.052 162.104);
  --accent: oklch(0.85 0.081 165.689);
  --accent-foreground: oklch(0.302 0.052 162.104);
  --destructive: oklch(0.595 0.238 29.772);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.763 0.09 351.817);
  --chart-1: oklch(0.763 0.09 351.817);
  --chart-2: oklch(0.85 0.081 165.689);
  --chart-3: oklch(0.85 0.081 165.689);
  --chart-4: oklch(0.867 0.072 166.137);
  --chart-5: oklch(0.761 0.096 351.998);
}