Front for shadcn/ui

Front is a shadcn/ui theme built around a near-white primary color (#fafbff) with near-white accents (#fbfffa). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the near-white primary (#fafbff) on an indigo-tinted background (#04040b).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#04040bblack
Foreground
#020312black
#ffffffwhite
Card
#f4f4fbwhitesmoke
#05060fblack
Card foreground
#02030eblack
#ffffffwhite
Popover
#f8f8fcghostwhite
#04040bblack
Popover foreground
#020312black
#ffffffwhite
Primary
#fafbffghostwhite
#fafbffghostwhite
Primary foreground
#1320b4mediumblue
#1320b4mediumblue
Secondary
#fffafbsnow
#fffafbsnow
Secondary foreground
#b41320firebrick
#b41320firebrick
Muted
#f5eaeblinen
#150a0bblack
Muted foreground
#755759dimgray
#a88a8crosybrown
Accent
#fbfffamintcream
#fbfffamintcream
Accent foreground
#105809darkgreen
#105809darkgreen
Destructive
#df1701red
#fe3b25orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fafbffghostwhite
#fafbffghostwhite

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card18.80:1AAA
Primary button10.71:1AAA
Secondary button6.66:1AA
Muted text5.48:1AA
Accent8.55:1AAA
Destructive4.91:1AA
Dark mode
Text on background20.40:1AAA
Text on card20.20:1AAA
Primary button10.71:1AAA
Secondary button6.66:1AA
Muted text6.18:1AA
Accent8.55:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 282.115);
  --foreground: oklch(0.112 0.039 271.336);
  --muted: oklch(0.947 0.012 11.519);
  --muted-foreground: oklch(0.488 0.041 13.111);
  --popover: oklch(0.98 0.006 282.115);
  --popover-foreground: oklch(0.112 0.039 271.336);
  --card: oklch(0.97 0.009 282.064);
  --card-foreground: oklch(0.101 0.033 271.315);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.988 0.005 282.128);
  --primary-foreground: oklch(0.377 0.222 266.678);
  --secondary: oklch(0.99 0.004 11.348);
  --secondary-foreground: oklch(0.492 0.19 25.18);
  --accent: oklch(0.995 0.007 143.103);
  --accent-foreground: oklch(0.401 0.127 141.969);
  --destructive: oklch(0.574 0.227 30.344);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.005 282.128);
  --chart-1: oklch(0.988 0.005 282.128);
  --chart-2: oklch(0.99 0.004 11.348);
  --chart-3: oklch(0.995 0.007 143.103);
  --chart-4: oklch(1.021 0.009 191.064);
  --chart-5: oklch(0.988 0.005 282.125);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.019 277.333);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.16 0.019 13.964);
  --muted-foreground: oklch(0.661 0.037 12.496);
  --popover: oklch(0.115 0.019 277.333);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.022 277.442);
  --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.988 0.005 282.128);
  --primary-foreground: oklch(0.377 0.222 266.678);
  --secondary: oklch(0.99 0.004 11.348);
  --secondary-foreground: oklch(0.492 0.19 25.18);
  --accent: oklch(0.995 0.007 143.103);
  --accent-foreground: oklch(0.401 0.127 141.969);
  --destructive: oklch(0.651 0.233 30.465);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.005 282.128);
  --chart-1: oklch(0.988 0.005 282.128);
  --chart-2: oklch(0.99 0.004 11.348);
  --chart-3: oklch(0.995 0.007 143.103);
  --chart-4: oklch(1.021 0.009 191.064);
  --chart-5: oklch(0.988 0.005 282.125);
}