Acid is a shadcn/ui theme built around a vivid light violet primary color (#dac4f7) with vivid light green accents (#e1f7c4). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid light violet primary (#dac4f7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #0a050fblack | #faf9fbghostwhite |
| Card | #fcfbfewhite | #000000black |
| Card foreground | #0a050fblack | #faf9fbghostwhite |
| Popover | #fcfbfewhite | #000000black |
| Popover foreground | #0a050fblack | #faf9fbghostwhite |
| Primary | #dac4f7thistle | #dac4f7thistle |
| Primary foreground | #3e107aindigo | #3e107aindigo |
| Secondary | #e1f7c4lightgoldenrodyellow | #e1f7c4lightgoldenrodyellow |
| Secondary foreground | #142004black | #142004black |
| Muted | #e4edd9gainsboro | #1d2612black |
| Muted foreground | #52564ddarkslategray | #aeb2a9darkgray |
| Accent | #e1f7c4lightgoldenrodyellow | #e1f7c4lightgoldenrodyellow |
| Accent foreground | #142004black | #142004black |
| Destructive | #e02500orangered | #f02800orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dac4f7thistle | #dac4f7thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 8.50:1 | AAA |
| Secondary button | 14.82:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 14.82:1 | AAA |
| Destructive | 4.71:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.50:1 | AAA |
| Secondary button | 14.82:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 14.82:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Acid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 305.686);
--foreground: oklch(0.13 0.026 305.34);
--muted: oklch(0.934 0.028 126.138);
--muted-foreground: oklch(0.448 0.017 126.238);
--popover: oklch(0.99 0.004 305.686);
--popover-foreground: oklch(0.13 0.026 305.34);
--card: oklch(0.99 0.004 305.686);
--card-foreground: oklch(0.13 0.026 305.34);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.856 0.074 304.593);
--primary-foreground: oklch(0.323 0.16 295.073);
--secondary: oklch(0.948 0.071 126.771);
--secondary-foreground: oklch(0.223 0.051 129.129);
--accent: oklch(0.948 0.071 126.771);
--accent-foreground: oklch(0.223 0.051 129.129);
--destructive: oklch(0.583 0.222 31.794);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.074 304.593);
--chart-1: oklch(0.856 0.074 304.593);
--chart-2: oklch(0.948 0.071 126.771);
--chart-3: oklch(0.948 0.071 126.771);
--chart-4: oklch(0.96 0.055 126.516);
--chart-5: oklch(0.855 0.076 304.545);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 305.701);
--muted: oklch(0.254 0.037 127.897);
--muted-foreground: oklch(0.758 0.015 125.997);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 305.701);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 305.701);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.856 0.074 304.593);
--primary-foreground: oklch(0.323 0.16 295.073);
--secondary: oklch(0.948 0.071 126.771);
--secondary-foreground: oklch(0.223 0.051 129.129);
--accent: oklch(0.948 0.071 126.771);
--accent-foreground: oklch(0.223 0.051 129.129);
--destructive: oklch(0.612 0.234 31.71);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.074 304.593);
--chart-1: oklch(0.856 0.074 304.593);
--chart-2: oklch(0.948 0.071 126.771);
--chart-3: oklch(0.948 0.071 126.771);
--chart-4: oklch(0.96 0.055 126.516);
--chart-5: oklch(0.855 0.076 304.545);
}