Tinted is a shadcn/ui theme built around a near-black primary color (#0b0705) with near-black accents (#0b0a05). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0b0705) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040201black |
| Foreground | #100a04black | #ffffffwhite |
| Card | #ffffffwhite | #040201black |
| Card foreground | #100a04black | #ffffffwhite |
| Popover | #ffffffwhite | #040201black |
| Popover foreground | #100a04black | #ffffffwhite |
| Primary | #0b0705black | #0b0705black |
| Primary foreground | #c59e7drosybrown | #c59e7drosybrown |
| Secondary | #0b0505black | #0b0505black |
| Secondary foreground | #c57d7frosybrown | #c57d7frosybrown |
| Muted | #f1dfe0mistyrose | #200e0fblack |
| Muted foreground | #494646darkslategray | #b9b6b6silver |
| Accent | #0b0a05black | #0b0a05black |
| Accent foreground | #979544olivedrab | #979544olivedrab |
| Destructive | #c6120cfirebrick | #e7150dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b0705black | #0b0705black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 6.38:1 | AA |
| Muted text | 7.28:1 | AAA |
| Accent | 6.31:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 6.38:1 | AA |
| Muted text | 9.22:1 | AAA |
| Accent | 6.31:1 | AA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Tinted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.019 68.844);
--muted: oklch(0.919 0.02 15.195);
--muted-foreground: oklch(0.397 0.004 14.972);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.019 68.844);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.019 68.844);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.134 0.01 69.519);
--primary-foreground: oklch(0.727 0.065 62.72);
--secondary: oklch(0.124 0.013 16.34);
--secondary-foreground: oklch(0.665 0.09 17.584);
--accent: oklch(0.144 0.014 106.621);
--accent-foreground: oklch(0.654 0.103 107.131);
--destructive: oklch(0.524 0.207 29.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.134 0.01 69.519);
--chart-1: oklch(0.134 0.01 69.519);
--chart-2: oklch(0.124 0.013 16.34);
--chart-3: oklch(0.144 0.014 106.621);
--chart-4: oklch(0.16 0.021 17.427);
--chart-5: oklch(0.135 0.011 69.902);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.094 0.011 72.891);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.031 18.22);
--muted-foreground: oklch(0.779 0.003 14.868);
--popover: oklch(0.094 0.011 72.891);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.094 0.011 72.891);
--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.134 0.01 69.519);
--primary-foreground: oklch(0.727 0.065 62.72);
--secondary: oklch(0.124 0.013 16.34);
--secondary-foreground: oklch(0.665 0.09 17.584);
--accent: oklch(0.144 0.014 106.621);
--accent-foreground: oklch(0.654 0.103 107.131);
--destructive: oklch(0.589 0.234 29.216);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.134 0.01 69.519);
--chart-1: oklch(0.134 0.01 69.519);
--chart-2: oklch(0.124 0.013 16.34);
--chart-3: oklch(0.144 0.014 106.621);
--chart-4: oklch(0.16 0.021 17.427);
--chart-5: oklch(0.135 0.011 69.902);
}