Fine is a shadcn/ui theme built around a yellow primary color (#ad9058) with green accents (#9ead58). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#ad9058) on a yellow-tinted background (#0f0c05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0c05black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #130f07black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0f0c05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ad9058peru | #ad9058peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #ad6658indianred | #ad6658indianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3edeclinen | #130d0cblack |
| Muted foreground | #423e3edarkslategray | #c1bebdsilver |
| Accent | #9ead58darkkhaki | #9ead58darkkhaki |
| Accent foreground | #222613black | #222613black |
| Destructive | #7e2d02saddlebrown | #fb610eorangered |
| Destructive foreground | #feceb4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ad9058peru | #ad9058peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 4.37:1 | AA Large |
| Muted text | 9.13:1 | AAA |
| Accent | 6.30:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 4.37:1 | AA Large |
| Muted text | 10.43:1 | AAA |
| Accent | 6.30:1 | AA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Fine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.007 31.056);
--muted-foreground: oklch(0.369 0.005 31.068);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.667 0.082 83.717);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.585 0.095 32.152);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.716 0.111 117.106);
--accent-foreground: oklch(0.258 0.033 116.522);
--destructive: oklch(0.41 0.121 42.427);
--destructive-foreground: oklch(0.886 0.065 49.796);
--ring: oklch(0.667 0.082 83.717);
--chart-1: oklch(0.667 0.082 83.717);
--chart-2: oklch(0.585 0.095 32.152);
--chart-3: oklch(0.716 0.111 117.106);
--chart-4: oklch(0.61 0.088 31.973);
--chart-5: oklch(0.673 0.088 83.504);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.015 86.739);
--foreground: oklch(1 0 180);
--muted: oklch(0.166 0.011 31.319);
--muted-foreground: oklch(0.804 0.004 31.052);
--popover: oklch(0.155 0.015 86.739);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.169 0.017 85.107);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.667 0.082 83.717);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.585 0.095 32.152);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.716 0.111 117.106);
--accent-foreground: oklch(0.258 0.033 116.522);
--destructive: oklch(0.684 0.204 41.664);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.667 0.082 83.717);
--chart-1: oklch(0.667 0.082 83.717);
--chart-2: oklch(0.585 0.095 32.152);
--chart-3: oklch(0.716 0.111 117.106);
--chart-4: oklch(0.61 0.088 31.973);
--chart-5: oklch(0.673 0.088 83.504);
}