Absent Dull Lavender for shadcn/ui

Absent Dull Lavender is a shadcn/ui theme built around a light indigo primary color (#aaa2e7) with light violet accents (#cca2e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#aaa2e7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f9f9fbghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#aaa2e7lightsteelblue
#aaa2e7lightsteelblue
Primary foreground
#181245midnightblue
#181245midnightblue
Secondary
#a2bce7lightsteelblue
#a2bce7lightsteelblue
Secondary foreground
#122545midnightblue
#122545midnightblue
Muted
#eaedf0lavender
#0f1115black
Muted foreground
#3f4246darkslategray
#b9bcc0silver
Accent
#cca2e7plum
#cca2e7plum
Accent foreground
#311245midnightblue
#311245midnightblue
Destructive
#78290dsaddlebrown
#eb6b3dtomato
Destructive foreground
#f8cebepeachpuff
#000000black
Border
#eae9eclavender
#1d1c21black
Input
#eae9eclavender
#1d1c21black
Ring
#aaa2e7lightsteelblue
#aaa2e7lightsteelblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.43:1AAA
Secondary button7.92:1AAA
Muted text8.57:1AAA
Accent7.58:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button7.43:1AAA
Secondary button7.92:1AAA
Muted text9.90:1AAA
Accent7.58:1AAA
Destructive6.70:1AA

CSS variables

Paste this into your globals.css to use Absent Dull Lavender in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.005 259.94);
  --muted-foreground: oklch(0.376 0.008 259.946);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.936 0.004 291.702);
  --input: oklch(0.936 0.004 291.702);
  --primary: oklch(0.744 0.099 289.099);
  --primary-foreground: oklch(0.227 0.092 281.512);
  --secondary: oklch(0.791 0.068 259.837);
  --secondary-foreground: oklch(0.268 0.064 259.487);
  --accent: oklch(0.774 0.106 312.037);
  --accent-foreground: oklch(0.259 0.094 309.692);
  --destructive: oklch(0.396 0.117 38.455);
  --destructive-foreground: oklch(0.883 0.053 40.97);
  --ring: oklch(0.744 0.099 289.099);
  --chart-1: oklch(0.744 0.099 289.099);
  --chart-2: oklch(0.791 0.068 259.837);
  --chart-3: oklch(0.774 0.106 312.037);
  --chart-4: oklch(0.819 0.058 259.874);
  --chart-5: oklch(0.74 0.104 288.933);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.002 291.738);
  --muted: oklch(0.178 0.008 259.929);
  --muted-foreground: oklch(0.794 0.006 259.942);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.002 291.738);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.002 291.738);
  --border: oklch(0.231 0.008 291.102);
  --input: oklch(0.231 0.008 291.102);
  --primary: oklch(0.744 0.099 289.099);
  --primary-foreground: oklch(0.227 0.092 281.512);
  --secondary: oklch(0.791 0.068 259.837);
  --secondary-foreground: oklch(0.268 0.064 259.487);
  --accent: oklch(0.774 0.106 312.037);
  --accent-foreground: oklch(0.259 0.094 309.692);
  --destructive: oklch(0.676 0.169 39.744);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.744 0.099 289.099);
  --chart-1: oklch(0.744 0.099 289.099);
  --chart-2: oklch(0.791 0.068 259.837);
  --chart-3: oklch(0.774 0.106 312.037);
  --chart-4: oklch(0.819 0.058 259.874);
  --chart-5: oklch(0.74 0.104 288.933);
}