Relative Content

Tag Archive for csstailwind-css

Create a barrier to CSS inheritance with Tailwind?

I am developing an interactive data visualization library and CSS inheritance has been causing me some pain. Specifically, I’d like my interactive graphs to be embedable inside HTML documents (such as bookdown) without inheriting the parent element’s styles, since this can mess up my layout. I’m using Tailwind utility classes and have had issues where the parent component’s styles would override my graphs’ styles because they had higher specificity.