Boxy Nova for shadcn/ui

Boxy Nova is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#5b7380). The light mode uses a blue-tinted background (#3b4b54). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#3b4b54).

Color palette

TokenLightDark
Background
#3b4b54darkslategray
#3b4b54darkslategray
Foreground
#c5d4ddlightgrey
#c5d4ddlightgrey
Card
#37454edarkslategray
#37454edarkslategray
Card foreground
#d5e0e6gainsboro
#d5e0e6gainsboro
Popover
#35434bdarkslategray
#35434bdarkslategray
Popover foreground
#e5ecf0lavender
#e5ecf0lavender
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#48545bdarkslategray
#48545bdarkslategray
Muted foreground
#c6ced2lightgrey
#c6ced2lightgrey
Accent
#5b7380dimgray
#5b7380dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ef463etomato
#ef463etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#4e565adarkslategray
#4e565adarkslategray
Input
#555e62dimgray
#555e62dimgray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background5.98:1AA
Text on card7.33:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text4.87:1AA
Accent5.00:1AA
Destructive3.72:1AA Large
Dark mode
Text on background5.98:1AA
Text on card7.33:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text4.87:1AA
Accent5.00:1AA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.402 0.025 233.598);
  --foreground: oklch(0.861 0.02 234.857);
  --muted: oklch(0.439 0.02 233.281);
  --muted-foreground: oklch(0.846 0.011 232.758);
  --popover: oklch(0.373 0.022 233.575);
  --popover-foreground: oklch(0.939 0.009 234.643);
  --card: oklch(0.382 0.023 233.584);
  --card-foreground: oklch(0.9 0.015 234.743);
  --border: oklch(0.447 0.012 232.972);
  --input: oklch(0.475 0.013 232.977);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.54 0.035 233.672);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.639 0.207 27.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.54 0.035 233.672);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.402 0.025 233.598);
  --foreground: oklch(0.861 0.02 234.857);
  --muted: oklch(0.439 0.02 233.281);
  --muted-foreground: oklch(0.846 0.011 232.758);
  --popover: oklch(0.373 0.022 233.575);
  --popover-foreground: oklch(0.939 0.009 234.643);
  --card: oklch(0.382 0.023 233.584);
  --card-foreground: oklch(0.9 0.015 234.743);
  --border: oklch(0.447 0.012 232.972);
  --input: oklch(0.475 0.013 232.977);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.54 0.035 233.672);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.639 0.207 27.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.54 0.035 233.672);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}