Scoped Style

Noun · Development

Definitions

  1. CSS rules that are automatically confined to a specific component or DOM subtree so they cannot leak out and accidentally style other parts of the page, achieved through techniques like Shadow DOM, CSS Modules, or framework-generated unique class selectors.

    In plain English: Styling rules that only apply to one component and can't accidentally change how other parts of the page look.

    Example: "Scoped styles saved us — the new card component's `.title` class doesn't clobber the global `.title` anymore."

Related Terms