windicss / windicss

Next generation utility-first CSS framework.
https://windicss.org
MIT License
6.51k stars 181 forks source link

[RFC] windicss with webapis #449

Open alexanderniebuhr opened 3 years ago

alexanderniebuhr commented 3 years ago

Here is my implementation of in-browser windiCSS looks like to serve IIFE of windiCSS (using rollup config).

HTML demo link: https://codesandbox.io/s/html-windicss-live-playground-b2kbh React demo link: https://codesandbox.io/s/react-windicss-live-playground-5j7xr

UNPKG CDN link: https://unpkg.com/browse/windicss-with-web-api@0.2.1/

Originally posted by @MpMeetPatel in https://github.com/antfu/windicss-runtime-dom/issues/2#issuecomment-908649547

alexanderniebuhr commented 3 years ago

/cc @windicss/windicss have ported the issue over here. I think the general question we should discuss ist whether we would like to have this as an PR merged in core or whether we would like to add this as an additional integration maintained by the community. What do you think?