thêm-2 is a shadcn/ui theme built around a purple primary color (#a426a6) with muted light purple accents (#dacddb). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#a426a6) on a purple-tinted background (#100410).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #100410black |
| Foreground | #000000black | #faf5faghostwhite |
| Card | #fdf7fdsnow | #140514black |
| Card foreground | #000000black | #fcf8fcsnow |
| Popover | #fdf7fdsnow | #140514black |
| Popover foreground | #000000black | #fcf8fcsnow |
| Primary | #a426a6darkorchid | #a426a6darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dacddblightgrey | #312531darkslategray |
| Secondary foreground | #443144darkslategray | #ccbccdthistle |
| Muted | #eed8eelavender | #271127black |
| Muted foreground | #494649darkslategray | #b9b6b9silver |
| Accent | #dacddblightgrey | #312531darkslategray |
| Accent foreground | #443144darkslategray | #ccbccdthistle |
| Destructive | #c9130dfirebrick | #f01b14red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ece9eclavender | #241e24black |
| Input | #ece9eclavender | #241e24black |
| Ring | #a426a6darkorchid | #a426a6darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 5.84:1 | AA |
| Text on background | 18.60:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use thêm-2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 325.135);
--foreground: oklch(0 0 0);
--muted: oklch(0.906 0.038 325.39);
--muted-foreground: oklch(0.398 0.006 325.205);
--popover: oklch(0.982 0.01 325.169);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.01 325.169);
--card-foreground: oklch(0 0 0);
--border: oklch(0.937 0.006 325.141);
--input: oklch(0.937 0.006 325.141);
--primary: oklch(0.522 0.212 327.355);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.863 0.024 325.292);
--secondary-foreground: oklch(0.343 0.041 325.88);
--accent: oklch(0.863 0.024 325.292);
--accent-foreground: oklch(0.343 0.041 325.88);
--destructive: oklch(0.531 0.21 29.149);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.212 327.355);
--chart-1: oklch(0.522 0.212 327.355);
--chart-2: oklch(0.863 0.024 325.292);
--chart-3: oklch(0.863 0.024 325.292);
--chart-4: oklch(0.887 0.02 325.253);
--chart-5: oklch(0.526 0.218 327.386);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.034 326.677);
--foreground: oklch(0.975 0.009 325.163);
--muted: oklch(0.22 0.053 326.573);
--muted-foreground: oklch(0.78 0.005 325.146);
--popover: oklch(0.152 0.039 326.706);
--popover-foreground: oklch(0.983 0.006 325.141);
--card: oklch(0.152 0.039 326.706);
--card-foreground: oklch(0.983 0.006 325.141);
--border: oklch(0.245 0.013 325.449);
--input: oklch(0.245 0.013 325.449);
--primary: oklch(0.522 0.212 327.355);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.284 0.028 325.745);
--secondary-foreground: oklch(0.814 0.029 325.343);
--accent: oklch(0.284 0.028 325.745);
--accent-foreground: oklch(0.814 0.029 325.343);
--destructive: oklch(0.607 0.239 29.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.212 327.355);
--chart-1: oklch(0.522 0.212 327.355);
--chart-2: oklch(0.284 0.028 325.745);
--chart-3: oklch(0.284 0.028 325.745);
--chart-4: oklch(0.314 0.032 325.769);
--chart-5: oklch(0.526 0.218 327.386);
}