Competent Aconite Purple for shadcn/ui

Competent Aconite Purple is a shadcn/ui theme built around an indigo primary color (#714fe3) with violet accents (#bc4fe3). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#714fe3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030109black
#f6f4fawhitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#030109black
#f6f4fawhitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#030109black
#f6f4fawhitesmoke
Primary
#714fe3slateblue
#714fe3slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4f76e3royalblue
#4f76e3royalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebeceflavender
#101114black
Muted foreground
#494c55darkslategray
#aaadb6darkgray
Accent
#bc4fe3mediumorchid
#bc4fe3mediumorchid
Accent foreground
#000000black
#000000black
Destructive
#c62a15firebrick
#e83921orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#efeff1whitesmoke
#232226black
Input
#efeff1whitesmoke
#232226black
Ring
#714fe3slateblue
#714fe3slateblue

Contrast

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

Light mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button5.34:1AA
Secondary button4.16:1AA Large
Muted text7.26:1AAA
Accent5.35:1AA
Destructive5.60:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button5.34:1AA
Secondary button4.16:1AA Large
Muted text8.42:1AAA
Accent5.35:1AA
Destructive4.18:1AA Large

CSS variables

Paste this into your globals.css to use Competent Aconite Purple in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.09 0.03 296.178);
  --muted: oklch(0.944 0.004 270.083);
  --muted-foreground: oklch(0.417 0.016 269.765);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.09 0.03 296.178);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.09 0.03 296.178);
  --border: oklch(0.952 0.002 297.032);
  --input: oklch(0.952 0.002 297.032);
  --primary: oklch(0.549 0.214 287.937);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.172 266.256);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.63 0.227 315.727);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.539 0.195 31.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.549 0.214 287.937);
  --chart-1: oklch(0.549 0.214 287.937);
  --chart-2: oklch(0.594 0.172 266.256);
  --chart-3: oklch(0.63 0.227 315.727);
  --chart-4: oklch(0.623 0.158 266.797);
  --chart-5: oklch(0.545 0.221 287.377);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.971 0.008 296.93);
  --muted: oklch(0.177 0.007 269.77);
  --muted-foreground: oklch(0.748 0.014 269.962);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.971 0.008 296.93);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.971 0.008 296.93);
  --border: oklch(0.253 0.008 296.502);
  --input: oklch(0.253 0.008 296.502);
  --primary: oklch(0.549 0.214 287.937);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.172 266.256);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.63 0.227 315.727);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.611 0.214 31.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.549 0.214 287.937);
  --chart-1: oklch(0.549 0.214 287.937);
  --chart-2: oklch(0.594 0.172 266.256);
  --chart-3: oklch(0.63 0.227 315.727);
  --chart-4: oklch(0.623 0.158 266.797);
  --chart-5: oklch(0.545 0.221 287.377);
}