Level 1
That is not possible AFAIK. Scoped styles are "one way": they make your styles local to prevent one component to affect others.
And global styles, well, stays global.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a component which I want to prevent from accepting global styles. I have tried using scoped on the component but it does not work.
I tried using scoped style, and I was expecting that apart from preventing my component styles to be globally accessible, it will also prevent my component from accessing global variable. But this seems not to be working.
That is not possible AFAIK. Scoped styles are "one way": they make your styles local to prevent one component to affect others.
And global styles, well, stays global.
Please or to participate in this conversation.