Skip to content
Theme

Layers

Stacking order for what sits above the page, and the cascade layers every app's CSS is ordered by.

Stacking order

Popovers and modal dialogs use the browser's top layer where they can, which no z-index reaches; these values order what cannot.

TokenValueUse
layer.raised1
layer.sticky10
layer.overlay40
layer.popover50
layer.toast60
layer.skipLink100

Cascade layers

@serre/design/base.css declares @layer reset, tokens, base, components, utilities. The reset and the document rules sit low; each app puts the extracted StyleX rules in components; a deliberate override belongs in utilities, above them, rather than in a more specific selector.