Fluke is a shadcn/ui theme built around a vivid deep green primary color (#526808) with vivid deep purple accents (#680852). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the vivid deep green primary (#526808) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #060703black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #fbfcf8snow | #060703black |
| Card foreground | #030401black | #fdfdfcwhite |
| Popover | #fbfcf8snow | #060703black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #526808darkolivegreen | #526808darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #085268darkslategray | #085268darkslategray |
| Secondary foreground | #aae6f9paleturquoise | #aae6f9paleturquoise |
| Muted | #e0edf1lavender | #0e1b1fblack |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #680852purple | #680852purple |
| Accent foreground | #f9aae6plum | #f9aae6plum |
| Destructive | #8d390csaddlebrown | #ee793acoral |
| Destructive foreground | #fbdfd0blanchedalmond | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #526808darkolivegreen | #526808darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 6.37:1 | AA |
| Muted text | 7.98:1 | AAA |
| Accent | 6.81:1 | AA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 6.37:1 | AA |
| Muted text | 9.01:1 | AAA |
| Accent | 6.81:1 | AA |
| Destructive | 7.42:1 | AAA |
Paste this into your globals.css to use Fluke in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 117.171);
--foreground: oklch(0.104 0.016 117.423);
--muted: oklch(0.936 0.015 217.844);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(0.989 0.005 117.171);
--popover-foreground: oklch(0.104 0.016 117.423);
--card: oklch(0.989 0.005 117.171);
--card-foreground: oklch(0.104 0.016 117.423);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.483 0.116 123.394);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.408 0.075 225.338);
--secondary-foreground: oklch(0.89 0.066 218.589);
--accent: oklch(0.354 0.146 340.671);
--accent-foreground: oklch(0.831 0.12 335.415);
--destructive: oklch(0.454 0.125 43.692);
--destructive-foreground: oklch(0.923 0.037 50.173);
--ring: oklch(0.483 0.116 123.394);
--chart-1: oklch(0.483 0.116 123.394);
--chart-2: oklch(0.408 0.075 225.338);
--chart-3: oklch(0.354 0.146 340.671);
--chart-4: oklch(0.446 0.082 225.65);
--chart-5: oklch(0.488 0.118 123.567);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 117.31);
--foreground: oklch(0.993 0.001 117.1);
--muted: oklch(0.214 0.02 219.005);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.125 0.013 117.31);
--popover-foreground: oklch(0.993 0.001 117.1);
--card: oklch(0.125 0.013 117.31);
--card-foreground: oklch(0.993 0.001 117.1);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.483 0.116 123.394);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.408 0.075 225.338);
--secondary-foreground: oklch(0.89 0.066 218.589);
--accent: oklch(0.354 0.146 340.671);
--accent-foreground: oklch(0.831 0.12 335.415);
--destructive: oklch(0.7 0.163 46.324);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.483 0.116 123.394);
--chart-1: oklch(0.483 0.116 123.394);
--chart-2: oklch(0.408 0.075 225.338);
--chart-3: oklch(0.354 0.146 340.671);
--chart-4: oklch(0.446 0.082 225.65);
--chart-5: oklch(0.488 0.118 123.567);
}