French is a shadcn/ui theme built around a near-black primary color (#030302) with near-black accents (#020203). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030302) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #080702black | #faf9f5whitesmoke |
| Card | #ffffffwhite | #030302black |
| Card foreground | #080702black | #faf9f5whitesmoke |
| Popover | #ffffffwhite | #030302black |
| Popover foreground | #080702black | #faf9f5whitesmoke |
| Primary | #030302black | #030302black |
| Primary foreground | #a5a292darkgray | #a5a292darkgray |
| Secondary | #020203black | #020203black |
| Secondary foreground | #9295a5darkgray | #9295a5darkgray |
| Muted | #f1f1f4whitesmoke | #0b0c0eblack |
| Muted foreground | #393b47darkslategray | #b8bbc6silver |
| Accent | #020203black | #020203black |
| Accent foreground | #9295a5darkgray | #9295a5darkgray |
| Destructive | #a6170cfirebrick | #e41f11red |
| Destructive foreground | #fde9e7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030302black | #030302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 9.86:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 10.22:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use French in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.017 100.538);
--muted: oklch(0.959 0.003 276.12);
--muted-foreground: oklch(0.356 0.02 275.355);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.128 0.017 100.538);
--card: oklch(1 0 180);
--card-foreground: oklch(0.128 0.017 100.538);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.094 0.002 97.024);
--primary-foreground: oklch(0.71 0.023 96.551);
--secondary: oklch(0.09 0.002 275.226);
--secondary-foreground: oklch(0.673 0.024 275.668);
--accent: oklch(0.09 0.002 275.226);
--accent-foreground: oklch(0.673 0.024 275.668);
--destructive: oklch(0.465 0.178 29.679);
--destructive-foreground: oklch(0.949 0.022 22.492);
--ring: oklch(0.094 0.002 97.024);
--chart-1: oklch(0.094 0.002 97.024);
--chart-2: oklch(0.09 0.002 275.226);
--chart-3: oklch(0.09 0.002 275.226);
--chart-4: oklch(0.143 0.004 275.449);
--chart-5: oklch(0.094 0.003 97.268);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.007 98.55);
--foreground: oklch(0.981 0.005 96.23);
--muted: oklch(0.154 0.005 275.682);
--muted-foreground: oklch(0.793 0.016 275.889);
--popover: oklch(0.097 0.007 98.55);
--popover-foreground: oklch(0.981 0.005 96.23);
--card: oklch(0.097 0.007 98.55);
--card-foreground: oklch(0.981 0.005 96.23);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.094 0.002 97.024);
--primary-foreground: oklch(0.71 0.023 96.551);
--secondary: oklch(0.09 0.002 275.226);
--secondary-foreground: oklch(0.673 0.024 275.668);
--accent: oklch(0.09 0.002 275.226);
--accent-foreground: oklch(0.673 0.024 275.668);
--destructive: oklch(0.586 0.227 29.732);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.002 97.024);
--chart-1: oklch(0.094 0.002 97.024);
--chart-2: oklch(0.09 0.002 275.226);
--chart-3: oklch(0.09 0.002 275.226);
--chart-4: oklch(0.143 0.004 275.449);
--chart-5: oklch(0.094 0.003 97.268);
}