Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/codepiercer/sveltewind

Customizable components with TailwindCSS styling for seamless integration into any Svelte project
https://github.com/codepiercer/sveltewind

svelte svelte-components svelte-components-library svelte-tailwind svelte-tailwindcss sveltejs sveltekit tailwind tailwindcss tailwindui

Last synced: 19 days ago
JSON representation

Customizable components with TailwindCSS styling for seamless integration into any Svelte project

Awesome Lists containing this project

README

        

# sveltewind

Customizable components with TailwindCSS styling for seamless integration into any SvelteKit project.

## Installation (Option 1)

```bash
npm i -D @codepiercer/sveltewind
```

- Create a `tailwind.config.cjs` file in the root of your project and add the following:

```js
// 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:

```js
// postcss.config.cjs
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
```

## Installation (Option 2) - use the pre configured sveltekit template

```bash
npx degit [email protected]:codepiercer/sveltewind-template.git myapp
```

## Usage

```js
// Example.svelte

import { Button } from '@codepiercer/sveltewind/components'

Click Me
```

## Development

```bash
docker compose --service-ports run --rm app
npm i
npm run dev
```


©
CODEPIERCER. All rights reserved.