Schooner for shadcn/ui

Schooner is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#030202). The light mode uses a neutral background (#fefbfd). Dark mode keeps the near-black primary (#030203) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fefbfdsnow
#030203black
Foreground
#160412black
#fdfcfdwhite
Card
#fcf7fbsnow
#070306black
Card foreground
#11030eblack
#ffffffwhite
Popover
#fcf7fbsnow
#070306black
Popover foreground
#11030eblack
#ffffffwhite
Primary
#030203black
#030203black
Primary foreground
#a2969fdarkgray
#a2969fdarkgray
Secondary
#030203black
#030203black
Secondary foreground
#9e96a2darkgray
#9e96a2darkgray
Muted
#e9deedlavender
#1d1221black
Muted foreground
#4a424ddarkslategray
#bab2bdsilver
Accent
#030202black
#030202black
Accent foreground
#a29699darkgray
#a29699darkgray
Destructive
#9a3f0esaddlebrown
#ea661fchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030203black
#030203black

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.08:1AAA
Primary button7.28:1AAA
Secondary button7.22:1AAA
Muted text7.40:1AAA
Accent7.25:1AAA
Destructive6.78:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.46:1AAA
Primary button7.28:1AAA
Secondary button7.22:1AAA
Muted text8.78:1AAA
Accent7.25:1AAA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 332.673);
  --foreground: oklch(0.149 0.044 335.962);
  --muted: oklch(0.913 0.024 316.533);
  --muted-foreground: oklch(0.39 0.022 316.446);
  --popover: oklch(0.982 0.007 332.731);
  --popover-foreground: oklch(0.135 0.039 335.27);
  --card: oklch(0.982 0.007 332.731);
  --card-foreground: oklch(0.135 0.039 335.27);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.091 0.002 332.705);
  --primary-foreground: oklch(0.685 0.019 333.048);
  --secondary: oklch(0.091 0.002 316.799);
  --secondary-foreground: oklch(0.683 0.02 316.524);
  --accent: oklch(0.091 0.001 357.695);
  --accent-foreground: oklch(0.683 0.015 358.33);
  --destructive: oklch(0.485 0.134 43.662);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.091 0.002 332.705);
  --chart-1: oklch(0.091 0.002 332.705);
  --chart-2: oklch(0.091 0.002 316.799);
  --chart-3: oklch(0.091 0.001 357.695);
  --chart-4: oklch(0.144 0.003 316.573);
  --chart-5: oklch(0.091 0.003 332.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.011 333.124);
  --foreground: oklch(0.992 0.002 332.643);
  --muted: oklch(0.203 0.034 316.09);
  --muted-foreground: oklch(0.773 0.018 316.539);
  --popover: oklch(0.111 0.014 333.124);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.014 333.124);
  --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.091 0.002 332.705);
  --primary-foreground: oklch(0.685 0.019 333.048);
  --secondary: oklch(0.091 0.002 316.799);
  --secondary-foreground: oklch(0.683 0.02 316.524);
  --accent: oklch(0.091 0.001 357.695);
  --accent-foreground: oklch(0.683 0.015 358.33);
  --destructive: oklch(0.666 0.181 44.016);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.091 0.002 332.705);
  --chart-1: oklch(0.091 0.002 332.705);
  --chart-2: oklch(0.091 0.002 316.799);
  --chart-3: oklch(0.091 0.001 357.695);
  --chart-4: oklch(0.144 0.003 316.573);
  --chart-5: oklch(0.091 0.003 332.749);
}