Aching for shadcn/ui

Aching is a shadcn/ui theme built around a light blue primary color (#ecf3f8) with light blue accents (#ecedf8). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the light blue primary (#ecf3f8) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#010304black
Foreground
#03090cblack
#f8fafcghostwhite
Card
#f2f8fcaliceblue
#020608black
Card foreground
#020608black
#fbfdfdwhite
Popover
#f2f8fcaliceblue
#020608black
Popover foreground
#020608black
#fbfdfdwhite
Primary
#ecf3f8aliceblue
#ecf3f8aliceblue
Primary foreground
#142a39darkslategray
#142a39darkslategray
Secondary
#ecf8f7aliceblue
#ecf8f7aliceblue
Secondary foreground
#143935darkslategray
#143935darkslategray
Muted
#d4e3e1gainsboro
#1c2b2adarkslategray
Muted foreground
#44504fdarkslategray
#afbbbasilver
Accent
#ecedf8lavender
#ecedf8lavender
Accent foreground
#2e3784darkslateblue
#2e3784darkslateblue
Destructive
#ce1f12firebrick
#e62214crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecf3f8aliceblue
#ecf3f8aliceblue

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.05:1AAA
Primary button13.24:1AAA
Secondary button11.63:1AAA
Muted text6.32:1AA
Accent9.06:1AAA
Destructive5.47:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.95:1AAA
Primary button13.24:1AAA
Secondary button11.63:1AAA
Muted text7.43:1AAA
Accent9.06:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 236.514);
  --foreground: oklch(0.132 0.014 230.155);
  --muted: oklch(0.904 0.016 189.667);
  --muted-foreground: oklch(0.42 0.015 189.241);
  --popover: oklch(0.977 0.008 236.555);
  --popover-foreground: oklch(0.115 0.012 229.437);
  --card: oklch(0.977 0.008 236.555);
  --card-foreground: oklch(0.115 0.012 229.437);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.961 0.01 236.589);
  --primary-foreground: oklch(0.274 0.039 239.54);
  --secondary: oklch(0.971 0.013 189.77);
  --secondary-foreground: oklch(0.315 0.042 186.387);
  --accent: oklch(0.949 0.015 281.032);
  --accent-foreground: oklch(0.377 0.128 273.735);
  --destructive: oklch(0.546 0.209 29.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.01 236.589);
  --chart-1: oklch(0.961 0.01 236.589);
  --chart-2: oklch(0.971 0.013 189.77);
  --chart-3: oklch(0.949 0.015 281.032);
  --chart-4: oklch(0.988 0.005 189.957);
  --chart-5: oklch(0.961 0.011 236.598);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.009 229.669);
  --foreground: oklch(0.985 0.003 236.483);
  --muted: oklch(0.276 0.02 188.306);
  --muted-foreground: oklch(0.782 0.013 189.689);
  --popover: oklch(0.115 0.012 229.669);
  --popover-foreground: oklch(0.992 0.002 236.459);
  --card: oklch(0.115 0.012 229.669);
  --card-foreground: oklch(0.992 0.002 236.459);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.961 0.01 236.589);
  --primary-foreground: oklch(0.274 0.039 239.54);
  --secondary: oklch(0.971 0.013 189.77);
  --secondary-foreground: oklch(0.315 0.042 186.387);
  --accent: oklch(0.949 0.015 281.032);
  --accent-foreground: oklch(0.377 0.128 273.735);
  --destructive: oklch(0.592 0.227 29.705);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.01 236.589);
  --chart-1: oklch(0.961 0.01 236.589);
  --chart-2: oklch(0.971 0.013 189.77);
  --chart-3: oklch(0.949 0.015 281.032);
  --chart-4: oklch(0.988 0.005 189.957);
  --chart-5: oklch(0.961 0.011 236.598);
}