Customizable components with TailwindCSS styling for seamless integration into any SvelteKit project.
npm i -D @codepiercer/sveltewind
-
Create a
tailwind.config.cjs
file in the root of your project and add the following:// tailwind.config.cjs module.exports { presets: require('@codepiercer/sveltewind/config.cjs') }
-
Create a
postcss.config.cjs
file in the root of your project and add the following:// postcss.config.cjs module.exports = { plugins: { tailwindcss: {}, autoprefixer: {} } }
npx degit [email protected]:codepiercer/sveltewind-template.git myapp
// Example.svelte
<script>
import { Button } from '@codepiercer/sveltewind/components'
</script>
<Button.Primary class="text-green-500">Click Me</Button.Primary>
docker compose --service-ports run --rm app
npm i
npm run dev
© CODEPIERCER. All rights reserved.