Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/windicss/windicss-webpack-plugin

🍃 Windi CSS for webpack ⚡
https://github.com/windicss/windicss-webpack-plugin

webpack windicss

Last synced: 4 days ago
JSON representation

🍃 Windi CSS for webpack ⚡

Awesome Lists containing this project

README

        

windicss-webpack-plugin

:leaves: Windi CSS for webpack️

Next generation utility-first CSS framework.








⚠️ Consider using [UnoCSS](https://github.com/unocss/unocss) instead,
it's a rebuild of the WindiCSS core with a lot of improvements and new features.




Status: Stable - Maintenance only

Made possible by my Sponsor Program 💖
Follow me @harlan_zw 🐦


## Features

- 🧩 On-demand CSS utilities (Compatible with Tailwind CSS v2) and preflights
- 🍃 Load configurations from `tailwind.config.js`
- 🤝 Framework-agnostic: Vue CLI, Nuxt, Next, UmiJS, etc!
- 📄 Use [directives](https://windicss.org/features/directives.html) in any CSS (SCSS, LESS, etc) `@apply`, `@variants`, `@screen`, `@layer`, `theme()`,
- 🎳 Support Utility Groups - e.g. `bg-gray-200 hover:(bg-gray-100 text-red-300)`

## Documentation

Read the [documentation](https://windicss.org/integrations/webpack.html) for more details.

## New Webpack Plugin Features

**Design in DevTools mode**

Add the import with your existing windi imports and you'll have autocompletion in your Chrome DevTools! See ["Design in DevTools"](https://windicss.org/integrations/vite.html#design-in-devtools) for
more information.

```js
import 'virtual:windi-devtools'
```

Thanks [await-ovo](https://github.com/await-ovo)!

## New Windi v3.0 Features

### [Attributify Mode](https://windicss.org/posts/v30.html#attributify-mode)

Enabled it by

```ts
// windi.config.ts
export default {
attributify: true
}
```

And use them as you would like:

```html

Button

```

### [Alias Config](https://windicss.org/posts/v30.html#alias-config)

```ts
// windi.config.ts
export default {
alias: {
'hstack': 'flex items-center',
'vstack': 'flex flex-col',
'icon': 'w-6 h-6 fill-current',
'app': 'text-red',
'app-border': 'border-gray-200 dark:border-dark-300',
},
}
```

## Sponsors





## License

MIT License © 2022 - Present [Harlan Wilton](https://github.com/harlan-zw)