Field is a shadcn/ui theme built around a blue primary color (#799dd2) with indigo accents (#8279d2). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#799dd2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #000000black | #f6f7f9whitesmoke |
| Card | #fbfcfewhite | #000000black |
| Card foreground | #000000black | #f6f7f9whitesmoke |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #000000black | #f6f7f9whitesmoke |
| Primary | #799dd2cornflowerblue | #799dd2cornflowerblue |
| Primary foreground | #060b13black | #060b13black |
| Secondary | #79c9d2skyblue | #79c9d2skyblue |
| Secondary foreground | #061213black | #061213black |
| Muted | #eceeeewhitesmoke | #111313black |
| Muted foreground | #565758dimgray | #a7a9a9darkgray |
| Accent | #8279d2mediumpurple | #8279d2mediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #9d320csaddlebrown | #f06533tomato |
| Destructive foreground | #fde6demistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #799dd2cornflowerblue | #799dd2cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 5.62:1 | AA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 5.62:1 | AA |
| Destructive | 6.61:1 | AA |
Paste this into your globals.css to use Field in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 258.318);
--foreground: oklch(0 0 0);
--muted: oklch(0.948 0.002 204.976);
--muted-foreground: oklch(0.457 0.002 204.956);
--popover: oklch(0.991 0.002 258.318);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.002 258.318);
--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.69 0.089 258.305);
--primary-foreground: oklch(0.15 0.019 256.411);
--secondary: oklch(0.789 0.08 204.795);
--secondary-foreground: oklch(0.171 0.017 204.435);
--accent: oklch(0.624 0.132 286.481);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.472 0.148 37.569);
--destructive-foreground: oklch(0.941 0.027 41.108);
--ring: oklch(0.69 0.089 258.305);
--chart-1: oklch(0.69 0.089 258.305);
--chart-2: oklch(0.789 0.08 204.795);
--chart-3: oklch(0.624 0.132 286.481);
--chart-4: oklch(0.806 0.074 204.737);
--chart-5: oklch(0.688 0.094 258.297);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 258.321);
--muted: oklch(0.183 0.003 204.886);
--muted-foreground: oklch(0.734 0.002 204.971);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 258.321);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 258.321);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.69 0.089 258.305);
--primary-foreground: oklch(0.15 0.019 256.411);
--secondary: oklch(0.789 0.08 204.795);
--secondary-foreground: oklch(0.171 0.017 204.435);
--accent: oklch(0.624 0.132 286.481);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.674 0.182 39.275);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.69 0.089 258.305);
--chart-1: oklch(0.69 0.089 258.305);
--chart-2: oklch(0.789 0.08 204.795);
--chart-3: oklch(0.624 0.132 286.481);
--chart-4: oklch(0.806 0.074 204.737);
--chart-5: oklch(0.688 0.094 258.297);
}