← Back

@scope - Solution

Solution

Dark-theme section

This is within the dark-theme parent

Light-theme section within a dark-theme section

This is within the dark-theme parent

Dark-theme section within a light-theme section

This is within the light-theme parent

Solution

With @scope we are being strict that the styles within the @scope selection only apply to that scope not other scopes.