Scented for shadcn/ui

Scented is a shadcn/ui theme built around a vivid deep purple primary color (#160217) with vivid deep teal accents (#021716). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid deep purple primary (#160217) on a purple-tinted background (#0b030c).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#0b030cblack
Foreground
#0f0510black
#faf9fbghostwhite
Card
#fbf8fcghostwhite
#0b030cblack
Card foreground
#0f0510black
#faf9fbghostwhite
Popover
#fbf8fcghostwhite
#0b030cblack
Popover foreground
#0f0510black
#faf9fbghostwhite
Primary
#160217black
#160217black
Primary foreground
#e65cf0orchid
#e65cf0orchid
Secondary
#171602black
#171602black
Secondary foreground
#d2c514goldenrod
#d2c514goldenrod
Muted
#f2f1e8linen
#17160dblack
Muted foreground
#5c5b51dimgray
#aeada3darkgray
Accent
#021716black
#021716black
Accent foreground
#14d2c5darkturquoise
#14d2c5darkturquoise
Destructive
#bc1b06firebrick
#f94f39tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#160217black
#160217black

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button6.77:1AA
Secondary button10.18:1AAA
Muted text6.05:1AA
Accent9.70:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.77:1AA
Secondary button10.18:1AAA
Muted text8.03:1AAA
Accent9.70:1AAA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 323.667);
  --foreground: oklch(0.138 0.031 324.897);
  --muted: oklch(0.958 0.012 103.321);
  --muted-foreground: oklch(0.47 0.015 103.635);
  --popover: oklch(0.983 0.006 323.667);
  --popover-foreground: oklch(0.138 0.031 324.897);
  --card: oklch(0.983 0.006 323.667);
  --card-foreground: oklch(0.138 0.031 324.897);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.148 0.057 325.49);
  --primary-foreground: oklch(0.705 0.24 325.006);
  --secondary: oklch(0.196 0.037 105.857);
  --secondary-foreground: oklch(0.809 0.168 104.784);
  --accent: oklch(0.188 0.029 189.319);
  --accent-foreground: oklch(0.779 0.134 187.036);
  --destructive: oklch(0.509 0.195 30.821);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.148 0.057 325.49);
  --chart-1: oklch(0.148 0.057 325.49);
  --chart-2: oklch(0.196 0.037 105.857);
  --chart-3: oklch(0.188 0.029 189.319);
  --chart-4: oklch(0.251 0.049 105.448);
  --chart-5: oklch(0.148 0.059 325.554);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.028 325.156);
  --foreground: oklch(0.984 0.002 323.646);
  --muted: oklch(0.199 0.018 104.441);
  --muted-foreground: oklch(0.745 0.014 103.41);
  --popover: oklch(0.124 0.028 325.156);
  --popover-foreground: oklch(0.984 0.002 323.646);
  --card: oklch(0.124 0.028 325.156);
  --card-foreground: oklch(0.984 0.002 323.646);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.148 0.057 325.49);
  --primary-foreground: oklch(0.705 0.24 325.006);
  --secondary: oklch(0.196 0.037 105.857);
  --secondary-foreground: oklch(0.809 0.168 104.784);
  --accent: oklch(0.188 0.029 189.319);
  --accent-foreground: oklch(0.779 0.134 187.036);
  --destructive: oklch(0.663 0.209 30.743);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.148 0.057 325.49);
  --chart-1: oklch(0.148 0.057 325.49);
  --chart-2: oklch(0.196 0.037 105.857);
  --chart-3: oklch(0.188 0.029 189.319);
  --chart-4: oklch(0.251 0.049 105.448);
  --chart-5: oklch(0.148 0.059 325.554);
}