Acid for shadcn/ui

Acid is a shadcn/ui theme built around a vivid teal primary color (#40ede7) with vivid red accents (#ed4045). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the vivid teal primary (#40ede7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfdmintcream
#000000black
Foreground
#031616black
#f5fafamintcream
Card
#f3fcfcmintcream
#030303black
Card foreground
#031211black
#f8fcfbmintcream
Popover
#f7fdfdmintcream
#000000black
Popover foreground
#031616black
#f5fafamintcream
Primary
#40ede7turquoise
#40ede7turquoise
Primary foreground
#000000black
#000000black
Secondary
#ed4045tomato
#ed4045tomato
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1eaealinen
#150e0fblack
Muted foreground
#614848darkolivegreen
#b79e9fdarkgray
Accent
#ed4045tomato
#ed4045tomato
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b22f0afirebrick
#f3562btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#40ede7turquoise
#40ede7turquoise

Contrast

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

Light mode
Text on background18.05:1AAA
Text on card18.31:1AAA
Primary button14.51:1AAA
Secondary button3.87:1AA Large
Muted text6.98:1AA
Accent3.87:1AA Large
Destructive6.34:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.99:1AAA
Primary button14.51:1AAA
Secondary button3.87:1AA Large
Muted text7.61:1AAA
Accent3.87:1AA Large
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 194.668);
  --foreground: oklch(0.184 0.026 192.321);
  --muted: oklch(0.942 0.007 14.936);
  --muted-foreground: oklch(0.427 0.035 16.392);
  --popover: oklch(0.989 0.006 194.668);
  --popover-foreground: oklch(0.184 0.026 192.321);
  --card: oklch(0.984 0.01 194.607);
  --card-foreground: oklch(0.166 0.023 192.558);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.861 0.136 191.543);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.63 0.21 23.982);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.63 0.21 23.982);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.507 0.173 34.529);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.136 191.543);
  --chart-1: oklch(0.861 0.136 191.543);
  --chart-2: oklch(0.63 0.21 23.982);
  --chart-3: oklch(0.63 0.21 23.982);
  --chart-4: oklch(0.648 0.197 22.738);
  --chart-5: oklch(0.869 0.138 191.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.005 194.688);
  --muted: oklch(0.175 0.012 16.081);
  --muted-foreground: oklch(0.723 0.03 15.581);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.005 194.688);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.004 194.722);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.861 0.136 191.543);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.63 0.21 23.982);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.63 0.21 23.982);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.659 0.2 35.753);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.861 0.136 191.543);
  --chart-1: oklch(0.861 0.136 191.543);
  --chart-2: oklch(0.63 0.21 23.982);
  --chart-3: oklch(0.63 0.21 23.982);
  --chart-4: oklch(0.648 0.197 22.738);
  --chart-5: oklch(0.869 0.138 191.476);
}