Aching for shadcn/ui

Aching is a shadcn/ui theme built around a deep teal primary color (#102823) with muted light teal accents (#c2d6d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#102823) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#050f0dblack
#f6f9f8whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#040b0ablack
#f9fbfbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#050f0dblack
#f6f9f8whitesmoke
Primary
#102823black
#102823black
Primary foreground
#4eb7a0cadetblue
#4eb7a0cadetblue
Secondary
#d7e0degainsboro
#151918black
Secondary foreground
#3a4b47darkslategray
#aab5b3darkgray
Muted
#dce5e3gainsboro
#1a2321black
Muted foreground
#565857dimgray
#a7a9a9darkgray
Accent
#c2d6d2lightgrey
#293835darkslategray
Accent foreground
#293d39darkslategray
#c1d2celightgrey
Destructive
#b91613firebrick
#d41916firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#102823black
#102823black

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button6.38:1AA
Secondary button6.84:1AA
Muted text5.59:1AA
Accent7.60:1AAA
Destructive6.60:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.91:1AAA
Primary button6.38:1AA
Secondary button8.44:1AAA
Muted text6.77:1AA
Accent7.80:1AAA
Destructive5.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.017 179.868);
  --muted: oklch(0.915 0.011 181.735);
  --muted-foreground: oklch(0.457 0.002 181.927);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.017 179.868);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.142 0.015 181.615);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.255 0.031 177.826);
  --primary-foreground: oklch(0.71 0.103 176.626);
  --secondary: oklch(0.899 0.01 181.745);
  --secondary-foreground: oklch(0.396 0.023 180.379);
  --accent: oklch(0.86 0.023 181.317);
  --accent-foreground: oklch(0.342 0.027 179.63);
  --destructive: oklch(0.501 0.194 28.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.031 177.826);
  --chart-1: oklch(0.255 0.031 177.826);
  --chart-2: oklch(0.899 0.01 181.745);
  --chart-3: oklch(0.86 0.023 181.317);
  --chart-4: oklch(0.921 0.008 181.822);
  --chart-5: oklch(0.257 0.033 177.539);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.004 181.967);
  --muted: oklch(0.248 0.014 180.342);
  --muted-foreground: oklch(0.734 0.002 181.99);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.004 181.967);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 182.001);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.255 0.031 177.826);
  --primary-foreground: oklch(0.71 0.103 176.626);
  --secondary: oklch(0.208 0.005 181.37);
  --secondary-foreground: oklch(0.765 0.013 181.597);
  --accent: oklch(0.327 0.021 180.123);
  --accent-foreground: oklch(0.85 0.019 181.428);
  --destructive: oklch(0.555 0.216 28.568);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.031 177.826);
  --chart-1: oklch(0.255 0.031 177.826);
  --chart-2: oklch(0.208 0.005 181.37);
  --chart-3: oklch(0.327 0.021 180.123);
  --chart-4: oklch(0.242 0.007 181.298);
  --chart-5: oklch(0.257 0.033 177.539);
}