Scented for shadcn/ui

Scented is a shadcn/ui theme built around a near-white primary color (#fbfaf9) with near-white accents (#f9f9fb). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-white primary (#fbfaf9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#0e0c02black
#faf9f5whitesmoke
Card
#fefdfbsnow
#000000black
Card foreground
#0e0c02black
#faf9f5whitesmoke
Popover
#fefdfbsnow
#000000black
Popover foreground
#0e0c02black
#faf9f5whitesmoke
Primary
#fbfaf9snow
#fbfaf9snow
Primary foreground
#333228darkslategray
#333228darkslategray
Secondary
#f9f9fbghostwhite
#f9f9fbghostwhite
Secondary foreground
#55596ddimgray
#55596ddimgray
Muted
#ebeceflavender
#101014black
Muted foreground
#44454bdarkslategray
#b4b5bbsilver
Accent
#f9f9fbghostwhite
#f9f9fbghostwhite
Accent foreground
#55596ddimgray
#55596ddimgray
Destructive
#8e280bsaddlebrown
#ec4213orangered
Destructive foreground
#fbd9d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbfaf9snow
#fbfaf9snow

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button12.39:1AAA
Secondary button6.59:1AA
Muted text8.07:1AAA
Accent6.59:1AA
Destructive6.51:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button12.39:1AAA
Secondary button6.59:1AA
Muted text9.26:1AAA
Accent6.59:1AA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 97.295);
  --foreground: oklch(0.151 0.026 101.387);
  --muted: oklch(0.943 0.005 277.189);
  --muted-foreground: oklch(0.392 0.01 276.891);
  --popover: oklch(0.995 0.003 97.295);
  --popover-foreground: oklch(0.151 0.026 101.387);
  --card: oklch(0.995 0.003 97.295);
  --card-foreground: oklch(0.151 0.026 101.387);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.986 0.001 97.278);
  --primary-foreground: oklch(0.314 0.016 97.867);
  --secondary: oklch(0.984 0.001 277.24);
  --secondary-foreground: oklch(0.468 0.032 276.225);
  --accent: oklch(0.984 0.001 277.24);
  --accent-foreground: oklch(0.468 0.032 276.225);
  --destructive: oklch(0.433 0.142 35.1);
  --destructive-foreground: oklch(0.912 0.04 35.944);
  --ring: oklch(0.986 0.001 97.278);
  --chart-1: oklch(0.986 0.001 97.278);
  --chart-2: oklch(0.984 0.001 277.24);
  --chart-3: oklch(0.984 0.001 277.24);
  --chart-4: oklch(1.008 0.001 97.268);
  --chart-5: oklch(0.986 0.002 97.283);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.006 97.336);
  --muted: oklch(0.176 0.007 276.639);
  --muted-foreground: oklch(0.775 0.008 277.107);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.006 97.336);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.982 0.006 97.336);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.986 0.001 97.278);
  --primary-foreground: oklch(0.314 0.016 97.867);
  --secondary: oklch(0.984 0.001 277.24);
  --secondary-foreground: oklch(0.468 0.032 276.225);
  --accent: oklch(0.984 0.001 277.24);
  --accent-foreground: oklch(0.468 0.032 276.225);
  --destructive: oklch(0.626 0.213 34.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.986 0.001 97.278);
  --chart-1: oklch(0.986 0.001 97.278);
  --chart-2: oklch(0.984 0.001 277.24);
  --chart-3: oklch(0.984 0.001 277.24);
  --chart-4: oklch(1.008 0.001 97.268);
  --chart-5: oklch(0.986 0.002 97.283);
}