ํ๋ก์ ํธ
GitHub์์ ๋ณด๊ธฐ
windicss/vite-plugin-windicss
์๊ฐ
๐ Vite์ฉ Windi CSS โก๏ธ
์น ๋ฐ ์ฑ ๊ฐ๋ฐWhat you can do
- โก๏ธ It's FAST - 20~100x times faster than Tailwind on Vite
- ๐งฉ On-demand CSS utilities (Fully compatible with Tailwind CSS v2)
- ๐ฆ On-demand native elements style reseting (preflight)
- ๐ฅ Hot module replacement (HMR)
์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Original
โ ๏ธ Windi CSS is Sunsetting โ ๏ธ
We are sunsetting Windi CSS and we recommend new projects to seek for alternatives. Read the full blog post.
vite-plugin-windicss
Windi CSS for Vite, it's fast! โก๏ธ
Features
- โก๏ธ It's FAST - 20~100x times faster than Tailwind on Vite
- ๐งฉ On-demand CSS utilities (Fully compatible with Tailwind CSS v2)
- ๐ฆ On-demand native elements style reseting (preflight)
- ๐ฅ Hot module replacement (HMR)
- ๐ Load configurations from
tailwind.config.js - ๐ค Framework-agnostic - Vue, React, Svelte and vanilla!
- ๐ CSS
@apply/@screendirectives transforms (also works for Vue SFC's<style>) - ๐ณ Support Variant Groups - e.g.
bg-gray-200 hover:(bg-gray-100 text-red-300) - ๐ "Design in Devtools" - if you work this way in the traditional Tailwind, no reason we can't!
Documentation
Read the documentation for more details.
New Features in v3.0
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>
Prefix
If you are concerned about naming confliction, you can add custom prefix to attributify mode by:
// windi.config.ts
export default {
attributify: {
prefix: 'w:',
},
}
<button
w:bg="blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600"
w:text="sm white"
w:font="mono light"
w:p="y-2 x-4"
w: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
License
MIT License ยฉ 2021 Anthony Fu
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ