Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svelte-add/sass
Add Sass to your Svelte project
https://github.com/svelte-add/sass
sass svelte svelte-add svelte-kit sveltekit vite
Last synced: 1 day ago
JSON representation
Add Sass to your Svelte project
- Host: GitHub
- URL: https://github.com/svelte-add/sass
- Owner: svelte-add
- License: mit
- Created: 2021-06-27T17:50:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:07:49.000Z (11 months ago)
- Last Synced: 2024-04-28T04:53:26.349Z (7 months ago)
- Topics: sass, svelte, svelte-add, svelte-kit, sveltekit, vite
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🕶 Add SASS 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 SASS
This adder's codename is `sass`, and can be used like so:
```sh
npx svelte-add@latest sass
```### 🏞 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 SASS
After the adder runs,
- You can write SASS syntax in the `style lang="sass"` blocks in Svelte files.
- You can write SASS syntax in the `src/variables.sass` file.
Variables and mixins written here are automatically available to all other SASS files and `style lang="sass"` blocks in Svelte files without needing to import this file.
- You can write SASS syntax in the `src/app.sass` file.
This is your global stylesheet because it will be active on every page of your site.