Thin is a shadcn/ui theme built around a blue primary color (#7ba5e0) with muted light red accents (#d2cbcb). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#7ba5e0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #03070cblack | #f8fafcghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020508black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #020508black | #fcfcfdwhite |
| Primary | #7ba5e0cornflowerblue | #7ba5e0cornflowerblue |
| Primary foreground | #081221black | #081221black |
| Secondary | #e8e8e8lavender | #1b2028black |
| Secondary foreground | #4f4f4fdarkslategray | #acb8c8silver |
| Muted | #f1eeeewhitesmoke | #0e0f11black |
| Muted foreground | #585050dimgray | #a7aaafdarkgray |
| Accent | #d2cbcblightgrey | #273345darkslategray |
| Accent foreground | #3a3131darkslategray | #c1ccdclightsteelblue |
| Destructive | #6b170bmaroon | #ed5c45tomato |
| Destructive foreground | #f7bab0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7ba5e0cornflowerblue | #7ba5e0cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 6.68:1 | AA |
| Muted text | 6.81:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 7.19:1 | AAA |
| Text on background | 20.07:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.19:1 | AA |
Paste this into your globals.css to use Thin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.015 248.932);
--muted: oklch(0.952 0.003 17.204);
--muted-foreground: oklch(0.439 0.011 17.585);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.109 0.013 248.473);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.109 0.013 248.473);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.715 0.098 256.88);
--primary-foreground: oklch(0.182 0.034 256.689);
--secondary: oklch(0.931 0 180);
--secondary-foreground: oklch(0.428 0 180);
--accent: oklch(0.847 0.009 17.327);
--accent-foreground: oklch(0.323 0.012 17.809);
--destructive: oklch(0.349 0.119 31.661);
--destructive-foreground: oklch(0.841 0.073 28.628);
--ring: oklch(0.715 0.098 256.88);
--chart-1: oklch(0.715 0.098 256.88);
--chart-2: oklch(0.931 0 180);
--chart-3: oklch(0.847 0.009 17.327);
--chart-4: oklch(0.954 0 180);
--chart-5: oklch(0.713 0.103 256.89);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 256.665);
--muted: oklch(0.168 0.003 256.724);
--muted-foreground: oklch(0.737 0.008 256.694);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.002 256.658);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.002 256.658);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.715 0.098 256.88);
--primary-foreground: oklch(0.182 0.034 256.689);
--secondary: oklch(0.242 0.017 256.815);
--secondary-foreground: oklch(0.778 0.026 256.758);
--accent: oklch(0.318 0.036 256.853);
--accent-foreground: oklch(0.842 0.025 256.75);
--destructive: oklch(0.659 0.184 31.191);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.715 0.098 256.88);
--chart-1: oklch(0.715 0.098 256.88);
--chart-2: oklch(0.242 0.017 256.815);
--chart-3: oklch(0.318 0.036 256.853);
--chart-4: oklch(0.272 0.02 256.82);
--chart-5: oklch(0.713 0.103 256.89);
}