Field Lights is a shadcn/ui theme built around a muted blue primary color (#74879a) with muted blue accents (#3e4a60). The light mode uses a blue-tinted background (#202631). Dark mode keeps the muted blue primary (#74879a) on a blue-tinted background (#202631).
| Token | Light | Dark |
|---|---|---|
| Background | #202631darkslategray | #202631darkslategray |
| Foreground | #d9d7celightgrey | #d9d7celightgrey |
| Card | #1c212bblack | #1c212bblack |
| Card foreground | #e4e3dcgainsboro | #e4e3dcgainsboro |
| Popover | #1a1f28black | #1a1f28black |
| Popover foreground | #efefeblinen | #efefeblinen |
| Primary | #74879alightslategray | #74879alightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #3c4044darkslategray | #3c4044darkslategray |
| Secondary foreground | #d6d9dbgainsboro | #d6d9dbgainsboro |
| Muted | #2d3139darkslategray | #2d3139darkslategray |
| Muted foreground | #a9afbcdarkgray | #a9afbcdarkgray |
| Accent | #3e4a60darkslategray | #3e4a60darkslategray |
| Accent foreground | #e3e6edlavender | #e3e6edlavender |
| Destructive | #e91a07red | #e91a07red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #30343bdarkslategray | #30343bdarkslategray |
| Input | #363b44darkslategray | #363b44darkslategray |
| Ring | #74879alightslategray | #74879alightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.52:1 | AAA |
| Text on card | 12.50:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.56:1 | AA |
| Text on background | 10.52:1 | AAA |
| Text on card | 12.50:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Field Lights in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.268 0.023 264.074);
--foreground: oklch(0.879 0.013 96.343);
--muted: oklch(0.312 0.016 264.317);
--muted-foreground: oklch(0.754 0.019 264.455);
--popover: oklch(0.238 0.019 264.111);
--popover-foreground: oklch(0.951 0.005 96.233);
--card: oklch(0.248 0.02 264.098);
--card-foreground: oklch(0.915 0.009 96.286);
--border: oklch(0.323 0.015 264.34);
--input: oklch(0.351 0.017 264.332);
--primary: oklch(0.615 0.037 248.423);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.368 0.008 248.055);
--secondary-foreground: oklch(0.883 0.004 247.869);
--accent: oklch(0.407 0.04 263.975);
--accent-foreground: oklch(0.926 0.009 264.518);
--destructive: oklch(0.592 0.234 30.029);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.615 0.037 248.423);
--chart-1: oklch(0.615 0.037 248.423);
--chart-2: oklch(0.368 0.008 248.055);
--chart-3: oklch(0.407 0.04 263.975);
--chart-4: oklch(0.397 0.009 248.059);
--chart-5: oklch(0.614 0.044 248.538);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.268 0.023 264.074);
--foreground: oklch(0.879 0.013 96.343);
--muted: oklch(0.312 0.016 264.317);
--muted-foreground: oklch(0.754 0.019 264.455);
--popover: oklch(0.238 0.019 264.111);
--popover-foreground: oklch(0.951 0.005 96.233);
--card: oklch(0.248 0.02 264.098);
--card-foreground: oklch(0.915 0.009 96.286);
--border: oklch(0.323 0.015 264.34);
--input: oklch(0.351 0.017 264.332);
--primary: oklch(0.615 0.037 248.423);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.368 0.008 248.055);
--secondary-foreground: oklch(0.883 0.004 247.869);
--accent: oklch(0.407 0.04 263.975);
--accent-foreground: oklch(0.926 0.009 264.518);
--destructive: oklch(0.592 0.234 30.029);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.615 0.037 248.423);
--chart-1: oklch(0.615 0.037 248.423);
--chart-2: oklch(0.368 0.008 248.055);
--chart-3: oklch(0.407 0.04 263.975);
--chart-4: oklch(0.397 0.009 248.059);
--chart-5: oklch(0.614 0.044 248.538);
}