@rschristian/astro-preact-twind
Astro integration for using Preact & Twind
Better docs & background to come
Usage
$ yarn add preact twind@next @rschristian/astro-preact-twind
astro.config.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.