Attentive for shadcn/ui

Attentive is a shadcn/ui theme built around a vivid deep purple primary color (#49015b) with vivid deep purple accents (#5b0140). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#49015b) on a purple-tinted background (#09050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#09050ablack
Foreground
#040105black
#ffffffwhite
Card
#ffffffwhite
#09050ablack
Card foreground
#040105black
#ffffffwhite
Popover
#ffffffwhite
#09050ablack
Popover foreground
#040105black
#ffffffwhite
Primary
#49015bindigo
#49015bindigo
Primary foreground
#e890feviolet
#e890feviolet
Secondary
#1c015bmidnightblue
#1c015bmidnightblue
Secondary foreground
#b190femediumpurple
#b190femediumpurple
Muted
#e1dee8gainsboro
#1a1721black
Muted foreground
#55515cdimgray
#a6a3aedarkgray
Accent
#5b0140indigo
#5b0140indigo
Accent foreground
#fe90ddviolet
#fe90ddviolet
Destructive
#621a04maroon
#e13c09orangered
Destructive foreground
#fbb39dlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#49015bindigo
#49015bindigo

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button6.85:1AA
Secondary button6.88:1AA
Muted text5.81:1AA
Accent6.73:1AA
Destructive7.21:1AAA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.85:1AA
Secondary button6.88:1AA
Muted text7.12:1AAA
Accent6.73:1AA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.08 0.028 322.226);
  --muted: oklch(0.906 0.014 299.778);
  --muted-foreground: oklch(0.443 0.017 299.382);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.08 0.028 322.226);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.08 0.028 322.226);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.299 0.144 317.562);
  --primary-foreground: oklch(0.782 0.175 319.397);
  --secondary: oklch(0.235 0.138 282.484);
  --secondary-foreground: oklch(0.728 0.158 296.082);
  --accent: oklch(0.314 0.132 345.302);
  --accent-foreground: oklch(0.794 0.161 339.387);
  --destructive: oklch(0.334 0.108 36.342);
  --destructive-foreground: oklch(0.829 0.09 37.628);
  --ring: oklch(0.299 0.144 317.562);
  --chart-1: oklch(0.299 0.144 317.562);
  --chart-2: oklch(0.235 0.138 282.484);
  --chart-3: oklch(0.314 0.132 345.302);
  --chart-4: oklch(0.26 0.154 281.507);
  --chart-5: oklch(0.301 0.147 317.456);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.015 320.458);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.213 0.02 298.424);
  --muted-foreground: oklch(0.722 0.015 299.682);
  --popover: oklch(0.127 0.015 320.458);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.015 320.458);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.299 0.144 317.562);
  --primary-foreground: oklch(0.782 0.175 319.397);
  --secondary: oklch(0.235 0.138 282.484);
  --secondary-foreground: oklch(0.728 0.158 296.082);
  --accent: oklch(0.314 0.132 345.302);
  --accent-foreground: oklch(0.794 0.161 339.387);
  --destructive: oklch(0.601 0.208 34.717);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.144 317.562);
  --chart-1: oklch(0.299 0.144 317.562);
  --chart-2: oklch(0.235 0.138 282.484);
  --chart-3: oklch(0.314 0.132 345.302);
  --chart-4: oklch(0.26 0.154 281.507);
  --chart-5: oklch(0.301 0.147 317.456);
}