Tinted is a shadcn/ui theme built around a light purple primary color (#fceefb) with light cyan accents (#eefbfc). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#fceefb) on a purple-tinted background (#0e060e).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0e060eblack |
| Foreground | #160414black | #fbf8fbsnow |
| Card | #fefbfdsnow | #0e060eblack |
| Card foreground | #160414black | #fbf8fbsnow |
| Popover | #fefbfdsnow | #0e060eblack |
| Popover foreground | #160414black | #fbf8fbsnow |
| Primary | #fceefblavenderblush | #fceefblavenderblush |
| Primary foreground | #9c1c8fdarkmagenta | #9c1c8fdarkmagenta |
| Secondary | #fbfceefloralwhite | #fbfceefloralwhite |
| Secondary foreground | #40450cdarkolivegreen | #40450cdarkolivegreen |
| Muted | #f4f5eblinen | #13140ablack |
| Muted foreground | #4c4d47darkslategray | #b7b8b2silver |
| Accent | #eefbfcaliceblue | #eefbfcaliceblue |
| Accent foreground | #0c4045darkslategray | #0c4045darkslategray |
| Destructive | #d0400bchocolate | #f24a0dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fceefblavenderblush | #fceefblavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 9.75:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 10.77:1 | AAA |
| Destructive | 4.75:1 | AA |
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 9.75:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 10.77:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Tinted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 328.636);
--foreground: oklch(0.15 0.046 331.264);
--muted: oklch(0.966 0.013 111.273);
--muted-foreground: oklch(0.417 0.01 111.444);
--popover: oklch(0.991 0.004 328.636);
--popover-foreground: oklch(0.15 0.046 331.264);
--card: oklch(0.991 0.004 328.636);
--card-foreground: oklch(0.15 0.046 331.264);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.963 0.023 328.851);
--primary-foreground: oklch(0.489 0.2 332.916);
--secondary: oklch(0.986 0.019 111.37);
--secondary-foreground: oklch(0.374 0.077 115.222);
--accent: oklch(0.978 0.014 204.888);
--accent-foreground: oklch(0.341 0.052 206.054);
--destructive: oklch(0.576 0.189 36.685);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.963 0.023 328.851);
--chart-1: oklch(0.963 0.023 328.851);
--chart-2: oklch(0.986 0.019 111.37);
--chart-3: oklch(0.978 0.014 204.888);
--chart-4: oklch(0.996 0.005 111.102);
--chart-5: oklch(0.963 0.024 328.862);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.023 330.022);
--foreground: oklch(0.983 0.005 328.647);
--muted: oklch(0.188 0.019 112.903);
--muted-foreground: oklch(0.78 0.008 111.212);
--popover: oklch(0.14 0.023 330.022);
--popover-foreground: oklch(0.983 0.005 328.647);
--card: oklch(0.14 0.023 330.022);
--card-foreground: oklch(0.983 0.005 328.647);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.963 0.023 328.851);
--primary-foreground: oklch(0.489 0.2 332.916);
--secondary: oklch(0.986 0.019 111.37);
--secondary-foreground: oklch(0.374 0.077 115.222);
--accent: oklch(0.978 0.014 204.888);
--accent-foreground: oklch(0.341 0.052 206.054);
--destructive: oklch(0.644 0.213 36.489);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.963 0.023 328.851);
--chart-1: oklch(0.963 0.023 328.851);
--chart-2: oklch(0.986 0.019 111.37);
--chart-3: oklch(0.978 0.014 204.888);
--chart-4: oklch(0.996 0.005 111.102);
--chart-5: oklch(0.963 0.024 328.862);
}