Closed nidico closed 1 year ago
Thanks for this. Generally for anyone reading this: Test cases such as the one in this issue are great. I turned it into a failing test in #23, which will make it much easier to fix in the future.
For now I'll have to get back to work :)
I've published version 0.5.0-alpha5, which should fix the issue.
Fix confirmed.
Similar issue as #18, but caused by another color syntax in tailwind config.
CSS colors can be defined in functional notation, e.g.
hsl(30deg 100% 50%)
, see MDN for a variety of possible syntax definitions.When this syntax is used, elm-tailwind-modules 0.5.0-alpha3 generates the appropriate colors in
Tailwind/Theme.elm
, but also generates (redundant) functions inTailwind/Utilities.elm
.In the following example, functions like
bg_by_hsl
still exist in the generatedTailwind/Utilities.elm
, despite color functions likeby_hsl
being generated inTailwind/Theme.elm
: