twix icon indicating copy to clipboard operation
twix copied to clipboard

Custom prefix fails

Open iwarshak opened this issue 2 years ago • 3 comments

Hi - It seems like Twix does not work correctly when custom prefixes are involved. I am running on master, and this is what I get:

iex(15)> Twix.tw(["mt-2 block w-full rounded-lg border-zinc-300", "mt-0"])                  
"block w-full rounded-lg border-zinc-300 mt-0"
iex(16)> Twix.tw(["tw-mt-2 tw-block tw-w-full tw-rounded-lg tw-border-zinc-300", "tw-mt-0"])
"tw-mt-2 tw-block tw-w-full tw-rounded-lg tw-border-zinc-300 tw-mt-0"
iex(17)> 

Would this be a big effort to support prefixes? I am migrating my app from Bootstrap to Tailwind, so a prefix is necessary in this case.

iwarshak avatar Dec 29 '22 19:12 iwarshak