You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Utility function to efficiently merge Tailwind CSS classes in Golang without style conflicts. This library aims to be as close as possible to a 1:1 copy of the original tailwind-merge library written in javascript.
- See [tailwind-merge](https://github.com/dcastil/tailwind-merge/blob/v2.2.1/docs/limitations.md)
31
+
32
+
## Roadmap
33
+
34
+
- Write contributing docs
35
+
- Improve current docs
36
+
- Improve cache concurrent performance by locking on a per key basis -> https://github.com/EagleChen/mapmutex
37
+
- Split code into multiple pkgs so in the twmerge pkg there is only the Merge & CreateTailwindMerge functions
38
+
- Build the class map on initialization and have a simple config style
39
+
- replace regex with more performant solution
40
+
- Move arbitrary value delimeters '[' & ']' to config somehow?
41
+
42
+
## Acknowledgments
43
+
44
+
- Credit for all the hard work goes to [dcastil/tailwind-merge](https://github.com/dcastil/tailwind-merge/).
45
+
- For the tests I used
46
+
- For the approach and the code. I mostly translated from js to go
47
+
- Big thank you to [tylantz/go-tailwind-merge/](https://github.com/tylantz/go-tailwind-merge/tree/main) for pushing me to finally do this by writing a very interesting version of this same idea (I encourage you to check it out) and for the code to generate a go test file based on tailwind-merge's tests
0 commit comments