libravri 2 is a shadcn/ui theme built around a vivid yellow primary color (#ffd86b) with deep cyan accents (#243f46). The light mode uses a cyan-tinted background (#1a2d31). Dark mode keeps the vivid yellow primary (#ffd86b) on a cyan-tinted background (#1a2d31).
| Token | Light | Dark |
|---|---|---|
| Background | #1a2d31darkslategray | #1a2d31darkslategray |
| Foreground | #e9f1f0whitesmoke | #e9f1f0whitesmoke |
| Card | #1a2d31darkslategray | #243f46darkslategray |
| Card foreground | #f9fbfbghostwhite | #f9fbfbghostwhite |
| Popover | #1a2d31darkslategray | #1a2d31darkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffd86bkhaki | #ffd86bkhaki |
| Primary foreground | #382900black | #382900black |
| Secondary | #243f46darkslategray | #243f46darkslategray |
| Secondary foreground | #eeffffazure | #eeffffazure |
| Muted | #243f46darkslategray | #243f46darkslategray |
| Muted foreground | #b2b4c2silver | #b2b4c2silver |
| Accent | #243f46darkslategray | #243f46darkslategray |
| Accent foreground | #edeef2whitesmoke | #edeef2whitesmoke |
| Destructive | #f4502ftomato | #f4502ftomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #243f46darkslategray | #243f46darkslategray |
| Input | #243f46darkslategray | #f9fbfbghostwhite |
| Ring | #ffd86bkhaki | #ffd86bkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.50:1 | AAA |
| Text on card | 13.81:1 | AAA |
| Primary button | 10.26:1 | AAA |
| Secondary button | 10.87:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 9.66:1 | AAA |
| Destructive | 3.48:1 | AA Large |
| Text on background | 12.50:1 | AAA |
| Text on card | 10.78:1 | AAA |
| Primary button | 10.26:1 | AAA |
| Secondary button | 10.87:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 9.66:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use libravri 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.283 0.026 212.359);
--foreground: oklch(0.953 0.009 188.68);
--muted: oklch(0.349 0.035 216.099);
--muted-foreground: oklch(0.772 0.021 279.898);
--popover: oklch(0.283 0.026 212.359);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.283 0.026 212.359);
--card-foreground: oklch(0.987 0.003 188.847);
--border: oklch(0.349 0.035 216.099);
--input: oklch(0.349 0.035 216.099);
--primary: oklch(0.894 0.134 89.51);
--primary-foreground: oklch(0.291 0.059 87.335);
--secondary: oklch(0.349 0.035 216.099);
--secondary-foreground: oklch(0.988 0.018 196.869);
--accent: oklch(0.349 0.035 216.099);
--accent-foreground: oklch(0.949 0.007 280.222);
--destructive: oklch(0.654 0.206 33.181);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.894 0.134 89.51);
--chart-1: oklch(0.894 0.134 89.51);
--chart-2: oklch(0.349 0.035 216.099);
--chart-3: oklch(0.349 0.035 216.099);
--chart-4: oklch(0.381 0.039 216.156);
--chart-5: oklch(0.897 0.137 89.42);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.283 0.026 212.359);
--foreground: oklch(0.953 0.009 188.68);
--muted: oklch(0.349 0.035 216.099);
--muted-foreground: oklch(0.772 0.021 279.898);
--popover: oklch(0.283 0.026 212.359);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.349 0.035 216.099);
--card-foreground: oklch(0.987 0.003 188.847);
--border: oklch(0.349 0.035 216.099);
--input: oklch(0.987 0.002 197.123);
--primary: oklch(0.894 0.134 89.51);
--primary-foreground: oklch(0.291 0.059 87.335);
--secondary: oklch(0.349 0.035 216.099);
--secondary-foreground: oklch(0.988 0.018 196.869);
--accent: oklch(0.349 0.035 216.099);
--accent-foreground: oklch(0.949 0.007 280.222);
--destructive: oklch(0.654 0.206 33.181);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.894 0.134 89.51);
--chart-1: oklch(0.894 0.134 89.51);
--chart-2: oklch(0.349 0.035 216.099);
--chart-3: oklch(0.349 0.035 216.099);
--chart-4: oklch(0.381 0.039 216.156);
--chart-5: oklch(0.897 0.137 89.42);
}