berry is a shadcn/ui theme built around a muted violet primary color (#afa4cb) with muted light violet accents (#d9d7e0). The light mode uses a neutral background (#f9f8fb). Dark mode keeps the muted violet primary (#afa4cb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fbghostwhite | #000000black |
| Foreground | #06030cblack | #f9f8fcghostwhite |
| Card | #f9f8fbghostwhite | #000000black |
| Card foreground | #06030cblack | #f9f8fcghostwhite |
| Popover | #f9f8fbghostwhite | #000000black |
| Popover foreground | #06030cblack | #f9f8fcghostwhite |
| Primary | #afa4cbsilver | #afa4cbsilver |
| Primary foreground | #1b1627black | #1b1627black |
| Secondary | #d9d7e0gainsboro | #2a292edarkslategray |
| Secondary foreground | #3f3a4bdarkslategray | #c3c1c7silver |
| Muted | #f2f1f3whitesmoke | #0c0c0eblack |
| Muted foreground | #413b4edarkslategray | #b6b1c4silver |
| Accent | #d9d7e0gainsboro | #2a292edarkslategray |
| Accent foreground | #3f3a4bdarkslategray | #c3c1c7silver |
| Destructive | #8e350bsaddlebrown | #ec5b18chocolate |
| Destructive foreground | #fbded0blanchedalmond | #ffffffwhite |
| Border | #e5e3e8gainsboro | #222027black |
| Input | #e5e3e8gainsboro | #222027black |
| Ring | #afa4cbsilver | #afa4cbsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 9.52:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 9.38:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use berry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 299.23);
--foreground: oklch(0.111 0.028 299.082);
--muted: oklch(0.96 0.003 299.255);
--muted-foreground: oklch(0.367 0.033 297.714);
--popover: oklch(0.982 0.004 299.23);
--popover-foreground: oklch(0.111 0.028 299.082);
--card: oklch(0.982 0.004 299.23);
--card-foreground: oklch(0.111 0.028 299.082);
--border: oklch(0.919 0.006 299.186);
--input: oklch(0.919 0.006 299.186);
--primary: oklch(0.742 0.056 297.992);
--primary-foreground: oklch(0.216 0.032 296.604);
--secondary: oklch(0.883 0.013 299.054);
--secondary-foreground: oklch(0.359 0.03 297.849);
--accent: oklch(0.883 0.013 299.054);
--accent-foreground: oklch(0.359 0.03 297.849);
--destructive: oklch(0.449 0.13 41.066);
--destructive-foreground: oklch(0.92 0.038 46.438);
--ring: oklch(0.742 0.056 297.992);
--chart-1: oklch(0.742 0.056 297.992);
--chart-2: oklch(0.883 0.013 299.054);
--chart-3: oklch(0.883 0.013 299.054);
--chart-4: oklch(0.908 0.01 299.114);
--chart-5: oklch(0.738 0.062 297.832);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 299.227);
--muted: oklch(0.155 0.004 298.817);
--muted-foreground: oklch(0.769 0.028 298.683);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.004 299.227);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.004 299.227);
--border: oklch(0.25 0.012 298.46);
--input: oklch(0.25 0.012 298.46);
--primary: oklch(0.742 0.056 297.992);
--primary-foreground: oklch(0.216 0.032 296.604);
--secondary: oklch(0.285 0.008 298.821);
--secondary-foreground: oklch(0.815 0.008 299.129);
--accent: oklch(0.285 0.008 298.821);
--accent-foreground: oklch(0.815 0.008 299.129);
--destructive: oklch(0.654 0.193 40.738);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.742 0.056 297.992);
--chart-1: oklch(0.742 0.056 297.992);
--chart-2: oklch(0.285 0.008 298.821);
--chart-3: oklch(0.285 0.008 298.821);
--chart-4: oklch(0.314 0.009 298.802);
--chart-5: oklch(0.738 0.062 297.832);
}