tailwind_to_css icon indicating copy to clipboard operation
tailwind_to_css copied to clipboard

Support Config Files

Open julio-salas03 opened this issue 2 years ago • 1 comments

I recently ran into this tool and it's totally awesome. However I wasn't able to use it since my classes are prefixed with tw-.

A good way to solve this could be allowing users to import their config file, so if they have a custom configuration the app can take it into account.

There are obviously some questions/difficulties, like plugins for example, but maybe supporting a basic config file with no plugins or imports could be a good way to start.

julio-salas03 avatar Jan 19 '24 05:01 julio-salas03

An interesting situation. I suppose the workaround right now is to manually find and remove all instances of the tw- prefix.

I guess a function could be added to strip the prefix from the input before processing it, referencing how the prefix is used.

It could involve a small text box in the top header to input your prefix. Then when you paste the classes with prefix, they will be stripped (internally in server) during processing, and also added back to the generated CSS.

Is there any other reason to support config files besides the prefix situation?

ADTC avatar Nov 01 '24 12:11 ADTC