Lux Docs

Theming

Monochrome design system and per-chain branding

Dark Mode Default

The explorer uses a monochrome dark theme by default:

NEXT_PUBLIC_COLOR_THEME_DEFAULT=dark

Fonts

  • Sans: Geist (body, headings)
  • Mono: Geist Mono (addresses, hashes, code)
NEXT_PUBLIC_FONT_FAMILY_HEADING="Geist, sans-serif"
NEXT_PUBLIC_FONT_FAMILY_BODY="Geist, sans-serif"

Per-Chain Branding

Each explorer instance has unique branding:

ChainLogoColors
C-ChainLux diamondDefault monochrome
ZooThree circlesZoo brand colors
HanzoGeometric HHanzo brand colors
SPCUnicornSPC brand colors
Pars8-point starPars brand colors

Logos are loaded from ~/work/{org}/logo/ repositories. Dynamic favicons are handled by the useChainFavicon hook.

Semantic Tokens

All colors use semantic tokens from toolkit/theme/foundations/semanticTokens.ts. ESLint rules enforce this — no hardcoded colors allowed.

// Wrong
<Box color="#ff0000">Error</Box>

// Correct
<Box color="semantic.error">Error</Box>

On this page