Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rschristian/astro-preact-twind

Astro integration for using Preact & Twind
https://github.com/rschristian/astro-preact-twind

Last synced: about 2 months ago
JSON representation

Astro integration for using Preact & Twind

Awesome Lists containing this project

README

        

@rschristian/astro-preact-twind

Astro integration for using Preact & Twind

Better docs & background to come

## Usage

```bash
$ yarn add preact twind@next @rschristian/astro-preact-twind
```

> astro.config.js

```js
import { defineConfig } from 'astro/config';
import astroPreactTwind from '@rschristian/astro-preact-twind';

// https://astro.build/config
export default defineConfig({
integrations: [
astroPreactTwind(),
],
});
```

Your config file will need to be located at `src/styles/twind.config.js`. I'll provide a proper API for configuring this at some point, but Astro makes this way more cumbersome than it should be.

## License

[MIT](https://github.com/rschristian/astro-preact-twind/blob/master/LICENSE)