Required Tin is a shadcn/ui theme built around a neutral gray primary color (#919191) with neutral gray accents (#919191). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#919191) on a red-tinted background (#0c0404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0404black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #100505black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0c0404black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #919191lightslategray | #919191lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #919191lightslategray | #919191lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #eeddddgainsboro | #221111black |
| Muted foreground | #705757dimgray | #a88f8frosybrown |
| Accent | #919191lightslategray | #919191lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #850700maroon | #eb0c00red |
| Destructive foreground | #ffbbb8lightpink | #ffffffwhite |
| Border | #f4f1f1whitesmoke | #241e1eblack |
| Input | #f4f1f1whitesmoke | #241e1eblack |
| Ring | #919191lightslategray | #919191lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 6.69:1 | AA |
| Muted text | 5.01:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 6.46:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 6.69:1 | AA |
| Muted text | 6.05:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 4.59:1 | AA |
Paste this into your globals.css to use Required Tin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.081 0.016 21.106);
--muted: oklch(0.911 0.02 17.52);
--muted-foreground: oklch(0.482 0.034 18.417);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.081 0.016 21.106);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.96 0.003 17.205);
--input: oklch(0.96 0.003 17.205);
--primary: oklch(0.658 0 180);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.658 0 180);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.658 0 180);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.389 0.156 30.103);
--destructive-foreground: oklch(0.854 0.079 22.265);
--ring: oklch(0.658 0 180);
--chart-1: oklch(0.658 0 180);
--chart-2: oklch(0.658 0 180);
--chart-3: oklch(0.658 0 180);
--chart-4: oklch(0.683 0 180);
--chart-5: oklch(0.653 0.008 17.357);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.02 20.423);
--foreground: oklch(0.991 0.001 17.182);
--muted: oklch(0.201 0.03 20.053);
--muted-foreground: oklch(0.672 0.031 17.956);
--popover: oklch(0.119 0.02 20.423);
--popover-foreground: oklch(0.991 0.001 17.182);
--card: oklch(0.133 0.023 20.597);
--card-foreground: oklch(1 0 180);
--border: oklch(0.242 0.01 17.887);
--input: oklch(0.242 0.01 17.887);
--primary: oklch(0.658 0 180);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.658 0 180);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.658 0 180);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.592 0.24 29.669);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.658 0 180);
--chart-1: oklch(0.658 0 180);
--chart-2: oklch(0.658 0 180);
--chart-3: oklch(0.658 0 180);
--chart-4: oklch(0.683 0 180);
--chart-5: oklch(0.653 0.008 17.357);
}