4 ms·
Does anyone know if it's possible to get Tailwind class sorting in Elixir Phoenix HEEX templates. It would be a great addition to the Elixir formatter. Maybe w
by timenova 3y ago
Does anyone know if it's possible to get Tailwind class sorting in Elixir Phoenix HEEX templates. It would be a great addition to the Elixir formatter.
Maybe we could write a formatter plugin in Elixir that does the same thing if this one isn't usable directly.
- krnsi 3y agoHere you go: https://hexdocs.pm/tailwind_formatter/TailwindFormatter.html https://hexdocs.pm/tailwind_formatter/TailwindFormatter.html
- timenova 3y agoThanks! I'll try it out soon. Looks exactly what I wanted, including the feature to order variants automatically (`dark:sm:... -> sm:dark:...` from the repo's readme).