Concept Flow - Global vs scoped style strategies
Write styles in <style> tag
Is style scoped?
No→Apply styles globally to all matching elements
Yes
Svelte adds unique attribute to elements
Styles apply only to elements with that attribute
Component renders with scoped styles
Other components unaffected by scoped styles
Styles in Svelte can be global or scoped. Scoped styles get a unique attribute to apply only inside the component, while global styles affect all matching elements.