facebookincubator / infima

A UI framework that provides websites with the minimal CSS and JS needed to get started with building a modern responsive beautiful website
https://infima.dev
MIT License
412 stars 55 forks source link

Support for CSS @layer #315

Open lyleaigbedion opened 1 week ago

lyleaigbedion commented 1 week ago

Is there a chance for all of the Infima CSS it be wrapped in @layer to better override the css in Docusaurus?

slorber commented 1 week ago

I don't think we'll do this on the Infima side (which I'd like to slowly deprecate and internalize to Docusaurus)

If you only care about Docusaurus global CSS pollution, track https://github.com/facebook/docusaurus/issues/6032

Maybe we'll adopt Cascade layers and append one automatically to all Infima classes, but we'll probably also want to do so on other parts of Docusaurus.