Addition for shadcn/ui

Addition is a shadcn/ui theme built around a near-white primary color (#f8f8f7) with near-white accents (#f8f7f8). The light mode uses a neutral background (#fefefb). Dark mode keeps the near-white primary (#f8f8f7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#080802black
#f9f9f6whitesmoke
Card
#fefefbwhite
#000000black
Card foreground
#080802black
#f9f9f6whitesmoke
Popover
#fefefbwhite
#000000black
Popover foreground
#080802black
#f9f9f6whitesmoke
Primary
#f8f8f7whitesmoke
#f8f8f7whitesmoke
Primary foreground
#2d2d2adarkslategray
#2d2d2adarkslategray
Secondary
#f7f8f8whitesmoke
#f7f8f8whitesmoke
Secondary foreground
#2a2d2ddarkslategray
#2a2d2ddarkslategray
Muted
#e0e6e6gainsboro
#191f1fblack
Muted foreground
#515c5cdimgray
#a3aeaddarkgray
Accent
#f8f7f8whitesmoke
#f8f7f8whitesmoke
Accent foreground
#615c61dimgray
#615c61dimgray
Destructive
#7f2606saddlebrown
#f4581forangered
Destructive foreground
#fcccbbpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8f8f7whitesmoke
#f8f8f7whitesmoke

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button12.95:1AAA
Secondary button13.02:1AAA
Muted text5.47:1AA
Accent6.11:1AA
Destructive6.65:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button12.95:1AAA
Secondary button13.02:1AAA
Muted text7.33:1AAA
Accent6.11:1AA
Destructive6.27:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 105.696);
  --foreground: oklch(0.13 0.016 107.856);
  --muted: oklch(0.92 0.006 195.859);
  --muted-foreground: oklch(0.465 0.013 195.493);
  --popover: oklch(0.996 0.004 105.696);
  --popover-foreground: oklch(0.13 0.016 107.856);
  --card: oklch(0.996 0.004 105.696);
  --card-foreground: oklch(0.13 0.016 107.856);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.978 0.001 105.628);
  --primary-foreground: oklch(0.295 0.005 105.888);
  --secondary: oklch(0.978 0 195.965);
  --secondary-foreground: oklch(0.293 0.004 195.754);
  --accent: oklch(0.977 0.001 325.106);
  --accent-foreground: oklch(0.48 0.011 325.263);
  --destructive: oklch(0.403 0.128 37.488);
  --destructive-foreground: oklch(0.883 0.059 40.943);
  --ring: oklch(0.978 0.001 105.628);
  --chart-1: oklch(0.978 0.001 105.628);
  --chart-2: oklch(0.978 0 195.965);
  --chart-3: oklch(0.977 0.001 325.106);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.978 0.001 105.639);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.004 105.696);
  --muted: oklch(0.233 0.008 195.365);
  --muted-foreground: oklch(0.741 0.012 195.699);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.004 105.696);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.981 0.004 105.696);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.978 0.001 105.628);
  --primary-foreground: oklch(0.295 0.005 105.888);
  --secondary: oklch(0.978 0 195.965);
  --secondary-foreground: oklch(0.293 0.004 195.754);
  --accent: oklch(0.977 0.001 325.106);
  --accent-foreground: oklch(0.48 0.011 325.263);
  --destructive: oklch(0.663 0.202 38.02);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.978 0.001 105.628);
  --chart-1: oklch(0.978 0.001 105.628);
  --chart-2: oklch(0.978 0 195.965);
  --chart-3: oklch(0.977 0.001 325.106);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.978 0.001 105.639);
}