matheus23 / elm-tailwind-modules

Generate Elm code for Tailwind Utilities and Components that purges using Elm's dead code elimination!
https://matheus23.github.io/elm-tailwind-modules/
117 stars 12 forks source link

"browser styles" are not reset #5

Closed sebbes-at-deepgram closed 3 years ago

sebbes-at-deepgram commented 3 years ago

With Tailwind, I'm used to have the default styling "reset", e.g. the <a> tag are not blue and underlined.

With elm-tailwind-modules, this is not the case. Would it be possible to perform this resets automatically in the generated elm-css?

matheus23 commented 3 years ago

elm-tailwind-modules generates a definition Tailwind.Utilities.globalStyles which contains the style reset. You need to include it in your HTML:

https://github.com/matheus23/elm-tailwind-modules/blob/6ecb47a58aad25bd1b4328b8edaebb611623c08b/test-example/src/Main.elm#L15

I'll close this issue for now, please re-open it if this didn't resolve your issue :)

sebbes-at-deepgram commented 3 years ago

Thanks a lot for the quick answer! It worked for me!