Aching for shadcn/ui

Aching is a shadcn/ui theme built around a muted deep violet primary color (#201a23) with muted deep purple accents (#231a22). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted deep violet primary (#201a23) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#000000black
Foreground
#09020dblack
#ffffffwhite
Card
#fbf7fdghostwhite
#000000black
Card foreground
#09020dblack
#ffffffwhite
Popover
#fbf7fdghostwhite
#000000black
Popover foreground
#09020dblack
#ffffffwhite
Primary
#201a23black
#201a23black
Primary foreground
#baaec2silver
#baaec2silver
Secondary
#1b1a23black
#1b1a23black
Secondary foreground
#b0aec2silver
#b0aec2silver
Muted
#e9e9eclavender
#131316black
Muted foreground
#505053darkslategray
#acacafdarkgray
Accent
#231a22black
#231a22black
Accent foreground
#c2aebfsilver
#c2aebfsilver
Destructive
#bd3e0ffirebrick
#d44511chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#201a23black
#201a23black

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button8.03:1AAA
Secondary button7.91:1AAA
Muted text6.63:1AA
Accent8.11:1AAA
Destructive5.46:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.03:1AAA
Secondary button7.91:1AAA
Muted text8.19:1AAA
Accent8.11:1AAA
Destructive4.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 312.932);
  --foreground: oklch(0.114 0.036 314.943);
  --muted: oklch(0.935 0.004 291.691);
  --muted-foreground: oklch(0.433 0.005 291.547);
  --popover: oklch(0.981 0.008 312.932);
  --popover-foreground: oklch(0.114 0.036 314.943);
  --card: oklch(0.981 0.008 312.932);
  --card-foreground: oklch(0.114 0.036 314.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.229 0.018 312.452);
  --primary-foreground: oklch(0.766 0.031 312.709);
  --secondary: oklch(0.224 0.017 290.343);
  --secondary-foreground: oklch(0.758 0.028 291.063);
  --accent: oklch(0.233 0.019 330.059);
  --accent-foreground: oklch(0.772 0.033 329.626);
  --destructive: oklch(0.541 0.171 37.428);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.018 312.452);
  --chart-1: oklch(0.229 0.018 312.452);
  --chart-2: oklch(0.224 0.017 290.343);
  --chart-3: oklch(0.233 0.019 330.059);
  --chart-4: oklch(0.253 0.02 290.234);
  --chart-5: oklch(0.227 0.022 312.331);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.007 291.111);
  --muted-foreground: oklch(0.745 0.005 291.662);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.229 0.018 312.452);
  --primary-foreground: oklch(0.766 0.031 312.709);
  --secondary: oklch(0.224 0.017 290.343);
  --secondary-foreground: oklch(0.758 0.028 291.063);
  --accent: oklch(0.233 0.019 330.059);
  --accent-foreground: oklch(0.772 0.033 329.626);
  --destructive: oklch(0.589 0.188 37.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.018 312.452);
  --chart-1: oklch(0.229 0.018 312.452);
  --chart-2: oklch(0.224 0.017 290.343);
  --chart-3: oklch(0.233 0.019 330.059);
  --chart-4: oklch(0.253 0.02 290.234);
  --chart-5: oklch(0.227 0.022 312.331);
}