nuxt-windicss
Windi CSS for Nuxt.js! โก๏ธ
Next generation utility-first CSS framework.
Features
- โก๏ธ It's FAST - 20~100x times faster than @nuxtjs/tailwindcss
- ๐งฉ On-demand CSS utilities (Compatible with Tailwind CSS v2) and native elements style resetting
- ๐ Load configurations from
tailwind.config.js - ๐ Use
@apply/@screendirectives in any file: Vue SFC, Less, SCSS, SASS, PostCSS, Stylus - ๐ณ Support Utility Groups - e.g.
bg-gray-200 hover:(bg-gray-100 text-red-300) - ๐งโ๐คโ๐ง Works with @nuxt/vite & @nuxt/content
Install
yarn add nuxt-windicss -D
# npm i nuxt-windicss -DUsage
Within your nuxt.config.js add the following.
// nuxt.config.js
export default {
buildModules: [
'nuxt-windicss',
],
}Migrating from tailwind
This module won't work with @nuxtjs/tailwindcss, you will need to remove it.
buildModules: [
- '@nuxtjs/tailwindcss',
],If you have a tailwind.config.js, please rename it to windi.config.js or windi.config.ts.
Follow the migration guide for other change details.
Documentation
Read the documentation for more details.
Credits
- Windy team
- @antfu Based on his Rollup / Vite implementation & his util package
License
MIT License ยฉ 2021 Harlan Wilton