Flint is a shadcn/ui theme built around a deep green primary color (#465719) with deep violet accents (#2a1957). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#465719) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060703black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fbfdf7snow | #090a05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfefbwhite | #060703black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #465719darkolivegreen | #465719darkolivegreen |
| Primary foreground | #ddeab8palegoldenrod | #ddeab8palegoldenrod |
| Secondary | #2a1957midnightblue | #2a1957midnightblue |
| Secondary foreground | #c5b8ealightsteelblue | #c5b8ealightsteelblue |
| Muted | #e7e3f2lavender | #110d1cblack |
| Muted foreground | #5e586fdimgray | #9690a7darkgray |
| Accent | #2a1957midnightblue | #2a1957midnightblue |
| Accent foreground | #c5b8ealightsteelblue | #c5b8ealightsteelblue |
| Destructive | #831102maroon | #fb2a0eorangered |
| Destructive foreground | #fec1b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #465719darkolivegreen | #465719darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.73:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 8.29:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 8.29:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Flint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 118.634);
--foreground: oklch(0 0 0);
--muted: oklch(0.924 0.02 298.196);
--muted-foreground: oklch(0.474 0.039 297.116);
--popover: oklch(0.995 0.004 118.634);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.008 118.702);
--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.429 0.088 122.959);
--primary-foreground: oklch(0.915 0.068 119.88);
--secondary: oklch(0.277 0.106 290.006);
--secondary-foreground: oklch(0.81 0.072 296.995);
--accent: oklch(0.277 0.106 290.006);
--accent-foreground: oklch(0.81 0.072 296.995);
--destructive: oklch(0.391 0.149 31.276);
--destructive-foreground: oklch(0.863 0.072 27.216);
--ring: oklch(0.429 0.088 122.959);
--chart-1: oklch(0.429 0.088 122.959);
--chart-2: oklch(0.277 0.106 290.006);
--chart-3: oklch(0.277 0.106 290.006);
--chart-4: oklch(0.3 0.117 289.697);
--chart-5: oklch(0.434 0.091 123.166);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.011 118.618);
--foreground: oklch(0.994 0.002 118.596);
--muted: oklch(0.173 0.03 295.409);
--muted-foreground: oklch(0.666 0.036 297.626);
--popover: oklch(0.124 0.011 118.618);
--popover-foreground: oklch(0.994 0.002 118.596);
--card: oklch(0.141 0.012 118.618);
--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.429 0.088 122.959);
--primary-foreground: oklch(0.915 0.068 119.88);
--secondary: oklch(0.277 0.106 290.006);
--secondary-foreground: oklch(0.81 0.072 296.995);
--accent: oklch(0.277 0.106 290.006);
--accent-foreground: oklch(0.81 0.072 296.995);
--destructive: oklch(0.634 0.242 30.812);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.429 0.088 122.959);
--chart-1: oklch(0.429 0.088 122.959);
--chart-2: oklch(0.277 0.106 290.006);
--chart-3: oklch(0.277 0.106 290.006);
--chart-4: oklch(0.3 0.117 289.697);
--chart-5: oklch(0.434 0.091 123.166);
}