Acrylic is a shadcn/ui theme built around a muted light blue primary color (#d2d6e0) with muted light indigo accents (#d4d2e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#d2d6e0) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #02060dblack | #f6f7f8whitesmoke |
| Card | #ffffffwhite | #010204black |
| Card foreground | #02060dblack | #f6f7f8whitesmoke |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #02060dblack | #f6f7f8whitesmoke |
| Primary | #d2d6e0gainsboro | #d2d6e0gainsboro |
| Primary foreground | #343c4bdarkslategray | #343c4bdarkslategray |
| Secondary | #d2dde0gainsboro | #d2dde0gainsboro |
| Secondary foreground | #34474bdarkslategray | #34474bdarkslategray |
| Muted | #dae4e7gainsboro | #182225black |
| Muted foreground | #404c4fdarkslategray | #b0bcbfsilver |
| Accent | #d4d2e0lightgrey | #d4d2e0lightgrey |
| Accent foreground | #38344bdarkslategray | #38344bdarkslategray |
| Destructive | #820a08maroon | #f11713red |
| Destructive foreground | #fbc1c0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2d6e0gainsboro | #d2d6e0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 8.29:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Acrylic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.118 0.022 255.643);
--muted: oklch(0.913 0.011 212.676);
--muted-foreground: oklch(0.407 0.016 212.773);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.118 0.022 255.643);
--card: oklch(1 0 180);
--card-foreground: oklch(0.118 0.022 255.643);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.876 0.014 265.93);
--primary-foreground: oklch(0.354 0.029 265.445);
--secondary: oklch(0.89 0.013 212.68);
--secondary-foreground: oklch(0.384 0.025 212.988);
--accent: oklch(0.869 0.019 294.417);
--accent-foreground: oklch(0.34 0.04 292.546);
--destructive: oklch(0.386 0.151 28.72);
--destructive-foreground: oklch(0.864 0.067 19.657);
--ring: oklch(0.876 0.014 265.93);
--chart-1: oklch(0.876 0.014 265.93);
--chart-2: oklch(0.89 0.013 212.68);
--chart-3: oklch(0.869 0.019 294.417);
--chart-4: oklch(0.912 0.01 212.673);
--chart-5: oklch(0.875 0.016 265.916);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 260.225);
--foreground: oklch(0.976 0.002 265.998);
--muted: oklch(0.245 0.015 212.945);
--muted-foreground: oklch(0.787 0.013 212.686);
--popover: oklch(0.086 0.009 260.225);
--popover-foreground: oklch(0.976 0.002 265.998);
--card: oklch(0.086 0.009 260.225);
--card-foreground: oklch(0.976 0.002 265.998);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.876 0.014 265.93);
--primary-foreground: oklch(0.354 0.029 265.445);
--secondary: oklch(0.89 0.013 212.68);
--secondary-foreground: oklch(0.384 0.025 212.988);
--accent: oklch(0.869 0.019 294.417);
--accent-foreground: oklch(0.34 0.04 292.546);
--destructive: oklch(0.608 0.241 28.875);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.014 265.93);
--chart-1: oklch(0.876 0.014 265.93);
--chart-2: oklch(0.89 0.013 212.68);
--chart-3: oklch(0.869 0.019 294.417);
--chart-4: oklch(0.912 0.01 212.673);
--chart-5: oklch(0.875 0.016 265.916);
}