Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/svelte-add/scss

Add SCSS to your Svelte project
https://github.com/svelte-add/scss

sass scss svelte svelte-add svelte-kit sveltekit vite

Last synced: about 1 month ago
JSON representation

Add SCSS to your Svelte project

Awesome Lists containing this project

README

        

🕶 Add SCSS to Svelte

[![GitHub issues by-label](https://img.shields.io/github/issues/svelte-add/svelte-add/confirmed%20bug?color=%23DC2626)](https://github.com/svelte-add/svelte-add/issues?q=is%3Aopen+is%3Aissue+label%3A%22confirmed+bug%22)
[![GitHub issues by-label](https://img.shields.io/github/issues/svelte-add/svelte-add/support%20question?color=%23FACC15)](https://github.com/svelte-add/svelte-add/issues?q=is%3Aopen+is%3Aissue+label%3A%22support+question%22)

This is an adder for `svelte-add`; you should [read its `README`](https://github.com/svelte-add/svelte-add#readme) before continuing here.

## ➕ Adding SCSS

This adder's codename is `scss`, and can be used like so:

```sh
npx svelte-add@latest scss
```

### 🏞 Supported environments

This adder supports SvelteKit and Vite-powered Svelte apps (all the environments `svelte-add` currently supports).

### ⚙️ Options

This adder doesn't take any options of its own.

## 🛠 Using SCSS

After the adder runs,

- You can write SCSS syntax in the `style lang="scss"` blocks in Svelte files.

- You can write SCSS syntax in the `src/variables.scss` file.

Variables and mixins written here are automatically available to all other SCSS files and `style lang="scss"` blocks in Svelte files without needing to import this file.

- You can write SCSS syntax in the `src/app.scss` file.

This is your global stylesheet because it will be active on every page of your site.