French for shadcn/ui

French is a shadcn/ui theme built around a muted yellow primary color (#a2997c) with muted blue accents (#7c85a2). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted yellow primary (#a2997c) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080702black
Foreground
#090701black
#f9f8f6whitesmoke
Card
#fefdfbsnow
#080702black
Card foreground
#090701black
#f9f8f6whitesmoke
Popover
#fefdfbsnow
#080702black
Popover foreground
#090701black
#f9f8f6whitesmoke
Primary
#a2997crosybrown
#a2997crosybrown
Primary foreground
#000000black
#000000black
Secondary
#7c85a2lightslategray
#7c85a2lightslategray
Secondary foreground
#000000black
#000000black
Muted
#d9dbe2gainsboro
#1d1f26black
Muted foreground
#3e3f42darkslategray
#bdbec1silver
Accent
#7c85a2lightslategray
#7c85a2lightslategray
Accent foreground
#000000black
#000000black
Destructive
#b81714firebrick
#e93d3acrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2997crosybrown
#a2997crosybrown

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button7.37:1AAA
Secondary button5.70:1AA
Muted text7.63:1AAA
Accent5.70:1AA
Destructive6.64:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button7.37:1AAA
Secondary button5.70:1AA
Muted text8.88:1AAA
Accent5.70:1AA
Destructive4.04:1AA Large

CSS variables

Paste this into your globals.css to use French in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 92.693);
  --foreground: oklch(0.129 0.021 98.697);
  --muted: oklch(0.893 0.01 272.54);
  --muted-foreground: oklch(0.367 0.005 272.509);
  --popover: oklch(0.995 0.004 92.693);
  --popover-foreground: oklch(0.129 0.021 98.697);
  --card: oklch(0.995 0.004 92.693);
  --card-foreground: oklch(0.129 0.021 98.697);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.683 0.042 93.116);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.619 0.045 271.756);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.619 0.045 271.756);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.5 0.192 28.407);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.683 0.042 93.116);
  --chart-1: oklch(0.683 0.042 93.116);
  --chart-2: oklch(0.619 0.045 271.756);
  --chart-3: oklch(0.619 0.045 271.756);
  --chart-4: oklch(0.646 0.042 271.877);
  --chart-5: oklch(0.689 0.049 93.148);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 97.273);
  --foreground: oklch(0.98 0.004 92.692);
  --muted: oklch(0.239 0.014 271.96);
  --muted-foreground: oklch(0.802 0.004 272.603);
  --popover: oklch(0.126 0.015 97.273);
  --popover-foreground: oklch(0.98 0.004 92.692);
  --card: oklch(0.126 0.015 97.273);
  --card-foreground: oklch(0.98 0.004 92.692);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.683 0.042 93.116);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.619 0.045 271.756);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.619 0.045 271.756);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.619 0.21 26.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.683 0.042 93.116);
  --chart-1: oklch(0.683 0.042 93.116);
  --chart-2: oklch(0.619 0.045 271.756);
  --chart-3: oklch(0.619 0.045 271.756);
  --chart-4: oklch(0.646 0.042 271.877);
  --chart-5: oklch(0.689 0.049 93.148);
}