Visible is a shadcn/ui theme built around a purple primary color (#85488e) with green accents (#518e48). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#85488e) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #060307black |
| Foreground | #070208black | #ffffffwhite |
| Card | #fefbfewhite | #060307black |
| Card foreground | #070208black | #ffffffwhite |
| Popover | #fefbfewhite | #060307black |
| Popover foreground | #070208black | #ffffffwhite |
| Primary | #85488erebeccapurple | #85488erebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #518e48seagreen | #518e48seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ecf4ebhoneydew | #0c140bblack |
| Muted foreground | #5a5e5adimgray | #a2a5a1darkgray |
| Accent | #518e48seagreen | #518e48seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a71a01firebrick | #f92601orangered |
| Destructive foreground | #ffe1dbmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85488erebeccapurple | #85488erebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 3.93:1 | AA Large |
| Muted text | 5.89:1 | AA |
| Accent | 3.93:1 | AA Large |
| Destructive | 6.08:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 3.93:1 | AA Large |
| Muted text | 7.52:1 | AAA |
| Accent | 3.93:1 | AA Large |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Visible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 321.607);
--foreground: oklch(0.108 0.022 323.227);
--muted: oklch(0.96 0.015 141.548);
--muted-foreground: oklch(0.477 0.007 141.551);
--popover: oklch(0.991 0.005 321.607);
--popover-foreground: oklch(0.108 0.022 323.227);
--card: oklch(0.991 0.005 321.607);
--card-foreground: oklch(0.108 0.022 323.227);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.503 0.128 322.125);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.589 0.121 141.097);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.589 0.121 141.097);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.469 0.178 31.791);
--destructive-foreground: oklch(0.932 0.034 29.638);
--ring: oklch(0.503 0.128 322.125);
--chart-1: oklch(0.503 0.128 322.125);
--chart-2: oklch(0.589 0.121 141.097);
--chart-3: oklch(0.589 0.121 141.097);
--chart-4: oklch(0.619 0.128 141.096);
--chart-5: oklch(0.503 0.138 322.138);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.016 322.767);
--foreground: oklch(1 0 180);
--muted: oklch(0.18 0.023 141.246);
--muted-foreground: oklch(0.718 0.006 141.567);
--popover: oklch(0.11 0.016 322.767);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.016 322.767);
--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.503 0.128 322.125);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.589 0.121 141.097);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.589 0.121 141.097);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.242 31.277);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.128 322.125);
--chart-1: oklch(0.503 0.128 322.125);
--chart-2: oklch(0.589 0.121 141.097);
--chart-3: oklch(0.589 0.121 141.097);
--chart-4: oklch(0.619 0.128 141.096);
--chart-5: oklch(0.503 0.138 322.138);
}