Attentive for shadcn/ui

Attentive is a shadcn/ui theme built around a muted indigo primary color (#9695b1) with muted green accents (#95b196). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#9695b1) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#ffffffwhite
#010104black
Foreground
#020209black
#fcfcfdwhite
Card
#fcfcfcsnow
#020208black
Card foreground
#010104black
#ffffffwhite
Popover
#fcfcfcsnow
#020208black
Popover foreground
#010104black
#ffffffwhite
Primary
#9695b1darkgray
#9695b1darkgray
Primary foreground
#09090cblack
#09090cblack
Secondary
#b19695rosybrown
#b19695rosybrown
Secondary foreground
#0c0909black
#0c0909black
Muted
#e8cacathistle
#351817black
Muted foreground
#4f4545darkslategray
#bab0b0darkgray
Accent
#95b196darkseagreen
#95b196darkseagreen
Accent foreground
#090c09black
#090c09black
Destructive
#b92f13firebrick
#e84321orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9695b1darkgray
#9695b1darkgray

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.39:1AAA
Primary button6.87:1AA
Secondary button7.23:1AAA
Muted text6.05:1AA
Accent8.43:1AAA
Destructive6.05:1AA
Dark mode
Text on background20.31:1AAA
Text on card20.65:1AAA
Primary button6.87:1AA
Secondary button7.23:1AAA
Muted text7.66:1AAA
Accent8.43:1AAA
Destructive4.01: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.089 0.027 280.805);
  --muted: oklch(0.865 0.033 18.972);
  --muted-foreground: oklch(0.4 0.014 18.912);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.071 0.021 280.805);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.071 0.021 280.805);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.681 0.04 286.043);
  --primary-foreground: oklch(0.14 0.007 286.306);
  --secondary: oklch(0.697 0.032 19.11);
  --secondary-foreground: oklch(0.142 0.005 19.047);
  --accent: oklch(0.732 0.049 145.49);
  --accent-foreground: oklch(0.148 0.008 145.617);
  --destructive: oklch(0.518 0.178 32.881);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.04 286.043);
  --chart-1: oklch(0.681 0.04 286.043);
  --chart-2: oklch(0.697 0.032 19.11);
  --chart-3: oklch(0.732 0.049 145.49);
  --chart-4: oklch(0.723 0.029 19.01);
  --chart-5: oklch(0.674 0.048 285.786);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.076 0.017 282.831);
  --foreground: oklch(0.991 0.002 287.14);
  --muted: oklch(0.251 0.047 22.004);
  --muted-foreground: oklch(0.766 0.012 18.597);
  --popover: oklch(0.095 0.021 282.831);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.095 0.021 282.831);
  --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.681 0.04 286.043);
  --primary-foreground: oklch(0.14 0.007 286.306);
  --secondary: oklch(0.697 0.032 19.11);
  --secondary-foreground: oklch(0.142 0.005 19.047);
  --accent: oklch(0.732 0.049 145.49);
  --accent-foreground: oklch(0.148 0.008 145.617);
  --destructive: oklch(0.62 0.207 33.034);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.04 286.043);
  --chart-1: oklch(0.681 0.04 286.043);
  --chart-2: oklch(0.697 0.032 19.11);
  --chart-3: oklch(0.732 0.049 145.49);
  --chart-4: oklch(0.723 0.029 19.01);
  --chart-5: oklch(0.674 0.048 285.786);
}