tlaxcalajuan Posted on Dec 15, 2020 How i use global script in my components sapper-svelte? #svelte #sapper #script Top comments (2) Subscribe Collapse Expand Giorgos Kontopoulos π Giorgos Kontopoulos π Giorgos Kontopoulos π Follow Remote Web engineer. Mostly frontend. Location Chios, Greece Education MS Computer Science Work Web Consultant at N3T Joined Jan 19, 2017 • Dec 29 '20 Dropdown menu Copy link Hide If you are referring to global css script see how it is used in a sapper template github.com/sveltejs/sapper-template (github.com/sveltejs/sapper-templat...) or you can use global scoped styles within any of the svelte files by using the :global function like so <style> :global(p) { margin-bottom: 1 rem; } </style> Enter fullscreen mode Exit fullscreen mode Collapse Expand Giorgos Kontopoulos π Giorgos Kontopoulos π Giorgos Kontopoulos π Follow Remote Web engineer. Mostly frontend. Location Chios, Greece Education MS Computer Science Work Web Consultant at N3T Joined Jan 19, 2017 • Dec 21 '20 Dropdown menu Copy link Hide Describe what you want to do with more details and perhaps someone can jump in and help. Code of Conduct • Report abuse For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
If you are referring to global css script see how it is used in a sapper template
github.com/sveltejs/sapper-template (github.com/sveltejs/sapper-templat...)
or you can use global scoped styles within any of the svelte files by using the
:global
function like soDescribe what you want to do with more details and perhaps someone can jump in and help.