Visible is a shadcn/ui theme built around a muted violet primary color (#9b7bad) with muted purple accents (#ad7ba5). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#9b7bad) on a violet-tinted background (#0c0410).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #0c0410black |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #f9f3fcghostwhite | #0f0614black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f9f3fcghostwhite | #0f0614black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #9b7badlightslategray | #9b7badlightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #837badlightslategray | #837badlightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ecebf4lavender | #0c0b14black |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #ad7ba5rosybrown | #ad7ba5rosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #aa0b08darkred | #db0e0ared |
| Destructive foreground | #fee7e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9b7badlightslategray | #9b7badlightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 5.40:1 | AA |
| Muted text | 7.15:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 5.40:1 | AA |
| Muted text | 9.34:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 5.14:1 | AA |
Paste this into your globals.css to use Visible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.009 314.168);
--foreground: oklch(0.081 0.022 316.489);
--muted: oklch(0.944 0.013 293.052);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(0.971 0.014 314.142);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.971 0.014 314.142);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.632 0.081 313.507);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.609 0.074 290.899);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.647 0.084 331.817);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.468 0.187 28.961);
--destructive-foreground: oklch(0.946 0.025 18.776);
--ring: oklch(0.632 0.081 313.507);
--chart-1: oklch(0.632 0.081 313.507);
--chart-2: oklch(0.609 0.074 290.899);
--chart-3: oklch(0.647 0.084 331.817);
--chart-4: oklch(0.638 0.068 291.215);
--chart-5: oklch(0.628 0.091 313.403);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.03 314.449);
--foreground: oklch(0.991 0.002 314.208);
--muted: oklch(0.154 0.02 290.718);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.144 0.035 313.536);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.035 313.536);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.632 0.081 313.507);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.609 0.074 290.899);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.647 0.084 331.817);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.564 0.226 29.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.081 313.507);
--chart-1: oklch(0.632 0.081 313.507);
--chart-2: oklch(0.609 0.074 290.899);
--chart-3: oklch(0.647 0.084 331.817);
--chart-4: oklch(0.638 0.068 291.215);
--chart-5: oklch(0.628 0.091 313.403);
}