Utility function to efficiently merge Tailwind CSS classes in JS without style conflicts.
gleam add [email protected]import glailwind_merge
import gleam/io
pub fn main() {
glailwind_merge.tw_merge(["justify-center bg-red-500", "justify-start"])
|> io.println // bg-red-500 justify-start
}Further documentation can be found at https://hexdocs.pm/glailwind_merge.
- Move from elixir dependency to erlang or gleam implementation
gleam test