Replies: 2 comments 6 replies
-
Hi Davzie, we had exactly the same problem; we styled a web component and the sizing was influenced by the We circumvent this by overriding all Tailwind properties that used rem's to calculate the values with a custom calculation:
Then, in our
Finally, in our
It would be great if Tailwind would support substituting rems out of the box for these edge cases. Overriding all rem values manually was cumbersome. |
Beta Was this translation helpful? Give feedback.
-
I was hitting a similar use case where I wanted to replace Not only supporting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Tailwind Team!
I'm trying to find a way to integrate TailwindCSS into an existing Bootstrap 3 project. To do this I'm encapsulating the new elements that I'm re-styling within a ShadowDOM so that the migrated component styles are completely unaffected by the existing Bootstrap 3 styles. As such, my basic thing like margin, colours all work beautifully, but the base styles that require the
html
tag for sizing just don't work.Here's another discussion with a similar issue: #1892
Is there a workaround to this? My use-case is the only way I can find to nicely separate the two styles without having to resort to huge re-working via iframes.
Thanks <3
Beta Was this translation helpful? Give feedback.
All reactions