Vise is a shadcn/ui theme built around a deep green primary color (#1c2b0d) with deep pink accents (#2b0d1c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1c2b0d) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #050802black | #fcfdfcwhite |
| Card | #ffffffwhite | #050703black |
| Card foreground | #050802black | #fcfdfcwhite |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #050802black | #fcfdfcwhite |
| Primary | #1c2b0dblack | #1c2b0dblack |
| Primary foreground | #80c440yellowgreen | #80c440yellowgreen |
| Secondary | #0d1c2bblack | #0d1c2bblack |
| Secondary foreground | #8eb4dcskyblue | #8eb4dcskyblue |
| Muted | #ebedeflavender | #101214black |
| Muted foreground | #484a4bdarkslategray | #b4b5b7silver |
| Accent | #2b0d1cblack | #2b0d1cblack |
| Accent foreground | #dc8eb4palevioletred | #dc8eb4palevioletred |
| Destructive | #c91208firebrick | #e11409red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c2b0dblack | #1c2b0dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 5.88:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 4.86:1 | AA |
Paste this into your globals.css to use Vise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.019 127.99);
--muted: oklch(0.945 0.004 249.687);
--muted-foreground: oklch(0.408 0.003 249.723);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.019 127.99);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.019 127.99);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.267 0.054 131.885);
--primary-foreground: oklch(0.749 0.178 132.759);
--secondary: oklch(0.22 0.036 251.267);
--secondary-foreground: oklch(0.756 0.072 250.472);
--accent: oklch(0.214 0.053 352.352);
--accent-foreground: oklch(0.737 0.106 349.569);
--destructive: oklch(0.53 0.21 29.492);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.267 0.054 131.885);
--chart-1: oklch(0.267 0.054 131.885);
--chart-2: oklch(0.22 0.036 251.267);
--chart-3: oklch(0.214 0.053 352.352);
--chart-4: oklch(0.251 0.045 251.445);
--chart-5: oklch(0.269 0.056 132.047);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.013 128.305);
--foreground: oklch(0.994 0.003 129.154);
--muted: oklch(0.18 0.006 249.931);
--muted-foreground: oklch(0.772 0.003 249.683);
--popover: oklch(0.123 0.013 128.305);
--popover-foreground: oklch(0.994 0.003 129.154);
--card: oklch(0.123 0.013 128.305);
--card-foreground: oklch(0.994 0.003 129.154);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.267 0.054 131.885);
--primary-foreground: oklch(0.749 0.178 132.759);
--secondary: oklch(0.22 0.036 251.267);
--secondary-foreground: oklch(0.756 0.072 250.472);
--accent: oklch(0.214 0.053 352.352);
--accent-foreground: oklch(0.737 0.106 349.569);
--destructive: oklch(0.577 0.23 29.497);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.267 0.054 131.885);
--chart-1: oklch(0.267 0.054 131.885);
--chart-2: oklch(0.22 0.036 251.267);
--chart-3: oklch(0.214 0.053 352.352);
--chart-4: oklch(0.251 0.045 251.445);
--chart-5: oklch(0.269 0.056 132.047);
}