Izaanaami / tailwindCSS-className-parser-js

A tool to parse tailwind classes in javascript to get css-code, css property and css value of that class. also to do it in reverse
MIT License
6 stars 1 forks source link

creating arbitrary classnames from js objects #1

Open XEngine opened 2 months ago

XEngine commented 2 months ago

Hey! Awesome library!

I'm having very hard time to figuring your parser function in order to open a PR so I decided to open an issue about it. Parsing classnames like "gap-[20px]" into JS Object is perfectly working but turning the same JS Object into classname is not working. I am guessing arbitrary coversation not implemented yet.

I am terribly sorry not opening a PR

Izaanaami commented 2 months ago

yes I have not implemented arbitrary className creation out of javascript objects yet. I will add that feature as soon as I have free time on my hand. also you are more than welcome to open an pull request and implement it yourself, as it doesn't require much work and most of it is already done.

XEngine commented 1 month ago

https://github.com/Izaanaami/tailwind-parser-js/pull/3