Tuber is a shadcn/ui theme built around a muted violet primary color (#a196b6) with muted purple accents (#b196b6). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#a196b6) on a violet-tinted background (#09050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #09050fblack |
| Foreground | #080311black | #fcfcfdwhite |
| Card | #fcfbfewhite | #09050fblack |
| Card foreground | #080311black | #fcfcfdwhite |
| Popover | #fcfbfewhite | #09050fblack |
| Popover foreground | #080311black | #fcfcfdwhite |
| Primary | #a196b6darkgray | #a196b6darkgray |
| Primary foreground | #0c0a0fblack | #0c0a0fblack |
| Secondary | #969bb6darkgray | #969bb6darkgray |
| Secondary foreground | #0a0b0fblack | #0a0b0fblack |
| Muted | #eff0f6whitesmoke | #090a10black |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #b196b6darkgray | #b196b6darkgray |
| Accent foreground | #0e0a0fblack | #0e0a0fblack |
| Destructive | #a3310afirebrick | #f36c3ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a196b6darkgray | #a196b6darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 9.62:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 7.02:1 | AAA |
Paste this into your globals.css to use Tuber in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 302.161);
--foreground: oklch(0.121 0.036 301.212);
--muted: oklch(0.955 0.008 278.189);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.99 0.003 302.161);
--popover-foreground: oklch(0.121 0.036 301.212);
--card: oklch(0.99 0.003 302.161);
--card-foreground: oklch(0.121 0.036 301.212);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.693 0.048 301.12);
--primary-foreground: oklch(0.151 0.01 301.168);
--secondary: oklch(0.693 0.04 277.405);
--secondary-foreground: oklch(0.151 0.008 277.448);
--accent: oklch(0.707 0.055 321.229);
--accent-foreground: oklch(0.154 0.012 321.222);
--destructive: oklch(0.481 0.157 36.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.693 0.048 301.12);
--chart-1: oklch(0.693 0.048 301.12);
--chart-2: oklch(0.693 0.04 277.405);
--chart-3: oklch(0.707 0.055 321.229);
--chart-4: oklch(0.721 0.036 277.532);
--chart-5: oklch(0.688 0.056 300.923);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.026 301.466);
--foreground: oklch(0.991 0.003 302.172);
--muted: oklch(0.148 0.014 276.596);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.128 0.026 301.466);
--popover-foreground: oklch(0.991 0.003 302.172);
--card: oklch(0.128 0.026 301.466);
--card-foreground: oklch(0.991 0.003 302.172);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.693 0.048 301.12);
--primary-foreground: oklch(0.151 0.01 301.168);
--secondary: oklch(0.693 0.04 277.405);
--secondary-foreground: oklch(0.151 0.008 277.448);
--accent: oklch(0.707 0.055 321.229);
--accent-foreground: oklch(0.154 0.012 321.222);
--destructive: oklch(0.689 0.176 38.516);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.693 0.048 301.12);
--chart-1: oklch(0.693 0.048 301.12);
--chart-2: oklch(0.693 0.04 277.405);
--chart-3: oklch(0.707 0.055 321.229);
--chart-4: oklch(0.721 0.036 277.532);
--chart-5: oklch(0.688 0.056 300.923);
}