Attractive for shadcn/ui

Attractive is a shadcn/ui theme built around a muted red primary color (#d0b2af) with muted cyan accents (#afcdd0). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted red primary (#d0b2af) on a red-tinted background (#0b0504).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0b0504black
Foreground
#040101black
#faf5f5whitesmoke
Card
#fcf8f8snow
#0b0504black
Card foreground
#040101black
#faf5f5whitesmoke
Popover
#fcf8f8snow
#0b0504black
Popover foreground
#040101black
#faf5f5whitesmoke
Primary
#d0b2afsilver
#d0b2afsilver
Primary foreground
#301e1cblack
#301e1cblack
Secondary
#afcdd0lightsteelblue
#afcdd0lightsteelblue
Secondary foreground
#1c2e30darkslategray
#1c2e30darkslategray
Muted
#e0eaeblavender
#141e1fblack
Muted foreground
#5f6767dimgray
#989fa0darkgray
Accent
#afcdd0lightsteelblue
#afcdd0lightsteelblue
Accent foreground
#1c2e30darkslategray
#1c2e30darkslategray
Destructive
#b72c06firebrick
#f23a07orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0b2afsilver
#d0b2afsilver

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button8.02:1AAA
Secondary button8.36:1AAA
Muted text4.73:1AA
Accent8.36:1AAA
Destructive6.21:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button8.02:1AAA
Secondary button8.36:1AAA
Muted text6.30:1AA
Accent8.36:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 25.018);
  --foreground: oklch(0.085 0.012 29.67);
  --muted: oklch(0.93 0.011 204.9);
  --muted-foreground: oklch(0.507 0.009 204.864);
  --popover: oklch(0.983 0.003 25.018);
  --popover-foreground: oklch(0.085 0.012 29.67);
  --card: oklch(0.983 0.003 25.018);
  --card-foreground: oklch(0.085 0.012 29.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.788 0.035 25.413);
  --primary-foreground: oklch(0.258 0.029 26.263);
  --secondary: oklch(0.826 0.032 204.75);
  --secondary-foreground: oklch(0.287 0.024 204.703);
  --accent: oklch(0.826 0.032 204.75);
  --accent-foreground: oklch(0.287 0.024 204.703);
  --destructive: oklch(0.512 0.18 34.099);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.035 25.413);
  --chart-1: oklch(0.788 0.035 25.413);
  --chart-2: oklch(0.826 0.032 204.75);
  --chart-3: oklch(0.826 0.032 204.75);
  --chart-4: oklch(0.847 0.028 204.775);
  --chart-5: oklch(0.787 0.039 25.473);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 28.906);
  --foreground: oklch(0.975 0.005 25.028);
  --muted: oklch(0.226 0.015 204.685);
  --muted-foreground: oklch(0.696 0.008 204.902);
  --popover: oklch(0.124 0.015 28.906);
  --popover-foreground: oklch(0.975 0.005 25.028);
  --card: oklch(0.124 0.015 28.906);
  --card-foreground: oklch(0.975 0.005 25.028);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.788 0.035 25.413);
  --primary-foreground: oklch(0.258 0.029 26.263);
  --secondary: oklch(0.826 0.032 204.75);
  --secondary-foreground: oklch(0.287 0.024 204.703);
  --accent: oklch(0.826 0.032 204.75);
  --accent-foreground: oklch(0.287 0.024 204.703);
  --destructive: oklch(0.63 0.225 33.73);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.035 25.413);
  --chart-1: oklch(0.788 0.035 25.413);
  --chart-2: oklch(0.826 0.032 204.75);
  --chart-3: oklch(0.826 0.032 204.75);
  --chart-4: oklch(0.847 0.028 204.775);
  --chart-5: oklch(0.787 0.039 25.473);
}