Vinyl is a shadcn/ui theme built around a blue primary color (#4153c8) with yellow accents (#c8b641). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#4153c8) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010104black |
| Foreground | #010104black | #ffffffwhite |
| Card | #ffffffwhite | #010104black |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #ffffffwhite | #010104black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #4153c8royalblue | #4153c8royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c8b641goldenrod | #c8b641goldenrod |
| Secondary foreground | #2f2b0eblack | #2f2b0eblack |
| Muted | #f2f1e8linen | #17160dblack |
| Muted foreground | #626050dimgray | #afac9ddarkgray |
| Accent | #c8b641goldenrod | #c8b641goldenrod |
| Accent foreground | #2f2b0eblack | #2f2b0eblack |
| Destructive | #6d1108maroon | #e82311orangered |
| Destructive foreground | #f9b5aelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4153c8royalblue | #4153c8royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.93:1 | AA |
| Muted text | 5.60:1 | AA |
| Accent | 6.93:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.80:1 | AAA |
| Text on card | 20.80:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.93:1 | AA |
| Muted text | 7.98:1 | AAA |
| Accent | 6.93:1 | AA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Vinyl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.076 0.017 271.2);
--muted: oklch(0.957 0.012 99.524);
--muted-foreground: oklch(0.486 0.024 100.012);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.076 0.017 271.2);
--card: oklch(1 0 180);
--card-foreground: oklch(0.076 0.017 271.2);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.499 0.181 271.532);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.77 0.135 100.452);
--secondary-foreground: oklch(0.286 0.046 100.643);
--accent: oklch(0.77 0.135 100.452);
--accent-foreground: oklch(0.286 0.046 100.643);
--destructive: oklch(0.347 0.127 30.01);
--destructive-foreground: oklch(0.834 0.081 24.789);
--ring: oklch(0.499 0.181 271.532);
--chart-1: oklch(0.499 0.181 271.532);
--chart-2: oklch(0.77 0.135 100.452);
--chart-3: oklch(0.77 0.135 100.452);
--chart-4: oklch(0.784 0.13 100.584);
--chart-5: oklch(0.495 0.19 270.958);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.015 272.675);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.017 100.404);
--muted-foreground: oklch(0.743 0.022 99.757);
--popover: oklch(0.079 0.015 272.675);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.079 0.015 272.675);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.499 0.181 271.532);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.77 0.135 100.452);
--secondary-foreground: oklch(0.286 0.046 100.643);
--accent: oklch(0.77 0.135 100.452);
--accent-foreground: oklch(0.286 0.046 100.643);
--destructive: oklch(0.597 0.229 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.499 0.181 271.532);
--chart-1: oklch(0.499 0.181 271.532);
--chart-2: oklch(0.77 0.135 100.452);
--chart-3: oklch(0.77 0.135 100.452);
--chart-4: oklch(0.784 0.13 100.584);
--chart-5: oklch(0.495 0.19 270.958);
}