Velvety for shadcn/ui

Velvety is a shadcn/ui theme built around an orange primary color (#b69049) with muted orange accents (#cac3b4). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the orange primary (#b69049) on a neutral background (#040302).

Color palette

TokenLightDark
Background
#fcfbf8snow
#040302black
Foreground
#110c04black
#f8f8f7whitesmoke
Card
#fbf8f4floralwhite
#070603black
Card foreground
#0d0903black
#fafaf9snow
Popover
#fbf8f4floralwhite
#070603black
Popover foreground
#0d0903black
#fafaf9snow
Primary
#b69049peru
#b69049peru
Primary foreground
#000000black
#000000black
Secondary
#d2d0cblightgrey
#222220black
Secondary foreground
#3a3731darkslategray
#bdbbb7silver
Muted
#e5ded2gainsboro
#2d271ablack
Muted foreground
#665d4ddimgray
#b2a999darkgray
Accent
#cac3b4silver
#3e3a32darkslategray
Accent foreground
#2d2820darkslategray
#d6d3cclightgrey
Destructive
#b50903firebrick
#f10c04red
Destructive foreground
#ffeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b69049peru
#b69049peru

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.79:1AAA
Primary button7.07:1AAA
Secondary button7.68:1AAA
Muted text4.85:1AA
Accent8.31:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.42:1AAA
Primary button7.07:1AAA
Secondary button8.33:1AAA
Muted text6.38:1AA
Accent7.56:1AAA
Destructive4.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 83.059);
  --foreground: oklch(0.158 0.021 86.247);
  --muted: oklch(0.903 0.018 83.064);
  --muted-foreground: oklch(0.482 0.027 82.958);
  --popover: oklch(0.981 0.007 83.061);
  --popover-foreground: oklch(0.142 0.019 89.252);
  --card: oklch(0.981 0.007 83.061);
  --card-foreground: oklch(0.142 0.019 89.252);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.675 0.101 81.108);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.857 0.008 83.063);
  --secondary-foreground: oklch(0.337 0.01 83.052);
  --accent: oklch(0.818 0.021 83.059);
  --accent-foreground: oklch(0.28 0.016 82.949);
  --destructive: oklch(0.488 0.197 29.479);
  --destructive-foreground: oklch(0.957 0.021 19.918);
  --ring: oklch(0.675 0.101 81.108);
  --chart-1: oklch(0.675 0.101 81.108);
  --chart-2: oklch(0.857 0.008 83.063);
  --chart-3: oklch(0.818 0.021 83.059);
  --chart-4: oklch(0.88 0.006 83.062);
  --chart-5: oklch(0.681 0.106 80.777);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.008 87.516);
  --foreground: oklch(0.978 0.001 83.055);
  --muted: oklch(0.275 0.024 82.695);
  --muted-foreground: oklch(0.739 0.025 83.046);
  --popover: oklch(0.121 0.01 87.516);
  --popover-foreground: oklch(0.985 0.001 83.055);
  --card: oklch(0.121 0.01 87.516);
  --card-foreground: oklch(0.985 0.001 83.055);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.675 0.101 81.108);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.25 0.003 83.065);
  --secondary-foreground: oklch(0.793 0.005 83.061);
  --accent: oklch(0.35 0.015 83.023);
  --accent-foreground: oklch(0.867 0.01 83.064);
  --destructive: oklch(0.604 0.245 29.407);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.675 0.101 81.108);
  --chart-1: oklch(0.675 0.101 81.108);
  --chart-2: oklch(0.25 0.003 83.065);
  --chart-3: oklch(0.35 0.015 83.023);
  --chart-4: oklch(0.283 0.004 83.065);
  --chart-5: oklch(0.681 0.106 80.777);
}