Vanadyl is a shadcn/ui theme built around a near-black primary color (#010305) with near-black accents (#030501). The light mode uses a neutral background (#f7fafc). Dark mode keeps the near-black primary (#010305) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafcghostwhite | #000000black |
| Foreground | #000000black | #f6f7f9whitesmoke |
| Card | #f7fafcghostwhite | #000000black |
| Card foreground | #000000black | #f6f7f9whitesmoke |
| Popover | #f7fafcghostwhite | #000000black |
| Popover foreground | #000000black | #f6f7f9whitesmoke |
| Primary | #010305black | #010305black |
| Primary foreground | #4d9ceacornflowerblue | #4d9ceacornflowerblue |
| Secondary | #050103black | #050103black |
| Secondary foreground | #f5a8cflightpink | #f5a8cflightpink |
| Muted | #f0ebedlinen | #140f12black |
| Muted foreground | #544f52darkslategray | #b0abaddarkgray |
| Accent | #030501black | #030501black |
| Accent foreground | #69bb16olivedrab | #69bb16olivedrab |
| Destructive | #8a370asaddlebrown | #d55510chocolate |
| Destructive foreground | #fbdccbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010305black | #010305black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 11.27:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 8.52:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 11.27:1 | AAA |
| Muted text | 8.35:1 | AAA |
| Accent | 8.52:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Vanadyl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 247.868);
--foreground: oklch(0 0 0);
--muted: oklch(0.944 0.006 345.318);
--muted-foreground: oklch(0.434 0.008 345.591);
--popover: oklch(0.984 0.004 247.868);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.004 247.868);
--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.088 0.014 236.582);
--primary-foreground: oklch(0.677 0.14 250.653);
--secondary: oklch(0.081 0.024 344.86);
--secondary-foreground: oklch(0.817 0.102 348.173);
--accent: oklch(0.104 0.022 126.932);
--accent-foreground: oklch(0.712 0.199 134.271);
--destructive: oklch(0.445 0.124 43.438);
--destructive-foreground: oklch(0.915 0.042 50.109);
--ring: oklch(0.088 0.014 236.582);
--chart-1: oklch(0.088 0.014 236.582);
--chart-2: oklch(0.081 0.024 344.86);
--chart-3: oklch(0.104 0.022 126.932);
--chart-4: oklch(0.131 0.04 347.672);
--chart-5: oklch(0.087 0.015 236.146);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 247.855);
--muted: oklch(0.177 0.01 346.512);
--muted-foreground: oklch(0.746 0.007 345.372);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 247.855);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 247.855);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.088 0.014 236.582);
--primary-foreground: oklch(0.677 0.14 250.653);
--secondary: oklch(0.081 0.024 344.86);
--secondary-foreground: oklch(0.817 0.102 348.173);
--accent: oklch(0.104 0.022 126.932);
--accent-foreground: oklch(0.712 0.199 134.271);
--destructive: oklch(0.61 0.176 42.567);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.088 0.014 236.582);
--chart-1: oklch(0.088 0.014 236.582);
--chart-2: oklch(0.081 0.024 344.86);
--chart-3: oklch(0.104 0.022 126.932);
--chart-4: oklch(0.131 0.04 347.672);
--chart-5: oklch(0.087 0.015 236.146);
}