A tempalte a s starter kit of SvelteKit with tailwind installation. Example at sveltekit-tailwind-template-start.
Clonesveltekit-tailwind-template from github or install SvelteKit and Tailwind maually:
npm init svelte@next sveltekit
cd sveltekit
npm install
git init && git add -A && git commit -m "Initial commit"
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init tailwind.config.cjs -p
mv postcss.config.js postcss.config.cjs
Make sure to configure app.css
and tailwind-config.json
. The tailwind installation is described here.
The github repository includes some additional styles.
We are working on:
Some helpful resources