Transform your css/scss to tailwindcss plugin!
#12102
sonofmagic
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Quickly Start css-to-tailwindcss-plugin
I write a lib called
css-to-tailwindcss-plugin, it's can transform yourcss/scsstotailwindcss plugin, let's see how to use it.theme()and@applyresolvedInput & Output Sample
you have a css file like below:
then it will transform to
tailwindcss pluginlike this:Install
if you want to resolve
tailwindcss's Functions & Directives, you should installtailwindcss.also
scss/sasssupport need to installsass, then this package can handle.scssfiles.Usage
Cli
Then a js file called
<css-file-name>.jswill be generated in thetw-pluginsdir.Nodejs Api
Tailwindcss Plugin
tailwindcss
theme()and@applyresolvedyou should install
tailwindcss, then passtailwind.config.jsfile path orinline Configto this lib.then
theme()and@applywill be resolved.License
MIT License © 2023-PRESENT sonofmagic
Source Code Url:
https://github.com/sonofmagic/icestack/tree/main/packages/css-to-tailwindcss-plugin
Beta Was this translation helpful? Give feedback.
All reactions