Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Single File Components

Get access to this course, 14 others, and future Vue.js courses!

Start Learning

Already got an account? Log in

Scoped Styles

Scoped styles allow us to apply CSS to the components element only. Which ultimately enables us to mix local component and global application styles.

In this lesson, we’ll learn how to use scoped styles in our Single File Components and what to be aware of when using them.

Remember: element selectors should be avoided with scoped styles.

You can benchmark CSS in the CSS Test Creator.