tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

Normalize.css 8.0.0

Open gregwolanski opened this issue 8 years ago • 4 comments

I love Tailwind CSS! Great job. Thank you.

Tailwind uses normalize.css 7.0.0. Version 8.0.0 is now available. Does Tailwind use 7.0.0 for some very specific reason?

I would create a pull request with an update, but normalize.css is outside package.json – it functions as a part of css/preflight.css. Is there any reason for that? :)

If “yes,” I’m genuinely interested in the details.

If “no,” I can take care of it.

gregwolanski avatar Jul 22 '18 20:07 gregwolanski

My interpretation of the preflight file is that you use it if you want as little trouble as possible to get started.

If you want to use another version of normalize.css, I suggest you add postcss-normalize to your project. And put the tailwind specific styles of preflight.css in your css file. Maybe you don't need all of them depending on the postcss-normalize browser configuration.

davidDuymelinck avatar Jul 24 '18 09:07 davidDuymelinck

My interpretation of the preflight file is that you use it if you want as little trouble as possible to get started.

I agree David and that’s the reason why I think we should keep normalize.css up to date. :)

gregwolanski avatar Jul 24 '18 09:07 gregwolanski

It's actually suitcss/base, which includes normalize.css. Tailwind also slightly modifies that without overriding with higher specificity selectors, mostly borders, list styles and outline I think.

So for the dependency to be imported instead of forked those modifications would need to be separate declarations.

tlgreg avatar Jul 24 '18 09:07 tlgreg

Happy to accept a PR for updating to Normalize 8.0.0 👍🏻

adamwathan avatar Aug 16 '18 16:08 adamwathan