Question · Svelte and SvelteKit course · Module 2: Components
Global Styles
How do you define a global style in a Svelte component?
Answer options
- Using the :global() selector
- By adding a global attribute to the style tag
- Styles are global by default
- Using !important
Show the answer
Correct answer:
- Using the :global() selector