Skip to content

How to get Svelte to treat a <style> element like any other HTML element? #10686

Answered by Prinzhorn
LeaVerou asked this question in Q&A
Discussion options

You must be logged in to vote

Are you looking for @html?

{@html `
	<style>
		:root {
			color-scheme: ${colorScheme};
		}
	</style>	
`}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@LeaVerou
Comment options

Answer selected by LeaVerou
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants