Front is a shadcn/ui theme built around a near-black primary color (#040b04) with near-black accents (#0b0404). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the near-black primary (#040b04) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020302black |
| Foreground | #010401black | #f9fbf9mintcream |
| Card | #fcfdfcwhite | #020302black |
| Card foreground | #010401black | #f9fbf9mintcream |
| Popover | #fcfdfcwhite | #020302black |
| Popover foreground | #010401black | #f9fbf9mintcream |
| Primary | #040b04black | #040b04black |
| Primary foreground | #79c879darkseagreen | #79c879darkseagreen |
| Secondary | #04040bblack | #04040bblack |
| Secondary foreground | #c1c1e6lightsteelblue | #c1c1e6lightsteelblue |
| Muted | #e6e6f0lavender | #0f0f1ablack |
| Muted foreground | #5c5c60dimgray | #9f9fa3darkgray |
| Accent | #0b0404black | #0b0404black |
| Accent foreground | #c87979rosybrown | #c87979rosybrown |
| Destructive | #a9390asaddlebrown | #f25c1cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040b04black | #040b04black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 9.81:1 | AAA |
| Secondary button | 11.69:1 | AAA |
| Muted text | 5.34:1 | AA |
| Accent | 6.24:1 | AA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 9.81:1 | AAA |
| Secondary button | 11.69:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 6.24:1 | AA |
| Destructive | 6.33:1 | AA |
Paste this into your globals.css to use Front in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 145.557);
--foreground: oklch(0.097 0.02 143.805);
--muted: oklch(0.926 0.014 286.129);
--muted-foreground: oklch(0.478 0.006 286.171);
--popover: oklch(0.993 0.003 145.557);
--popover-foreground: oklch(0.097 0.02 143.805);
--card: oklch(0.993 0.003 145.557);
--card-foreground: oklch(0.097 0.02 143.805);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.138 0.021 144.352);
--primary-foreground: oklch(0.763 0.136 144.102);
--secondary: oklch(0.115 0.018 283.267);
--secondary-foreground: oklch(0.824 0.051 285.232);
--accent: oklch(0.123 0.015 19.407);
--accent-foreground: oklch(0.661 0.099 20.07);
--destructive: oklch(0.501 0.155 39.086);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.138 0.021 144.352);
--chart-1: oklch(0.138 0.021 144.352);
--chart-2: oklch(0.115 0.018 283.267);
--chart-3: oklch(0.123 0.015 19.407);
--chart-4: oklch(0.147 0.028 282.47);
--chart-5: oklch(0.138 0.022 144.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.01 144.711);
--foreground: oklch(0.985 0.002 145.56);
--muted: oklch(0.175 0.021 284.022);
--muted-foreground: oklch(0.703 0.005 286.259);
--popover: oklch(0.095 0.01 144.711);
--popover-foreground: oklch(0.985 0.002 145.56);
--card: oklch(0.095 0.01 144.711);
--card-foreground: oklch(0.985 0.002 145.56);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.138 0.021 144.352);
--primary-foreground: oklch(0.763 0.136 144.102);
--secondary: oklch(0.115 0.018 283.267);
--secondary-foreground: oklch(0.824 0.051 285.232);
--accent: oklch(0.123 0.015 19.407);
--accent-foreground: oklch(0.661 0.099 20.07);
--destructive: oklch(0.664 0.196 39.978);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.138 0.021 144.352);
--chart-1: oklch(0.138 0.021 144.352);
--chart-2: oklch(0.115 0.018 283.267);
--chart-3: oklch(0.123 0.015 19.407);
--chart-4: oklch(0.147 0.028 282.47);
--chart-5: oklch(0.138 0.022 144.261);
}