Head component in Astro
I need to add some custom styles into <head> tag from component.
But there is no <Head> component in Astro that would be similar to Next's or SvelteKit's.
Is there any way to make it possible without property drilling everywhere.
Some global variable or whatever
1 Reply
Using:
Puts the styles globally on the head for you
https://docs.astro.build/en/guides/styling/#global-styles
Docs
Styles & CSS
Learn how to style components in Astro with scoped styles, external CSS, and tooling like Sass and PostCSS.