nextra icon indicating copy to clipboard operation
nextra copied to clipboard

Adding support for cascade layers

Open terrymun opened this issue 2 years ago • 1 comments

Is it possible to provide an option in the build step (could be a theme config) in nextra, so that it wraps all nextra-related styles in a cascade layer, e.g. @layer nextra { ... }?

The reason I'm asking is because we are working with component libraries in our organization and some are considering using cascade layers in their component styles. However, the styles from nextra (unlayered ones) will always override the layered styles, making it difficult to consume these component libraries with nextra.

terrymun avatar Jan 06 '24 22:01 terrymun

pr welcome (considering using v3 as base branch)

dimaMachina avatar Jan 17 '24 14:01 dimaMachina

I have opened a PR for this issue/enhancement.

See 2740

samcxps avatar Feb 23 '24 21:02 samcxps