Atom for shadcn/ui

Atom is a shadcn/ui theme built around a muted pink primary color (#894d72) with muted light pink accents (#e7dfe4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#894d72) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#894d72dimgray
#894d72dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e7dfe4gainsboro
#292829darkslategray
Secondary foreground
#54404cdarkslategray
#c2c1c2silver
Muted
#ece4e9lavender
#1b1318black
Muted foreground
#5a4954dimgray
#b6a5afdarkgray
Accent
#e7dfe4gainsboro
#292829darkslategray
Accent foreground
#54404cdarkslategray
#c2c1c2silver
Destructive
#972311brown
#dc3318orangered
Destructive foreground
#fbe3dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#894d72dimgray
#894d72dimgray

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 button6.22:1AA
Secondary button7.25:1AAA
Muted text6.70:1AA
Accent7.25:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button6.22:1AA
Secondary button8.14:1AAA
Muted text7.79:1AAA
Accent8.14:1AAA
Destructive4.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.01 339.705);
  --muted-foreground: oklch(0.427 0.027 340.809);
  --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.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.504 0.094 343.296);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.911 0.011 339.726);
  --secondary-foreground: oklch(0.397 0.035 341.312);
  --accent: oklch(0.911 0.011 339.726);
  --accent-foreground: oklch(0.397 0.035 341.312);
  --destructive: oklch(0.446 0.155 31.647);
  --destructive-foreground: oklch(0.934 0.028 28.111);
  --ring: oklch(0.504 0.094 343.296);
  --chart-1: oklch(0.504 0.094 343.296);
  --chart-2: oklch(0.911 0.011 339.726);
  --chart-3: oklch(0.911 0.011 339.726);
  --chart-4: oklch(0.936 0.008 339.65);
  --chart-5: oklch(0.503 0.104 343.697);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 339.485);
  --muted: oklch(0.199 0.015 341.027);
  --muted-foreground: oklch(0.74 0.023 340.156);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 339.485);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 339.485);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.504 0.094 343.296);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.28 0.001 339.587);
  --secondary-foreground: oklch(0.813 0.002 339.515);
  --accent: oklch(0.28 0.001 339.587);
  --accent-foreground: oklch(0.813 0.002 339.515);
  --destructive: oklch(0.586 0.209 31.594);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.504 0.094 343.296);
  --chart-1: oklch(0.504 0.094 343.296);
  --chart-2: oklch(0.28 0.001 339.587);
  --chart-3: oklch(0.28 0.001 339.587);
  --chart-4: oklch(0.31 0.002 339.592);
  --chart-5: oklch(0.503 0.104 343.697);
}