Skip to content

EXPLORER_THEME_CSS

reference
1 min readUpdated

Kind: Constant

Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/theme.ts

The mode-resolving sheet.

Rule order is load-bearing. The blocks have comparable weight, so the later ones win where they overlap:

  1. light default — applies when nothing else has an opinion.
  2. OS dark — guarded so an explicit light disables it entirely.
  3. explicit dark (data-atloria-theme="dark", or /app's .dark class).
  4. explicit light — last, so it beats every dark rule above it, the OS included.

Was this page helpful?

Download as PDF