Box UK (rainglow) for shadcn/ui

Box UK (rainglow) is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#495c6e). The light mode uses a blue-tinted background (#2b3640). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#2b3640).

Color palette

TokenLightDark
Background
#2b3640darkslategray
#2b3640darkslategray
Foreground
#ffffffwhite
#ffffffwhite
Card
#27313adarkslategray
#27313adarkslategray
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#252e37darkslategray
#252e37darkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#384047darkslategray
#384047darkslategray
Muted foreground
#b8c0c7silver
#b8c0c7silver
Accent
#495c6edimgray
#495c6edimgray
Accent foreground
#f3f5f7whitesmoke
#f3f5f7whitesmoke
Destructive
#f83412orangered
#f83412orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#3c4349darkslategray
#3c4349darkslategray
Input
#434a51darkslategray
#434a51darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background12.33:1AAA
Text on card13.27:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.71:1AA
Accent6.28:1AA
Destructive3.83:1AA Large
Dark mode
Text on background12.33:1AAA
Text on card13.27:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.71:1AA
Accent6.28:1AA
Destructive3.83:1AA Large

CSS variables

Paste this into your globals.css to use Box UK (rainglow) in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.327 0.024 246.804);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.367 0.017 246.478);
  --muted-foreground: oklch(0.802 0.014 246.161);
  --popover: oklch(0.297 0.021 246.774);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.307 0.022 246.785);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.377 0.014 246.396);
  --input: oklch(0.406 0.016 246.404);
  --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.467 0.037 246.889);
  --accent-foreground: oklch(0.969 0.003 246.008);
  --destructive: oklch(0.635 0.233 31.882);
  --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.467 0.037 246.889);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.327 0.024 246.804);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.367 0.017 246.478);
  --muted-foreground: oklch(0.802 0.014 246.161);
  --popover: oklch(0.297 0.021 246.774);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.307 0.022 246.785);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.377 0.014 246.396);
  --input: oklch(0.406 0.016 246.404);
  --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.467 0.037 246.889);
  --accent-foreground: oklch(0.969 0.003 246.008);
  --destructive: oklch(0.635 0.233 31.882);
  --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.467 0.037 246.889);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}