Abacus for shadcn/ui

Abacus is a shadcn/ui theme built around a vivid blue primary color (#41a2e6) with vivid indigo accents (#414fe6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#41a2e6) on a blue-tinted background (#070b0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070b0dblack
Foreground
#030b12black
#ffffffwhite
Card
#fcfcfcsnow
#090d11black
Card foreground
#02090dblack
#ffffffwhite
Popover
#ffffffwhite
#070b0dblack
Popover foreground
#030b12black
#ffffffwhite
Primary
#41a2e6cornflowerblue
#41a2e6cornflowerblue
Primary foreground
#000000black
#000000black
Secondary
#41e6d9turquoise
#41e6d9turquoise
Secondary foreground
#000000black
#000000black
Muted
#d2e4e3gainsboro
#1b2d2bdarkslategray
Muted foreground
#5c6665dimgray
#99a3a2darkgray
Accent
#414fe6royalblue
#414fe6royalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#811603maroon
#e52706orangered
Destructive foreground
#fdc4b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#41a2e6cornflowerblue
#41a2e6cornflowerblue

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.61:1AAA
Primary button7.51:1AAA
Secondary button13.58:1AAA
Muted text4.50:1AA
Accent6.00:1AA
Destructive6.69:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.46:1AAA
Primary button7.51:1AAA
Secondary button13.58:1AAA
Muted text5.59:1AA
Accent6.00:1AA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.021 234.711);
  --muted: oklch(0.906 0.019 190.786);
  --muted-foreground: oklch(0.501 0.012 190.723);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0.021 234.711);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.018 230.686);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.685 0.135 243.463);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.841 0.133 186.671);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.518 0.225 271.693);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.392 0.144 32.191);
  --destructive-foreground: oklch(0.868 0.068 29.953);
  --ring: oklch(0.685 0.135 243.463);
  --chart-1: oklch(0.685 0.135 243.463);
  --chart-2: oklch(0.841 0.133 186.671);
  --chart-3: oklch(0.518 0.225 271.693);
  --chart-4: oklch(0.849 0.128 187.082);
  --chart-5: oklch(0.687 0.14 243.767);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.008 237.154);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.28 0.024 189.304);
  --muted-foreground: oklch(0.707 0.011 190.906);
  --popover: oklch(0.145 0.008 237.154);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.01 239.133);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.685 0.135 243.463);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.841 0.133 186.671);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.518 0.225 271.693);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.592 0.225 31.499);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.135 243.463);
  --chart-1: oklch(0.685 0.135 243.463);
  --chart-2: oklch(0.841 0.133 186.671);
  --chart-3: oklch(0.518 0.225 271.693);
  --chart-4: oklch(0.849 0.128 187.082);
  --chart-5: oklch(0.687 0.14 243.767);
}