--- layout: ~/layouts/MainLayout.astro title: Styling & CSS description: Learn how to style components with Astro. --- Astro includes special handling to make writing CSS as easy as possible. Styling inside of Astro components is done by adding a `
I'm a scoped style and I’m cursive!
``` Note that the `h1` selector won’t bleed out of the current component! These styles won’t apply any other `h1` tags outside this document. Not even child components. _Tip: even though you can use element selectors, using classnames is preferred. This is not only slightly more performant, but is also easier to read, especially in a large document._ ### Global styles Of course, the real power of CSS is being able to reuse as much as possible! The preferred method of loading global styles is by using a standard `` tag like you’re used to. It can even be used in conjunction with Astro’s scoped `