Front is a shadcn/ui theme built around a muted light teal primary color (#d3e3de) with neutral gray accents (#ced4d2). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the muted light teal primary (#d3e3de) on a teal-tinted background (#04100c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #04100cblack |
| Foreground | #010403black | #f9fbfamintcream |
| Card | #f8fcfbmintcream | #04100cblack |
| Card foreground | #010403black | #f9fbfamintcream |
| Popover | #f8fcfbmintcream | #04100cblack |
| Popover foreground | #010403black | #f9fbfamintcream |
| Primary | #d3e3degainsboro | #d3e3degainsboro |
| Primary foreground | #345148darkslategray | #345148darkslategray |
| Secondary | #ced4d2lightgrey | #252d2adarkslategray |
| Secondary foreground | #353b39darkslategray | #bcc8c4silver |
| Muted | #d9ede7gainsboro | #122620black |
| Muted foreground | #5d6562dimgray | #9aa2a0darkgray |
| Accent | #ced4d2lightgrey | #252d2adarkslategray |
| Accent foreground | #353b39darkslategray | #bcc8c4silver |
| Destructive | #bf3a12firebrick | #ec5d32tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3e3degainsboro | #d3e3degainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 4.90:1 | AA |
| Accent | 7.60:1 | AAA |
| Destructive | 5.46:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.08:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Front in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 176.549);
--foreground: oklch(0.1 0.014 176.88);
--muted: oklch(0.929 0.022 175.947);
--muted-foreground: oklch(0.498 0.01 176.048);
--popover: oklch(0.987 0.004 176.549);
--popover-foreground: oklch(0.1 0.014 176.88);
--card: oklch(0.987 0.004 176.549);
--card-foreground: oklch(0.1 0.014 176.88);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.903 0.018 176.07);
--primary-foreground: oklch(0.408 0.038 173.547);
--secondary: oklch(0.865 0.006 176.442);
--secondary-foreground: oklch(0.347 0.01 175.822);
--accent: oklch(0.865 0.006 176.442);
--accent-foreground: oklch(0.347 0.01 175.822);
--destructive: oklch(0.542 0.176 35.807);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.018 176.07);
--chart-1: oklch(0.903 0.018 176.07);
--chart-2: oklch(0.865 0.006 176.442);
--chart-3: oklch(0.865 0.006 176.442);
--chart-4: oklch(0.888 0.005 176.484);
--chart-5: oklch(0.905 0.02 175.99);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.02 174.178);
--foreground: oklch(0.987 0.003 176.57);
--muted: oklch(0.249 0.028 172.68);
--muted-foreground: oklch(0.705 0.009 176.264);
--popover: oklch(0.159 0.02 174.178);
--popover-foreground: oklch(0.987 0.003 176.57);
--card: oklch(0.159 0.02 174.178);
--card-foreground: oklch(0.987 0.003 176.57);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.903 0.018 176.07);
--primary-foreground: oklch(0.408 0.038 173.547);
--secondary: oklch(0.288 0.012 175.366);
--secondary-foreground: oklch(0.822 0.014 176.143);
--accent: oklch(0.288 0.012 175.366);
--accent-foreground: oklch(0.822 0.014 176.143);
--destructive: oklch(0.658 0.186 37.036);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.903 0.018 176.07);
--chart-1: oklch(0.903 0.018 176.07);
--chart-2: oklch(0.288 0.012 175.366);
--chart-3: oklch(0.288 0.012 175.366);
--chart-4: oklch(0.32 0.014 175.313);
--chart-5: oklch(0.905 0.02 175.99);
}