Fine theme is a shadcn/ui theme built around a vivid blue primary color (#1d9bf0) with near-white accents (#e7e7e8). The light mode uses a neutral background (#fafafa). Dark mode keeps the vivid blue primary (#1d9bf0) on a blue-tinted background (#15202b).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #15202bblack |
| Foreground | #000000black | #f7f9f9whitesmoke |
| Card | #fafafasnow | #15202bblack |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fbfdfcwhite | #15202bblack |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #1d9bf0dodgerblue | #1d9bf0dodgerblue |
| Primary foreground | #f7f9f9whitesmoke | #f7f9f9whitesmoke |
| Secondary | #eafaffaliceblue | #cdd9e0lightgrey |
| Secondary foreground | #0f1419black | #0b0d0dblack |
| Muted | #e7e7e8lavender | #24323edarkslategray |
| Muted foreground | #536471dimgray | #8b98a5lightslategray |
| Accent | #e7e7e8lavender | #222d38darkslategray |
| Accent foreground | #2c2c2cdarkslategray | #ebeff2whitesmoke |
| Destructive | #f4212ecrimson | #f4212ecrimson |
| Destructive foreground | #ffffffwhite | #ffededseashell |
| Border | #eff3f4whitesmoke | #38444ddarkslategray |
| Input | #cfd9delightgrey | #273340darkslategray |
| Ring | #1d9bf0dodgerblue | #1d9bf0dodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 2.83:1 | Fail |
| Secondary button | 17.29:1 | AAA |
| Muted text | 4.95:1 | AA |
| Accent | 11.29:1 | AAA |
| Destructive | 4.11:1 | AA Large |
| Text on background | 15.60:1 | AAA |
| Text on card | 16.17:1 | AAA |
| Primary button | 2.83:1 | Fail |
| Secondary button | 13.54:1 | AAA |
| Muted text | 4.44:1 | AA Large |
| Accent | 12.10:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Fine theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 170.538);
--foreground: oklch(0 0 0);
--muted: oklch(0.928 0.001 286.373);
--muted-foreground: oklch(0.494 0.029 241.156);
--popover: oklch(0.993 0.003 151.364);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0 170.538);
--card-foreground: oklch(0 0 0);
--border: oklch(0.961 0.004 214.329);
--input: oklch(0.879 0.013 228.946);
--primary: oklch(0.667 0.161 245.536);
--primary-foreground: oklch(0.981 0.002 197.123);
--secondary: oklch(0.975 0.018 218.381);
--secondary-foreground: oklch(0.188 0.013 248.51);
--accent: oklch(0.928 0.001 286.373);
--accent-foreground: oklch(0.293 0 180);
--destructive: oklch(0.619 0.238 25.765);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.667 0.161 245.536);
--chart-1: oklch(0.667 0.161 245.536);
--chart-2: oklch(0.975 0.018 218.381);
--chart-3: oklch(0.928 0.001 286.373);
--chart-4: oklch(0.993 0.005 218.282);
--chart-5: oklch(0.67 0.165 245.991);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.239 0.026 248.987);
--foreground: oklch(0.981 0.002 197.123);
--muted: oklch(0.311 0.028 242.317);
--muted-foreground: oklch(0.674 0.024 248.189);
--popover: oklch(0.239 0.026 248.987);
--popover-foreground: oklch(0.986 0.003 151.365);
--card: oklch(0.239 0.026 248.987);
--card-foreground: oklch(0.993 0.001 151.386);
--border: oklch(0.38 0.022 240.586);
--input: oklch(0.316 0.028 250.764);
--primary: oklch(0.667 0.161 245.536);
--primary-foreground: oklch(0.981 0.002 197.123);
--secondary: oklch(0.878 0.016 233.059);
--secondary-foreground: oklch(0.156 0.002 232.994);
--accent: oklch(0.292 0.026 248.738);
--accent-foreground: oklch(0.949 0.006 244.688);
--destructive: oklch(0.619 0.238 25.765);
--destructive-foreground: oklch(0.96 0.02 17.499);
--ring: oklch(0.667 0.161 245.536);
--chart-1: oklch(0.667 0.161 245.536);
--chart-2: oklch(0.878 0.016 233.059);
--chart-3: oklch(0.292 0.026 248.738);
--chart-4: oklch(0.902 0.013 232.999);
--chart-5: oklch(0.67 0.165 245.991);
}