Vessel is a shadcn/ui theme built around a vivid deep indigo primary color (#0f084f) with neutral gray accents (#cac9cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep indigo primary (#0f084f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020104black | #f5f5fawhitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #f9f8fcghostwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #f9f8fcghostwhite |
| Primary | #0f084fmidnightblue | #0f084fmidnightblue |
| Primary foreground | #9e94f4mediumpurple | #9e94f4mediumpurple |
| Secondary | #cac9cflightgrey | #211f2ddarkslategray |
| Secondary foreground | #313036darkslategray | #b6b4cbsilver |
| Muted | #eae9f1lavender | #0f0e16black |
| Muted foreground | #4c4a59darkslategray | #a8a6b5darkgray |
| Accent | #cac9cflightgrey | #211f2ddarkslategray |
| Accent foreground | #313036darkslategray | #b6b4cbsilver |
| Destructive | #79200cmaroon | #eb5837tomato |
| Destructive foreground | #f9c9bepink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f084fmidnightblue | #0f084fmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.00:1 | AA |
Paste this into your globals.css to use Vessel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.078 0.015 288.746);
--muted: oklch(0.937 0.011 290.792);
--muted-foreground: oklch(0.417 0.024 289.889);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.216 0.12 274.244);
--primary-foreground: oklch(0.715 0.138 286.944);
--secondary: oklch(0.838 0.008 290.823);
--secondary-foreground: oklch(0.312 0.011 290.349);
--accent: oklch(0.838 0.008 290.823);
--accent-foreground: oklch(0.312 0.011 290.349);
--destructive: oklch(0.385 0.126 33.792);
--destructive-foreground: oklch(0.874 0.057 32.826);
--ring: oklch(0.216 0.12 274.244);
--chart-1: oklch(0.216 0.12 274.244);
--chart-2: oklch(0.838 0.008 290.823);
--chart-3: oklch(0.838 0.008 290.823);
--chart-4: oklch(0.863 0.007 290.858);
--chart-5: oklch(0.215 0.123 273.437);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.971 0.007 290.879);
--muted: oklch(0.168 0.017 288.998);
--muted-foreground: oklch(0.731 0.021 290.466);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.981 0.005 290.925);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.981 0.005 290.925);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.216 0.12 274.244);
--primary-foreground: oklch(0.715 0.138 286.944);
--secondary: oklch(0.249 0.026 288.945);
--secondary-foreground: oklch(0.778 0.032 290.216);
--accent: oklch(0.249 0.026 288.945);
--accent-foreground: oklch(0.778 0.032 290.216);
--destructive: oklch(0.651 0.188 34.137);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.216 0.12 274.244);
--chart-1: oklch(0.216 0.12 274.244);
--chart-2: oklch(0.249 0.026 288.945);
--chart-3: oklch(0.249 0.026 288.945);
--chart-4: oklch(0.276 0.03 288.831);
--chart-5: oklch(0.215 0.123 273.437);
}