How Can I Integrate Alpine with RunCSS? #611
mudgen
started this conversation in
4. General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RunCSS is a runtime version of TailwindCSS. See here: https://dev.to/mudgen/runcss-a-runtime-version-of-tailwindcss-5dic
RunCSS works by calling the
processClasses
function on the strings in the class attributes of DOM elements. processClasses generates at runtime the CSS needed by the browser.In order to integrate RunCSS with Alpine, is there a way that Alpine can call the processClasses function on each string value for each class attribute for each DOM element?
As an example here is how RunCSS integrates with Webscript:
Here is an example of how to integrate RunCSS without a Javascript library:
Someone said that integration with Alpine could be done with
x-init
. Could someone give me an example of that?Beta Was this translation helpful? Give feedback.
All reactions