Replication for shadcn/ui

Replication is a shadcn/ui theme built around a vivid blue primary color (#1253f8) with muted light blue accents (#d0d3dd). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid blue primary (#1253f8) on a blue-tinted background (#050810).

Color palette

TokenLightDark
Background
#fbfcfewhite
#050810black
Foreground
#050810black
#fcfcfdwhite
Card
#f7f9fdghostwhite
#060a13black
Card foreground
#04060cblack
#ffffffwhite
Popover
#f7f9fdghostwhite
#060a13black
Popover foreground
#04060cblack
#ffffffwhite
Primary
#1253f8royalblue
#1253f8royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d0d3ddlightgrey
#25272ddarkslategray
Secondary foreground
#333947darkslategray
#bcbfc8silver
Muted
#eaedf5lavender
#0a0d15black
Muted foreground
#555c6ddimgray
#9299aadarkgray
Accent
#d0d3ddlightgrey
#25272ddarkslategray
Accent foreground
#333947darkslategray
#bcbfc8silver
Destructive
#883006saddlebrown
#f45810orangered
Destructive foreground
#fcd6c5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1253f8royalblue
#1253f8royalblue

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.19:1AAA
Primary button5.82:1AA
Secondary button7.74:1AAA
Muted text5.73:1AA
Accent7.74:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.80:1AAA
Primary button5.82:1AA
Secondary button8.12:1AAA
Muted text6.80:1AA
Accent8.12:1AAA
Destructive3.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 268.772);
  --foreground: oklch(0.134 0.019 263.22);
  --muted: oklch(0.947 0.011 268.711);
  --muted-foreground: oklch(0.475 0.028 268.273);
  --popover: oklch(0.981 0.005 268.752);
  --popover-foreground: oklch(0.121 0.016 261.82);
  --card: oklch(0.981 0.005 268.752);
  --card-foreground: oklch(0.121 0.016 261.82);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.524 0.252 263.54);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.868 0.013 268.677);
  --secondary-foreground: oklch(0.345 0.026 268.109);
  --accent: oklch(0.868 0.013 268.677);
  --accent-foreground: oklch(0.345 0.026 268.109);
  --destructive: oklch(0.433 0.13 40.395);
  --destructive-foreground: oklch(0.904 0.049 46.323);
  --ring: oklch(0.524 0.252 263.54);
  --chart-1: oklch(0.524 0.252 263.54);
  --chart-2: oklch(0.868 0.013 268.677);
  --chart-3: oklch(0.868 0.013 268.677);
  --chart-4: oklch(0.893 0.011 268.703);
  --chart-5: oklch(0.525 0.258 263.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.019 263.362);
  --foreground: oklch(0.992 0.001 268.782);
  --muted: oklch(0.16 0.017 267.783);
  --muted-foreground: oklch(0.683 0.026 268.488);
  --popover: oklch(0.145 0.022 265.064);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.145 0.022 265.064);
  --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.524 0.252 263.54);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.273 0.011 268.45);
  --secondary-foreground: oklch(0.805 0.013 268.673);
  --accent: oklch(0.273 0.011 268.45);
  --accent-foreground: oklch(0.805 0.013 268.673);
  --destructive: oklch(0.662 0.203 39.794);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.524 0.252 263.54);
  --chart-1: oklch(0.524 0.252 263.54);
  --chart-2: oklch(0.273 0.011 268.45);
  --chart-3: oklch(0.273 0.011 268.45);
  --chart-4: oklch(0.303 0.013 268.433);
  --chart-5: oklch(0.525 0.258 263.525);
}