Home

Awesome

<h1 align='center'>windicss-webpack-plugin</h1> <p align='center'>:leaves: <a href="https://github.com/windicss/windicss">Windi CSS</a> for webpack️<br> <sup><em>Next generation utility-first CSS framework.</em></sup> </p> <p align='center'> <a href='https://www.npmjs.com/package/windicss-webpack-plugin'> <img src='https://img.shields.io/npm/v/windicss-webpack-plugin?color=0EA5E9&label='> </a> <a href='https://github.com/windicss/windicss-webpack-plugin/actions/workflows/test.yml'> <img src='https://github.com/windicss/windicss-webpack-plugin/actions/workflows/test.yml/badge.svg' > </a> </p>

⚠️ Consider using UnoCSS instead, it's a rebuild of the WindiCSS core with a lot of improvements and new features.

<p align="center"> <table> <tbody> <td align="center"> <img width="2000" height="0" /><br> <i>Status:</i> <b>Stable - Maintenance only</b><br> <sub>Made possible by my <a href="https://github.com/sponsors/harlan-zw">Sponsor Program 💖</a><br> Follow me <a href="https://twitter.com/harlan_zw">@harlan_zw</a> 🐦</sub><br> <img width="2000" height="0" /> </td> </tbody> </table> </p>

Features

Documentation

Read the documentation 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" for more information.

import 'virtual:windi-devtools'
<img src="https://user-images.githubusercontent.com/41503212/163978055-9be54838-5156-47ca-a2e7-f94480806002.gif" width="300" />

Thanks await-ovo!

New Windi v3.0 Features

Attributify Mode

Enabled it by

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

And use them as you would like:

<button 
  bg="blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600"
  text="sm white"
  font="mono light"
  p="y-2 x-4"
  border="2 rounded blue-200"
>
  Button
</button>

Alias Config

// 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

<p align="center"> <a href="https://raw.githubusercontent.com/harlan-zw/static/main/sponsors.png"> <img src='https://raw.githubusercontent.com/harlan-zw/static/main/sponsors.png'/> </a> </p>

License

MIT License © 2022 - Present Harlan Wilton