Insufficient Surf the Web for shadcn/ui

Insufficient Surf the Web is a shadcn/ui theme built around a blue primary color (#1f3a7f) with indigo accents (#341f7f). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#1f3a7f) on a blue-tinted background (#040810).

Color palette

TokenLightDark
Background
#fbfcfewhite
#040810black
Foreground
#010309black
#f4f6fawhitesmoke
Card
#fbfcfewhite
#040810black
Card foreground
#010309black
#f4f6fawhitesmoke
Popover
#fbfcfewhite
#040810black
Popover foreground
#010309black
#f4f6fawhitesmoke
Primary
#1f3a7fmidnightblue
#1f3a7fmidnightblue
Primary foreground
#dae2f6lavender
#dae2f6lavender
Secondary
#1f6a7fteal
#1f6a7fteal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eef5f7whitesmoke
#080f11black
Muted foreground
#464c4edarkslategray
#b1b8b9silver
Accent
#341f7fmidnightblue
#341f7fmidnightblue
Accent foreground
#e0daf6lavender
#e0daf6lavender
Destructive
#933c10saddlebrown
#e65d1achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2228black
Input
#e5e7eblavender
#1f2228black
Ring
#1f3a7fmidnightblue
#1f3a7fmidnightblue

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button8.20:1AAA
Secondary button6.09:1AA
Muted text7.90:1AAA
Accent9.43:1AAA
Destructive7.26:1AAA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button8.20:1AAA
Secondary button6.09:1AA
Muted text9.57:1AAA
Accent9.43:1AAA
Destructive3.53:1AA Large

CSS variables

Paste this into your globals.css to use Insufficient Surf the Web in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 268.766);
  --foreground: oklch(0.1 0.021 256.88);
  --muted: oklch(0.965 0.008 216.048);
  --muted-foreground: oklch(0.413 0.01 216.134);
  --popover: oklch(0.99 0.004 268.766);
  --popover-foreground: oklch(0.1 0.021 256.88);
  --card: oklch(0.99 0.004 268.766);
  --card-foreground: oklch(0.1 0.021 256.88);
  --border: oklch(0.927 0.006 268.745);
  --input: oklch(0.927 0.006 268.745);
  --primary: oklch(0.371 0.122 264.8);
  --primary-foreground: oklch(0.913 0.029 268.543);
  --secondary: oklch(0.49 0.078 220.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.335 0.151 284.648);
  --accent-foreground: oklch(0.902 0.038 295.549);
  --destructive: oklch(0.468 0.129 42.905);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.371 0.122 264.8);
  --chart-1: oklch(0.371 0.122 264.8);
  --chart-2: oklch(0.49 0.078 220.444);
  --chart-3: oklch(0.335 0.151 284.648);
  --chart-4: oklch(0.523 0.084 220.546);
  --chart-5: oklch(0.369 0.127 264.604);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.021 262.484);
  --foreground: oklch(0.973 0.006 268.748);
  --muted: oklch(0.163 0.012 216.439);
  --muted-foreground: oklch(0.776 0.008 216.059);
  --popover: oklch(0.133 0.021 262.484);
  --popover-foreground: oklch(0.973 0.006 268.748);
  --card: oklch(0.133 0.021 262.484);
  --card-foreground: oklch(0.973 0.006 268.748);
  --border: oklch(0.251 0.013 268.342);
  --input: oklch(0.251 0.013 268.342);
  --primary: oklch(0.371 0.122 264.8);
  --primary-foreground: oklch(0.913 0.029 268.543);
  --secondary: oklch(0.49 0.078 220.444);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.335 0.151 284.648);
  --accent-foreground: oklch(0.902 0.038 295.549);
  --destructive: oklch(0.647 0.184 42.222);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.371 0.122 264.8);
  --chart-1: oklch(0.371 0.122 264.8);
  --chart-2: oklch(0.49 0.078 220.444);
  --chart-3: oklch(0.335 0.151 284.648);
  --chart-4: oklch(0.523 0.084 220.546);
  --chart-5: oklch(0.369 0.127 264.604);
}