Abacus is a shadcn/ui theme built around a muted deep red primary color (#523239) with muted deep blue accents (#323952). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#523239) on a red-tinted background (#0b0406).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0406black |
| Foreground | #0d0204black | #ffffffwhite |
| Card | #fcfcfcsnow | #0f0608black |
| Card foreground | #090103black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0406black |
| Popover foreground | #0d0204black | #ffffffwhite |
| Primary | #523239darkslategray | #523239darkslategray |
| Primary foreground | #e4d3d6gainsboro | #e4d3d6gainsboro |
| Secondary | #395232darkslategray | #395232darkslategray |
| Secondary foreground | #d6e4d3gainsboro | #d6e4d3gainsboro |
| Muted | #deebdbgainsboro | #172414black |
| Muted foreground | #576b52dimgray | #99ad94darkseagreen |
| Accent | #323952darkslategray | #323952darkslategray |
| Accent foreground | #d3d6e4gainsboro | #d3d6e4gainsboro |
| Destructive | #d9240dfirebrick | #f4533etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #523239darkslategray | #523239darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 4.69:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.98:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.71:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.15:1 | AA |
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.116 0.03 4.052);
--muted: oklch(0.926 0.027 139.437);
--muted-foreground: oklch(0.503 0.045 139.434);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.03 4.052);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.026 3.59);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.359 0.047 6.655);
--primary-foreground: oklch(0.881 0.02 3.778);
--secondary: oklch(0.409 0.06 139.469);
--secondary-foreground: oklch(0.903 0.027 139.437);
--accent: oklch(0.349 0.045 273.063);
--accent-foreground: oklch(0.878 0.019 274.758);
--destructive: oklch(0.569 0.215 30.872);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.359 0.047 6.655);
--chart-1: oklch(0.359 0.047 6.655);
--chart-2: oklch(0.409 0.06 139.469);
--chart-3: oklch(0.349 0.045 273.063);
--chart-4: oklch(0.441 0.066 139.472);
--chart-5: oklch(0.358 0.053 7.144);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 3.434);
--foreground: oklch(1 0 180);
--muted: oklch(0.244 0.036 139.471);
--muted-foreground: oklch(0.725 0.041 139.433);
--popover: oklch(0.123 0.016 3.434);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.018 4.385);
--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.359 0.047 6.655);
--primary-foreground: oklch(0.881 0.02 3.778);
--secondary: oklch(0.409 0.06 139.469);
--secondary-foreground: oklch(0.903 0.027 139.437);
--accent: oklch(0.349 0.045 273.063);
--accent-foreground: oklch(0.878 0.019 274.758);
--destructive: oklch(0.66 0.2 30.579);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.359 0.047 6.655);
--chart-1: oklch(0.359 0.047 6.655);
--chart-2: oklch(0.409 0.06 139.469);
--chart-3: oklch(0.349 0.045 273.063);
--chart-4: oklch(0.441 0.066 139.472);
--chart-5: oklch(0.358 0.053 7.144);
}