Replies: 1 comment
-
Found the issue causing the additional CSS. The RTL support added to v0.5.12 @tailwindcss/typography caused the Parcel bundler to transpile the Tailwind CSS with multiple lang() selectors. The solution was to change the browserlist string from "since 2019, not op_mini all, not dead" to "since 2020, not op_mini all, not dead", which reduced the CSS by more than 20%. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since @tailwindcss/typography v0.5.12 (which added logical properties for RTL support), the plugin generates multiple instances of
:lang()
selectors for prose styles, which can overwrite styling added via tailwind.config.jsHere's an example of the generated CSS:
The issue does not occur in v0.5.11 and earlier versions of the plugin.
Supporting RTL seems to add a lot of complexity, so it would be helpful if the option to disable RTL was available.
Beta Was this translation helpful? Give feedback.
All reactions