Acid is a shadcn/ui theme built around a deep red primary color (#6f2511) with deep yellow accents (#6f5411). The light mode uses a neutral background (#fcf8f7). Dark mode keeps the deep red primary (#6f2511) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f7snow | #000000black |
| Foreground | #120602black | #f8f7f6whitesmoke |
| Card | #fcf8f7snow | #000000black |
| Card foreground | #120602black | #f8f7f6whitesmoke |
| Popover | #fcf8f7snow | #000000black |
| Popover foreground | #120602black | #f8f7f6whitesmoke |
| Primary | #6f2511saddlebrown | #6f2511saddlebrown |
| Primary foreground | #f5c9bcpeachpuff | #f5c9bcpeachpuff |
| Secondary | #6f112bmaroon | #6f112bmaroon |
| Secondary foreground | #f5bcccpink | #f5bcccpink |
| Muted | #f4f0f1whitesmoke | #0f0b0cblack |
| Muted foreground | #444041darkslategray | #bfbbbcsilver |
| Accent | #6f5411saddlebrown | #6f5411saddlebrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7a1901maroon | #e93001orangered |
| Destructive foreground | #ffbeaelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f2511saddlebrown | #6f2511saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 9.06:1 | AAA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 10.30:1 | AAA |
| Accent | 7.10:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Acid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 35.996);
--foreground: oklch(0.14 0.028 45.12);
--muted: oklch(0.96 0.004 357.835);
--muted-foreground: oklch(0.377 0.006 358.147);
--popover: oklch(0.983 0.005 35.996);
--popover-foreground: oklch(0.14 0.028 45.12);
--card: oklch(0.983 0.005 35.996);
--card-foreground: oklch(0.14 0.028 45.12);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.374 0.11 35.937);
--primary-foreground: oklch(0.87 0.053 35.96);
--secondary: oklch(0.357 0.127 11.027);
--secondary-foreground: oklch(0.852 0.068 359.915);
--accent: oklch(0.462 0.088 85.176);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.379 0.135 34.182);
--destructive-foreground: oklch(0.856 0.078 34.484);
--ring: oklch(0.374 0.11 35.937);
--chart-1: oklch(0.374 0.11 35.937);
--chart-2: oklch(0.357 0.127 11.027);
--chart-3: oklch(0.462 0.088 85.176);
--chart-4: oklch(0.386 0.139 11.351);
--chart-5: oklch(0.376 0.113 35.789);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.977 0.002 36.006);
--muted: oklch(0.154 0.006 358.891);
--muted-foreground: oklch(0.795 0.005 357.885);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.977 0.002 36.006);
--card: oklch(0 0 0);
--card-foreground: oklch(0.977 0.002 36.006);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.374 0.11 35.937);
--primary-foreground: oklch(0.87 0.053 35.96);
--secondary: oklch(0.357 0.127 11.027);
--secondary-foreground: oklch(0.852 0.068 359.915);
--accent: oklch(0.462 0.088 85.176);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.606 0.224 32.796);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.374 0.11 35.937);
--chart-1: oklch(0.374 0.11 35.937);
--chart-2: oklch(0.357 0.127 11.027);
--chart-3: oklch(0.462 0.088 85.176);
--chart-4: oklch(0.386 0.139 11.351);
--chart-5: oklch(0.376 0.113 35.789);
}