This page will be displayed at the /about route.
-This page will be displayed at the /about route.
-This should be red
- - - -``` - -### Preprocessors Support - -SFC style blocks support preprocessors syntax. Vite come with built-in support for .scss, .sass, .less, .styl and .stylus files without configuration. You just need to install them first, and they will be available directly in SFC with the lang attribute. - -::code-group - -```vue [SCSS] - -``` - -```vue [Sass] - -``` - -```vue [LESS] - -``` - -```vue [Stylus] - -``` - -:: - -You can refer to the [Vite CSS docs](https://vite.dev/guide/features.html#css) and the [@vitejs/plugin-vue docs](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue). -For webpack users, refer to the [vue loader docs](https://vue-loader.vuejs.org). - -## Using PostCSS - -Nuxt comes with postcss built-in. You can configure it in your `nuxt.config` file. - -```ts [nuxt.config.ts] -export default defineNuxtConfig({ - postcss: { - plugins: { - 'postcss-nested': {}, - 'postcss-custom-media': {} - } - } -}) -``` - -For proper syntax highlighting in SFC, you can use the postcss lang attribute. - -```vue - -``` - -By default, Nuxt comes with the following plugins already pre-configured: - -- [postcss-import](https://github.com/postcss/postcss-import): Improves the `@import` rule -- [postcss-url](https://github.com/postcss/postcss-url): Transforms `url()` statements -- [autoprefixer](https://github.com/postcss/autoprefixer): Automatically adds vendor prefixes -- [cssnano](https://cssnano.github.io/cssnano): Minification and purge - -## Leveraging Layouts For Multiple Styles - -If you need to style different parts of your application completely differently, you can use layouts. -Use different styles for different layouts. - -```vue - -