Currently, styling is split from a file.
In SomeComponent.astro, we have this:
---
// ...
---
<SomeComponent>
<!-- ... -->
</SomeComponent>
In index.css, we have this:
/* ================================================================= */
/* /src/components/SomeComponent.astro */
/* Styling Here */
/* ================================================================= */
Is it better if we place the style declarations within the component/layout? Like so:
---
// SomeComponent.astro
// ...
---
<SomeComponent>
<!-- ... -->
</SomeComponent>
<style>
/* Styling Here */
</style>
Any other suggestions to help with maintenance/workflow is welcome and appreciated 🙂
Currently, styling is split from a file.
In
SomeComponent.astro, we have this:In
index.css, we have this:Is it better if we place the style declarations within the component/layout? Like so:
Any other suggestions to help with maintenance/workflow is welcome and appreciated 🙂