French is a shadcn/ui theme built around a deep blue primary color (#193271) with muted light blue accents (#cbced8). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the deep blue primary (#193271) on a neutral background (#030408).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #030408black |
| Foreground | #010204black | #f6f7f9whitesmoke |
| Card | #f3f5fcaliceblue | #04060bblack |
| Card foreground | #000000black | #f9fafbghostwhite |
| Popover | #f7f9fdghostwhite | #030408black |
| Popover foreground | #010204black | #f6f7f9whitesmoke |
| Primary | #193271midnightblue | #193271midnightblue |
| Primary foreground | #c9d5f3powderblue | #c9d5f3powderblue |
| Secondary | #dedfe3gainsboro | #323334darkslategray |
| Secondary foreground | #42454ddarkslategray | #cbcccdlightgrey |
| Muted | #e6e9eflavender | #101219black |
| Muted foreground | #4e5465dimgray | #9aa1b1darkgray |
| Accent | #cbced8lightgrey | #3b3e45darkslategray |
| Accent foreground | #303540darkslategray | #d6d7dcgainsboro |
| Destructive | #6c1204maroon | #f53214orangered |
| Destructive foreground | #fbb2a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #193271midnightblue | #193271midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use French in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 268.747);
--foreground: oklch(0.084 0.01 262.11);
--muted: oklch(0.933 0.009 268.721);
--muted-foreground: oklch(0.447 0.029 268.226);
--popover: oklch(0.981 0.006 268.747);
--popover-foreground: oklch(0.084 0.01 262.11);
--card: oklch(0.971 0.009 268.723);
--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.337 0.114 264.694);
--primary-foreground: oklch(0.872 0.044 268.362);
--secondary: oklch(0.905 0.005 268.752);
--secondary-foreground: oklch(0.39 0.014 268.491);
--accent: oklch(0.852 0.013 268.676);
--accent-foreground: oklch(0.328 0.021 268.228);
--destructive: oklch(0.345 0.125 31.853);
--destructive-foreground: oklch(0.83 0.088 28.837);
--ring: oklch(0.337 0.114 264.694);
--chart-1: oklch(0.337 0.114 264.694);
--chart-2: oklch(0.905 0.005 268.752);
--chart-3: oklch(0.852 0.013 268.676);
--chart-4: oklch(0.929 0.004 268.763);
--chart-5: oklch(0.336 0.119 264.509);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.013 262.272);
--foreground: oklch(0.975 0.003 268.772);
--muted: oklch(0.185 0.014 268.108);
--muted-foreground: oklch(0.708 0.025 268.504);
--popover: oklch(0.107 0.013 262.272);
--popover-foreground: oklch(0.975 0.003 268.772);
--card: oklch(0.122 0.015 262.419);
--card-foreground: oklch(0.984 0.002 268.779);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.337 0.114 264.694);
--primary-foreground: oklch(0.872 0.044 268.362);
--secondary: oklch(0.32 0.001 268.762);
--secondary-foreground: oklch(0.845 0.001 268.782);
--accent: oklch(0.362 0.013 268.498);
--accent-foreground: oklch(0.88 0.006 268.741);
--destructive: oklch(0.629 0.232 31.438);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.337 0.114 264.694);
--chart-1: oklch(0.337 0.114 264.694);
--chart-2: oklch(0.32 0.001 268.762);
--chart-3: oklch(0.362 0.013 268.498);
--chart-4: oklch(0.35 0.002 268.761);
--chart-5: oklch(0.336 0.119 264.509);
}