Beach for shadcn/ui

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

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#120204black
#fdfcfcsnow
Card
#fefbfbsnow
#000000black
Card foreground
#120204black
#fdfcfcsnow
Popover
#fefbfbsnow
#000000black
Popover foreground
#120204black
#fdfcfcsnow
Primary
#030203black
#030203black
Primary foreground
#9e9a9adarkgray
#9e9a9adarkgray
Secondary
#030203black
#030203black
Secondary foreground
#9e9a9cdarkgray
#9e9a9cdarkgray
Muted
#f5eff3whitesmoke
#100a0dblack
Muted foreground
#634b59dimgray
#b49cabdarkgray
Accent
#030302black
#030302black
Accent foreground
#9e9b9adarkgray
#9e9b9adarkgray
Destructive
#a2100bdarkred
#e51710red
Destructive foreground
#fde3e2mistyrose
#ffffffwhite
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.69:1AAA
Text on card19.69:1AAA
Primary button7.42:1AAA
Secondary button7.44:1AAA
Muted text6.92:1AA
Accent7.49:1AAA
Destructive6.58:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.42:1AAA
Secondary button7.44:1AAA
Muted text7.74:1AAA
Accent7.49:1AAA
Destructive4.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 10.15);
  --foreground: oklch(0.128 0.035 13.67);
  --muted: oklch(0.959 0.008 340.418);
  --muted-foreground: oklch(0.442 0.04 342.156);
  --popover: oklch(0.99 0.003 10.15);
  --popover-foreground: oklch(0.128 0.035 13.67);
  --card: oklch(0.99 0.003 10.15);
  --card-foreground: oklch(0.128 0.035 13.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.092 0 10.113);
  --primary-foreground: oklch(0.688 0.005 10.232);
  --secondary: oklch(0.092 0.001 340.238);
  --secondary-foreground: oklch(0.689 0.006 340.422);
  --accent: oklch(0.092 0 56.708);
  --accent-foreground: oklch(0.692 0.004 56.362);
  --destructive: oklch(0.454 0.177 29.022);
  --destructive-foreground: oklch(0.937 0.028 20.046);
  --ring: oklch(0.092 0 10.113);
  --chart-1: oklch(0.092 0 10.113);
  --chart-2: oklch(0.092 0.001 340.238);
  --chart-3: oklch(0.092 0 56.708);
  --chart-4: oklch(0.145 0.001 340.357);
  --chart-5: oklch(0.091 0.001 10.168);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 10.091);
  --muted: oklch(0.153 0.012 341.987);
  --muted-foreground: oklch(0.719 0.035 341.301);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 10.091);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 10.091);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.092 0 10.113);
  --primary-foreground: oklch(0.688 0.005 10.232);
  --secondary: oklch(0.092 0.001 340.238);
  --secondary-foreground: oklch(0.689 0.006 340.422);
  --accent: oklch(0.092 0 56.708);
  --accent-foreground: oklch(0.692 0.004 56.362);
  --destructive: oklch(0.585 0.231 29.158);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.092 0 10.113);
  --chart-1: oklch(0.092 0 10.113);
  --chart-2: oklch(0.092 0.001 340.238);
  --chart-3: oklch(0.092 0 56.708);
  --chart-4: oklch(0.145 0.001 340.357);
  --chart-5: oklch(0.091 0.001 10.168);
}