Serial for shadcn/ui

Serial is a shadcn/ui theme built around a deep blue primary color (#111f2c) with muted blue accents (#b5bdc5). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the deep blue primary (#111f2c) on a blue-tinted background (#040b10).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#040b10black
Foreground
#040d16black
#fbfdfdwhite
Card
#fcfdfdwhite
#040b10black
Card foreground
#040d16black
#fbfdfdwhite
Popover
#fcfdfdwhite
#040b10black
Popover foreground
#040d16black
#fbfdfdwhite
Primary
#111f2cblack
#111f2cblack
Primary foreground
#99bad6lightsteelblue
#99bad6lightsteelblue
Secondary
#d3d4d5lightgrey
#2a3137darkslategray
Secondary foreground
#393b3cdarkslategray
#c2cad1lightgrey
Muted
#ebf0f5whitesmoke
#0a1014black
Muted foreground
#4d5256darkslategray
#a9aeb2darkgray
Accent
#b5bdc5silver
#354350darkslategray
Accent foreground
#1f2428darkslategray
#d4dce2gainsboro
Destructive
#9b0d03darkred
#fa2314orangered
Destructive foreground
#fed5d2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#111f2cblack
#111f2cblack

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button8.20:1AAA
Secondary button7.56:1AAA
Muted text6.88:1AA
Accent8.24:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button8.20:1AAA
Secondary button7.96:1AAA
Muted text8.56:1AAA
Accent7.29:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 244.108);
  --foreground: oklch(0.155 0.025 242.465);
  --muted: oklch(0.953 0.009 244.201);
  --muted-foreground: oklch(0.435 0.01 244.377);
  --popover: oklch(0.992 0.002 244.108);
  --popover-foreground: oklch(0.155 0.025 242.465);
  --card: oklch(0.992 0.002 244.108);
  --card-foreground: oklch(0.155 0.025 242.465);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.235 0.031 245.994);
  --primary-foreground: oklch(0.773 0.054 244.99);
  --secondary: oklch(0.869 0.002 244.111);
  --secondary-foreground: oklch(0.35 0.003 244.18);
  --accent: oklch(0.795 0.014 244.31);
  --accent-foreground: oklch(0.257 0.01 244.576);
  --destructive: oklch(0.438 0.173 29.975);
  --destructive-foreground: oklch(0.907 0.046 22.856);
  --ring: oklch(0.235 0.031 245.994);
  --chart-1: oklch(0.235 0.031 245.994);
  --chart-2: oklch(0.869 0.002 244.111);
  --chart-3: oklch(0.795 0.014 244.31);
  --chart-4: oklch(0.892 0.001 244.107);
  --chart-5: oklch(0.235 0.033 246.168);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.016 240.691);
  --foreground: oklch(0.992 0.002 244.111);
  --muted: oklch(0.168 0.013 245.102);
  --muted-foreground: oklch(0.747 0.009 244.236);
  --popover: oklch(0.143 0.016 240.691);
  --popover-foreground: oklch(0.992 0.002 244.111);
  --card: oklch(0.143 0.016 240.691);
  --card-foreground: oklch(0.992 0.002 244.111);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.235 0.031 245.994);
  --primary-foreground: oklch(0.773 0.054 244.99);
  --secondary: oklch(0.308 0.015 244.706);
  --secondary-foreground: oklch(0.835 0.013 244.285);
  --accent: oklch(0.376 0.028 245.051);
  --accent-foreground: oklch(0.89 0.012 244.262);
  --destructive: oklch(0.63 0.244 29.731);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.235 0.031 245.994);
  --chart-1: oklch(0.235 0.031 245.994);
  --chart-2: oklch(0.308 0.015 244.706);
  --chart-3: oklch(0.376 0.028 245.051);
  --chart-4: oklch(0.338 0.017 244.726);
  --chart-5: oklch(0.235 0.033 246.168);
}