Fries for shadcn/ui

Fries is a shadcn/ui theme built around a near-black primary color (#020203) with near-white accents (#eaeaeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#020203) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010104black
#fcfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#020203black
#020203black
Primary foreground
#9290a7lightslategray
#9290a7lightslategray
Secondary
#eaeaeblavender
#252334darkslategray
Secondary foreground
#505053darkslategray
#bbb9cfsilver
Muted
#d6d5e7gainsboro
#1a182ablack
Muted foreground
#454356darkslategray
#aba9bcdarkgray
Accent
#eaeaeblavender
#252334darkslategray
Accent foreground
#505053darkslategray
#bbb9cfsilver
Destructive
#b92d0efirebrick
#ee4620orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020203black
#020203black

Contrast

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

Light mode
Text on background20.84:1AAA
Text on card20.54:1AAA
Primary button6.67:1AA
Secondary button6.69:1AA
Muted text6.62:1AA
Accent6.69:1AA
Destructive6.09:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button6.67:1AA
Secondary button8.00:1AAA
Muted text7.56:1AAA
Accent8.00:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.076 0.017 288.162);
  --muted: oklch(0.879 0.025 290.464);
  --muted-foreground: oklch(0.393 0.031 289.481);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.089 0.003 290.609);
  --primary-foreground: oklch(0.662 0.035 289.991);
  --secondary: oklch(0.938 0.001 290.992);
  --secondary-foreground: oklch(0.433 0.005 290.782);
  --accent: oklch(0.938 0.001 290.992);
  --accent-foreground: oklch(0.433 0.005 290.782);
  --destructive: oklch(0.517 0.181 33.3);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.089 0.003 290.609);
  --chart-1: oklch(0.089 0.003 290.609);
  --chart-2: oklch(0.938 0.001 290.992);
  --chart-3: oklch(0.938 0.001 290.992);
  --chart-4: oklch(0.961 0.001 291);
  --chart-5: oklch(0.088 0.004 290.497);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.001 290.987);
  --muted: oklch(0.22 0.036 287.653);
  --muted-foreground: oklch(0.743 0.026 290.34);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.089 0.003 290.609);
  --primary-foreground: oklch(0.662 0.035 289.991);
  --secondary: oklch(0.266 0.03 288.725);
  --secondary-foreground: oklch(0.795 0.031 290.261);
  --accent: oklch(0.266 0.03 288.725);
  --accent-foreground: oklch(0.795 0.031 290.261);
  --destructive: oklch(0.634 0.211 33.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.089 0.003 290.609);
  --chart-1: oklch(0.089 0.003 290.609);
  --chart-2: oklch(0.266 0.03 288.725);
  --chart-3: oklch(0.266 0.03 288.725);
  --chart-4: oklch(0.293 0.035 288.621);
  --chart-5: oklch(0.088 0.004 290.497);
}