Box UK Light (rainglow) for shadcn/ui

Box UK Light (rainglow) is a shadcn/ui theme built around a muted blue primary color (#424f5c) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#424f5c) on a neutral background (#ffffff).

Color palette

TokenLightDark
Background
#ffffffwhite
#ffffffwhite
Foreground
#424f5cdarkslategray
#424f5cdarkslategray
Card
#fafafasnow
#fafafasnow
Card foreground
#37434edarkslategray
#37434edarkslategray
Popover
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Popover foreground
#2c363fdarkslategray
#2c363fdarkslategray
Primary
#424f5cdarkslategray
#424f5cdarkslategray
Primary foreground
#e4e8eclavender
#e4e8eclavender
Secondary
#bbbfc4silver
#bbbfc4silver
Secondary foreground
#242629darkslategray
#242629darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d9d9d9gainsboro
#d9d9d9gainsboro
Accent foreground
#404040darkslategray
#404040darkslategray
Destructive
#a22211firebrick
#a22211firebrick
Destructive foreground
#fdeae8linen
#fdeae8linen
Border
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Input
#ebebeblinen
#ebebeblinen
Ring
#424f5cdarkslategray
#424f5cdarkslategray

Contrast

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

Light mode
Text on background8.38:1AAA
Text on card9.68:1AAA
Primary button6.77:1AA
Secondary button8.22:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.55:1AA
Dark mode
Text on background8.38:1AAA
Text on card9.68:1AAA
Primary button6.77:1AA
Secondary button8.22:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.423 0.028 246.725);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.327 0.02 246.673);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.376 0.024 246.703);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.423 0.028 246.725);
  --primary-foreground: oklch(0.93 0.007 246.05);
  --secondary: oklch(0.804 0.008 246.081);
  --secondary-foreground: oklch(0.268 0.006 246.234);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.464 0.166 31.041);
  --destructive-foreground: oklch(0.952 0.02 26.593);
  --ring: oklch(0.423 0.028 246.725);
  --chart-1: oklch(0.423 0.028 246.725);
  --chart-2: oklch(0.804 0.008 246.081);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.828 0.007 246.063);
  --chart-5: oklch(0.422 0.033 246.869);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.423 0.028 246.725);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.327 0.02 246.673);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.376 0.024 246.703);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.423 0.028 246.725);
  --primary-foreground: oklch(0.93 0.007 246.05);
  --secondary: oklch(0.804 0.008 246.081);
  --secondary-foreground: oklch(0.268 0.006 246.234);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.464 0.166 31.041);
  --destructive-foreground: oklch(0.952 0.02 26.593);
  --ring: oklch(0.423 0.028 246.725);
  --chart-1: oklch(0.423 0.028 246.725);
  --chart-2: oklch(0.804 0.008 246.081);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.828 0.007 246.063);
  --chart-5: oklch(0.422 0.033 246.869);
}