French for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button8.05:1AAA
Secondary button6.96:1AA
Muted text9.86:1AAA
Accent6.96:1AA
Destructive6.54:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button8.05:1AAA
Secondary button6.96:1AA
Muted text10.22:1AAA
Accent6.96:1AA
Destructive4.67:1AA

CSS variables

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);
}