Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rodneylab/sveltekit-vanilla-extract

Using vanilla-extract with SvelteKit: how you can make zero-runtime stylesheets with the new TypeScript friendly preprocessor in Svelte.
https://github.com/rodneylab/sveltekit-vanilla-extract

css css-in-js css-in-ts svelte sveltekit typescript vanilla-extract

Last synced: 3 months ago
JSON representation

Using vanilla-extract with SvelteKit: how you can make zero-runtime stylesheets with the new TypeScript friendly preprocessor in Svelte.

Awesome Lists containing this project

README

        

Rodney Lab sveltekit-vanilla-extract Github banner



Rodney Lab logo



SvelteKit vanilla-extract

# sveltekit-vanilla-extract

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/rodneylab/sveltekit-vanilla-extract)

Demo code for getting started with vanilla-extract in SvelteKit. The code accompanies the post on using vanilla-extract with SvelteKit. If you have any questions, please drop a comment at the bottom of that page. You can see the full working example at sveltekit-vanilla-extract.rodneylab.com/.

## Building and previewing the site

If you're seeing this, you've probably already done this step. Congrats!

```bash
git clone https://github.com/rodneylab/sveltekit-vanilla-extract.git
cd sveltekit-vanilla-extract
pnpm install # or npm install
pnpm run dev
```

## Building

```bash
pnpm run build
```

> You can preview the built app with `pnpm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.

Feel free to jump into the [Rodney Lab matrix chat room](https://matrix.to/#/%23rodney:matrix.org).