Front is a shadcn/ui theme built around a neutral gray primary color (#353734) with neutral gray accents (#373435). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the neutral gray primary (#353734) on a green-tinted background (#091004).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #091004black |
| Foreground | #070d03black | #f7f8f6whitesmoke |
| Card | #f9fdf7mintcream | #091004black |
| Card foreground | #070d03black | #f7f8f6whitesmoke |
| Popover | #f9fdf7mintcream | #091004black |
| Popover foreground | #070d03black | #f7f8f6whitesmoke |
| Primary | #353734darkslategray | #353734darkslategray |
| Primary foreground | #ced0cdlightgrey | #ced0cdlightgrey |
| Secondary | #343537darkslategray | #343537darkslategray |
| Secondary foreground | #cdced0lightgrey | #cdced0lightgrey |
| Muted | #e6eaeflavender | #101419black |
| Muted foreground | #484a4bdarkslategray | #b4b5b7silver |
| Accent | #373435darkslategray | #373435darkslategray |
| Accent foreground | #d0cdcelightgrey | #d0cdcelightgrey |
| Destructive | #9e0300darkred | #ff221fred |
| Destructive foreground | #ffd2d1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #353734darkslategray | #353734darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 18.10:1 | AAA |
| Text on card | 18.10:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 9.02:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Front in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.01 131.169);
--foreground: oklch(0.147 0.028 129.806);
--muted: oklch(0.935 0.009 255.004);
--muted-foreground: oklch(0.408 0.003 254.997);
--popover: oklch(0.99 0.01 131.169);
--popover-foreground: oklch(0.147 0.028 129.806);
--card: oklch(0.99 0.01 131.169);
--card-foreground: oklch(0.147 0.028 129.806);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.334 0.006 131.244);
--primary-foreground: oklch(0.855 0.004 131.129);
--secondary: oklch(0.33 0.004 255.014);
--secondary-foreground: oklch(0.852 0.003 254.971);
--accent: oklch(0.329 0.005 349.161);
--accent-foreground: oklch(0.851 0.004 348.852);
--destructive: oklch(0.44 0.179 29.468);
--destructive-foreground: oklch(0.902 0.051 19.282);
--ring: oklch(0.334 0.006 131.244);
--chart-1: oklch(0.334 0.006 131.244);
--chart-2: oklch(0.33 0.004 255.014);
--chart-3: oklch(0.329 0.005 349.161);
--chart-4: oklch(0.359 0.004 255.015);
--chart-5: oklch(0.338 0.012 131.403);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.028 130.956);
--foreground: oklch(0.979 0.003 131.11);
--muted: oklch(0.188 0.013 255.228);
--muted-foreground: oklch(0.772 0.003 254.973);
--popover: oklch(0.162 0.028 130.956);
--popover-foreground: oklch(0.979 0.003 131.11);
--card: oklch(0.162 0.028 130.956);
--card-foreground: oklch(0.979 0.003 131.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.334 0.006 131.244);
--primary-foreground: oklch(0.855 0.004 131.129);
--secondary: oklch(0.33 0.004 255.014);
--secondary-foreground: oklch(0.852 0.003 254.971);
--accent: oklch(0.329 0.005 349.161);
--accent-foreground: oklch(0.851 0.004 348.852);
--destructive: oklch(0.638 0.247 28.506);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.334 0.006 131.244);
--chart-1: oklch(0.334 0.006 131.244);
--chart-2: oklch(0.33 0.004 255.014);
--chart-3: oklch(0.329 0.005 349.161);
--chart-4: oklch(0.359 0.004 255.015);
--chart-5: oklch(0.338 0.012 131.403);
}