Veldt is a shadcn/ui theme built around a near-black primary color (#020302) with near-black accents (#020302). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the near-black primary (#020302) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #000000black |
| Foreground | #000000black | #f6f9f6whitesmoke |
| Card | #f8fdf7mintcream | #000000black |
| Card foreground | #000000black | #f6f9f6whitesmoke |
| Popover | #f8fdf7mintcream | #000000black |
| Popover foreground | #000000black | #f6f9f6whitesmoke |
| Primary | #020302black | #020302black |
| Primary foreground | #85b582darkseagreen | #85b582darkseagreen |
| Secondary | #030302black | #030302black |
| Secondary foreground | #9fb582darkseagreen | #9fb582darkseagreen |
| Muted | #e2e9d8gainsboro | #202716black |
| Muted foreground | #52564edarkslategray | #aeb1a9darkgray |
| Accent | #020302black | #020302black |
| Accent foreground | #82b598darkseagreen | #82b598darkseagreen |
| Destructive | #b93f13firebrick | #eb6f42tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020302black | #020302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 8.85:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 8.85:1 | AAA |
| Destructive | 6.88:1 | AA |
Paste this into your globals.css to use Veldt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.009 143.59);
--foreground: oklch(0 0 0);
--muted: oklch(0.924 0.025 126.104);
--muted-foreground: oklch(0.446 0.014 126.156);
--popover: oklch(0.987 0.009 143.59);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.009 143.59);
--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.094 0.009 142.852);
--primary-foreground: oklch(0.726 0.09 142.963);
--secondary: oklch(0.096 0.007 125.309);
--secondary-foreground: oklch(0.744 0.075 127.174);
--accent: oklch(0.095 0.007 161.799);
--accent-foreground: oklch(0.73 0.069 159.255);
--destructive: oklch(0.536 0.165 37.908);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.009 142.852);
--chart-1: oklch(0.094 0.009 142.852);
--chart-2: oklch(0.096 0.007 125.309);
--chart-3: oklch(0.095 0.007 161.799);
--chart-4: oklch(0.154 0.012 126.192);
--chart-5: oklch(0.095 0.01 142.761);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.006 143.606);
--muted: oklch(0.262 0.033 127.59);
--muted-foreground: oklch(0.757 0.012 125.954);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.006 143.606);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.006 143.606);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.094 0.009 142.852);
--primary-foreground: oklch(0.726 0.09 142.963);
--secondary: oklch(0.096 0.007 125.309);
--secondary-foreground: oklch(0.744 0.075 127.174);
--accent: oklch(0.095 0.007 161.799);
--accent-foreground: oklch(0.73 0.069 159.255);
--destructive: oklch(0.682 0.165 39.892);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.094 0.009 142.852);
--chart-1: oklch(0.094 0.009 142.852);
--chart-2: oklch(0.096 0.007 125.309);
--chart-3: oklch(0.095 0.007 161.799);
--chart-4: oklch(0.154 0.012 126.192);
--chart-5: oklch(0.095 0.01 142.761);
}