Vue.js · Concept
Scoped CSS
Scoped CSS limits component styles by compiling selectors with a unique attribute. It also supports global styles in the same component and deep selectors for reaching child components.
Last updated
Syntax
<style scoped> /* component-local CSS */ </style>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
PostCSSDeep SelectorsChild Component Root ElementsMixing Local and Global Styles