Styles can be added to a Svelte component in a <style> tag. In practice, Svelte components have the style tag at the end of the file. Styles are scoped to the component.
<script>
export let task;
</script>
<p>{task}</p>
<style>
p {
color: red;
}
</style>