Tiny is a shadcn/ui theme built around a neutral gray primary color (#aaaaac) with neutral gray accents (#abaaac). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the neutral gray primary (#aaaaac) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06050ablack |
| Foreground | #060317black | #ffffffwhite |
| Card | #f8f7fdghostwhite | #08060eblack |
| Card foreground | #050212black | #ffffffwhite |
| Popover | #f8f7fdghostwhite | #08060eblack |
| Popover foreground | #050212black | #ffffffwhite |
| Primary | #aaaaacdarkgray | #aaaaacdarkgray |
| Primary foreground | #121212black | #121212black |
| Secondary | #aaabacdarkgray | #aaabacdarkgray |
| Secondary foreground | #121212black | #121212black |
| Muted | #e9eaeclavender | #131416black |
| Muted foreground | #5e6268dimgray | #979aa1darkgray |
| Accent | #abaaacdarkgray | #abaaacdarkgray |
| Accent foreground | #121212black | #121212black |
| Destructive | #c1200bfirebrick | #f3422borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aaaaacdarkgray | #aaaaacdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 5.10:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Tiny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 294.759);
--foreground: oklch(0.123 0.047 289.519);
--muted: oklch(0.937 0.002 265.995);
--muted-foreground: oklch(0.494 0.011 265.888);
--popover: oklch(0.979 0.007 294.692);
--popover-foreground: oklch(0.112 0.042 290.944);
--card: oklch(0.979 0.007 294.692);
--card-foreground: oklch(0.112 0.042 290.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.739 0.002 294.763);
--primary-foreground: oklch(0.181 0.001 294.749);
--secondary: oklch(0.74 0.002 265.996);
--secondary-foreground: oklch(0.181 0.001 265.994);
--accent: oklch(0.739 0.003 315.412);
--accent-foreground: oklch(0.181 0.001 315.409);
--destructive: oklch(0.522 0.197 30.906);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.739 0.002 294.763);
--chart-1: oklch(0.739 0.002 294.763);
--chart-2: oklch(0.74 0.002 265.996);
--chart-3: oklch(0.739 0.003 315.412);
--chart-4: oklch(0.764 0.002 265.997);
--chart-5: oklch(0.733 0.01 294.578);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.015 294.101);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.004 265.913);
--muted-foreground: oklch(0.685 0.011 265.932);
--popover: oklch(0.132 0.018 293.498);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.018 293.498);
--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.739 0.002 294.763);
--primary-foreground: oklch(0.181 0.001 294.749);
--secondary: oklch(0.74 0.002 265.996);
--secondary-foreground: oklch(0.181 0.001 265.994);
--accent: oklch(0.739 0.003 315.412);
--accent-foreground: oklch(0.181 0.001 315.409);
--destructive: oklch(0.639 0.216 30.97);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.739 0.002 294.763);
--chart-1: oklch(0.739 0.002 294.763);
--chart-2: oklch(0.74 0.002 265.996);
--chart-3: oklch(0.739 0.003 315.412);
--chart-4: oklch(0.764 0.002 265.997);
--chart-5: oklch(0.733 0.01 294.578);
}