# πŸ’… Styling Styling in Astro is meant to be as flexible as you’d like it to be! The following options are all supported: | Framework | Global CSS | Scoped CSS | CSS Modules | | :--------------- | :--------: | :--------: | :---------: | | Astro (`.astro`) | βœ… | βœ… | N/AΒΉ | | React / Preact | βœ… | ❌ | βœ… | | Vue | βœ… | βœ… | βœ… | | Svelte | βœ… | βœ… | ❌ | ΒΉ _`.astro` files have no runtime, therefore Scoped CSS takes the place of CSS Modules (styles are still scoped to components, but don’t need dynamic values)_ #### πŸ– Styling by Framework ##### Astro Styling in an Astro component is done by adding a `
I’m a scoped style and only apply to this component

I have both scoped and global styles

``` **Tips** - ` ``` You should see Tailwind styles compile successfully in Astro. πŸ’ **Tip**: to reduce duplication, try loading `@tailwind base` from a parent page (`./pages/*.astro`) instead of the component itself. [autoprefixer]: https://github.com/postcss/autoprefixer [browserslist]: https://github.com/browserslist/browserslist [css-modules]: https://github.com/css-modules/css-modules [vue-css-modules]: https://vue-loader.vuejs.org/guide/css-modules.html [vue-scoped]: https://vue-loader.vuejs.org/guide/scoped-css.html [sass]: https://sass-lang.com/ [sass-use]: https://sass-lang.com/documentation/at-rules/use [svelte-style]: https://svelte.dev/docs#style [tailwind]: https://tailwindcss.com [tailwind-utilities]: https://tailwindcss.com/docs/adding-new-utilities#using-css