French for shadcn/ui

French is a shadcn/ui theme built around a near-black primary color (#111312) with near-black accents (#131211). The light mode uses a neutral background (#fbfefd). Dark mode keeps the near-black primary (#111312) on a teal-tinted background (#05100c).

Color palette

TokenLightDark
Background
#fbfefdwhite
#05100cblack
Foreground
#010403black
#fcfdfdwhite
Card
#f7fdfbmintcream
#06130fblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfbmintcream
#06130fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#111312black
#111312black
Primary foreground
#a6b0acdarkgray
#a6b0acdarkgray
Secondary
#121113black
#121113black
Secondary foreground
#aca6b0darkgray
#aca6b0darkgray
Muted
#ddcae7thistle
#2b1835darkslategray
Muted foreground
#5b535fdimgray
#a8a0acdarkgray
Accent
#131211black
#131211black
Accent foreground
#b0aca6darkgray
#b0aca6darkgray
Destructive
#a03108saddlebrown
#f24a0dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#111312black
#111312black

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.36:1AAA
Primary button8.38:1AAA
Secondary button7.92:1AAA
Muted text4.81:1AA
Accent8.27:1AAA
Destructive7.16:1AAA
Dark mode
Text on background19.03:1AAA
Text on card18.91:1AAA
Primary button8.38:1AAA
Secondary button7.92:1AAA
Muted text6.47:1AA
Accent8.27:1AAA
Destructive3.64: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.994 0.003 173.478);
  --foreground: oklch(0.1 0.014 173.872);
  --muted: oklch(0.864 0.044 313.937);
  --muted-foreground: oklch(0.455 0.022 313.948);
  --popover: oklch(0.988 0.007 173.38);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.007 173.38);
  --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.184 0.004 172.973);
  --primary-foreground: oklch(0.748 0.012 173.085);
  --secondary: oklch(0.179 0.005 314.07);
  --secondary-foreground: oklch(0.733 0.016 314.098);
  --accent: oklch(0.183 0.003 83.065);
  --accent-foreground: oklch(0.747 0.01 83.065);
  --destructive: oklch(0.476 0.153 37.091);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.184 0.004 172.973);
  --chart-1: oklch(0.184 0.004 172.973);
  --chart-2: oklch(0.179 0.005 314.07);
  --chart-3: oklch(0.183 0.003 83.065);
  --chart-4: oklch(0.212 0.007 314.047);
  --chart-5: oklch(0.185 0.006 172.674);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.019 171.288);
  --foreground: oklch(0.994 0.002 173.512);
  --muted: oklch(0.248 0.058 312.778);
  --muted-foreground: oklch(0.715 0.02 314.065);
  --popover: oklch(0.174 0.022 169.883);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.022 169.883);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.184 0.004 172.973);
  --primary-foreground: oklch(0.748 0.012 173.085);
  --secondary: oklch(0.179 0.005 314.07);
  --secondary-foreground: oklch(0.733 0.016 314.098);
  --accent: oklch(0.183 0.003 83.065);
  --accent-foreground: oklch(0.747 0.01 83.065);
  --destructive: oklch(0.644 0.213 36.489);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.184 0.004 172.973);
  --chart-1: oklch(0.184 0.004 172.973);
  --chart-2: oklch(0.179 0.005 314.07);
  --chart-3: oklch(0.183 0.003 83.065);
  --chart-4: oklch(0.212 0.007 314.047);
  --chart-5: oklch(0.185 0.006 172.674);
}