Problem I'm trying to solve:
I want to use Vitepress to document my own component library. The issue I have is that Vitepress' own styling sometimes override my own components. By putting all of Vitepress' own styles inside @layer we lower the specificity of those styles and make sure they are easily overridden.
Problem I'm trying to solve: I want to use Vitepress to document my own component library. The issue I have is that Vitepress' own styling sometimes override my own components. By putting all of Vitepress' own styles inside
@layer
we lower the specificity of those styles and make sure they are easily overridden.