<script>
	export let dynamic;
</script>

<span class='foo'>
	<span class='bar'>text</span>
</span>

<span class='foo'>
	<span class='bar'>{dynamic}</span>
</span>

<style>
	.foo {
		color: red;
	}
	.bar {
		font-style: italic;
	}
</style>