Custom CSS docs · Layers and specificity

Custom CSS

Layers and specificity

Why your CSS always wins, and the two things it can't change.

Your CSS is in the last cascade layer, so it beats Linker’s CSS whatever the selector.

Layer What’s in it
linker.guard The two rules no CSS may undo (below)
linker.base The page’s structure: the column, the parts’ sizes and spacing
linker.look What the Look tab chose: the button style, the hover, the font, the variables
linker.user Your CSS

Don’t use !important

You don’t need it: your CSS already wins.

The two rules that always hold

  • Nothing draws outside the page, even with position: fixed.
  • Visitors who ask for less motion get none. Animations and transitions are switched off for them, so you don’t need a prefers-reduced-motion query.

Scoped to your page

Your CSS is wrapped in @scope ([data-linker-page]), so it never reaches the dashboard. That’s also why :root, html and body all mean your page, and why root attributes go on :root.