Velvety is a shadcn/ui theme built around a light green primary color (#e8f2d4) with light violet accents (#ded4f2). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the light green primary (#e8f2d4) on a green-tinted background (#0c0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #0c0f05black |
| Foreground | #090b04black | #fdfdfcwhite |
| Card | #fbfdf7snow | #0c0f05black |
| Card foreground | #090b04black | #fdfdfcwhite |
| Popover | #fbfdf7snow | #0c0f05black |
| Popover foreground | #090b04black | #fdfdfcwhite |
| Primary | #e8f2d4beige | #e8f2d4beige |
| Primary foreground | #1b240ablack | #1b240ablack |
| Secondary | #ded4f2lavender | #ded4f2lavender |
| Secondary foreground | #3e2173midnightblue | #3e2173midnightblue |
| Muted | #eae8edlavender | #141217black |
| Muted foreground | #3e3b44darkslategray | #bebbc4silver |
| Accent | #ded4f2lavender | #ded4f2lavender |
| Accent foreground | #3e2173midnightblue | #3e2173midnightblue |
| Destructive | #c42408firebrick | #e12a09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8f2d4beige | #e8f2d4beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 13.89:1 | AAA |
| Secondary button | 8.84:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.84:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 13.89:1 | AAA |
| Secondary button | 8.84:1 | AAA |
| Muted text | 9.82:1 | AAA |
| Accent | 8.84:1 | AAA |
| Destructive | 4.62:1 | AA |
Paste this into your globals.css to use Velvety in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 122.335);
--foreground: oklch(0.145 0.019 122.011);
--muted: oklch(0.935 0.006 302.109);
--muted-foreground: oklch(0.36 0.016 301.528);
--popover: oklch(0.99 0.008 122.335);
--popover-foreground: oklch(0.145 0.019 122.011);
--card: oklch(0.99 0.008 122.335);
--card-foreground: oklch(0.145 0.019 122.011);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.946 0.042 122.922);
--primary-foreground: oklch(0.243 0.045 125.624);
--secondary: oklch(0.887 0.043 301.445);
--secondary-foreground: oklch(0.337 0.132 294.249);
--accent: oklch(0.887 0.043 301.445);
--accent-foreground: oklch(0.337 0.132 294.249);
--destructive: oklch(0.53 0.197 31.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.042 122.922);
--chart-1: oklch(0.946 0.042 122.922);
--chart-2: oklch(0.887 0.043 301.445);
--chart-3: oklch(0.887 0.043 301.445);
--chart-4: oklch(0.918 0.031 301.679);
--chart-5: oklch(0.948 0.045 122.959);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.022 123.353);
--foreground: oklch(0.993 0.001 122.225);
--muted: oklch(0.187 0.009 301.43);
--muted-foreground: oklch(0.797 0.013 301.96);
--popover: oklch(0.162 0.022 123.353);
--popover-foreground: oklch(0.993 0.001 122.225);
--card: oklch(0.162 0.022 123.353);
--card-foreground: oklch(0.993 0.001 122.225);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.946 0.042 122.922);
--primary-foreground: oklch(0.243 0.045 125.624);
--secondary: oklch(0.887 0.043 301.445);
--secondary-foreground: oklch(0.337 0.132 294.249);
--accent: oklch(0.887 0.043 301.445);
--accent-foreground: oklch(0.337 0.132 294.249);
--destructive: oklch(0.587 0.22 31.652);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.042 122.922);
--chart-1: oklch(0.946 0.042 122.922);
--chart-2: oklch(0.887 0.043 301.445);
--chart-3: oklch(0.887 0.043 301.445);
--chart-4: oklch(0.918 0.031 301.679);
--chart-5: oklch(0.948 0.045 122.959);
}