Skip to content

windicss/windicss-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

windicss-webpack-plugin

๐Ÿƒ Windi CSS for webpack๏ธ
Next generation utility-first CSS framework.

โš ๏ธ Consider using 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 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 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'

Thanks await-ovo!

New Windi v3.0 Features

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