Acidic for shadcn/ui

Acidic is a shadcn/ui theme built around a near-white primary color (#f5fffa) with near-white accents (#f5ffff). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f5fffa) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#04160dblack
#f8fbfamintcream
Card
#ffffffwhite
#000000black
Card foreground
#04160dblack
#f8fbfamintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#04160dblack
#f8fbfamintcream
Primary
#f5fffamintcream
#f5fffamintcream
Primary foreground
#015a2edarkgreen
#015a2edarkgreen
Secondary
#f5fff5mintcream
#f5fff5mintcream
Secondary foreground
#015a01darkgreen
#015a01darkgreen
Muted
#dde4ddgainsboro
#1b221bblack
Muted foreground
#404f40darkslategray
#b0bfb0silver
Accent
#f5ffffazure
#f5ffffazure
Accent foreground
#015a5adarkslategray
#015a5adarkslategray
Destructive
#ad2600firebrick
#ff4f1forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5fffamintcream
#f5fffamintcream

Contrast

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

Light mode
Text on background18.65:1AAA
Text on card18.65:1AAA
Primary button8.20:1AAA
Secondary button8.31:1AAA
Muted text6.72:1AA
Accent7.89:1AAA
Destructive6.86:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button8.20:1AAA
Secondary button8.31:1AAA
Muted text8.44:1AAA
Accent7.89:1AAA
Destructive3.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.18 0.032 160.79);
  --muted: oklch(0.911 0.013 145.471);
  --muted-foreground: oklch(0.409 0.03 145.008);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.18 0.032 160.79);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.18 0.032 160.79);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.991 0.012 164.816);
  --primary-foreground: oklch(0.412 0.105 153.217);
  --secondary: oklch(0.989 0.017 145.448);
  --secondary-foreground: oklch(0.407 0.137 142.523);
  --accent: oklch(0.992 0.01 196.989);
  --accent-foreground: oklch(0.425 0.072 194.781);
  --destructive: oklch(0.489 0.176 33.886);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.991 0.012 164.816);
  --chart-1: oklch(0.991 0.012 164.816);
  --chart-2: oklch(0.989 0.017 145.448);
  --chart-3: oklch(0.992 0.01 196.989);
  --chart-4: oklch(1.005 0.008 325.638);
  --chart-5: oklch(0.991 0.013 164.806);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 165.043);
  --muted: oklch(0.243 0.017 145.016);
  --muted-foreground: oklch(0.789 0.025 145.33);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.004 165.043);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.004 165.043);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.991 0.012 164.816);
  --primary-foreground: oklch(0.412 0.105 153.217);
  --secondary: oklch(0.989 0.017 145.448);
  --secondary-foreground: oklch(0.407 0.137 142.523);
  --accent: oklch(0.992 0.01 196.989);
  --accent-foreground: oklch(0.425 0.072 194.781);
  --destructive: oklch(0.671 0.219 35.127);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.991 0.012 164.816);
  --chart-1: oklch(0.991 0.012 164.816);
  --chart-2: oklch(0.989 0.017 145.448);
  --chart-3: oklch(0.992 0.01 196.989);
  --chart-4: oklch(1.005 0.008 325.638);
  --chart-5: oklch(0.991 0.013 164.806);
}