Welcome to my Astro 4 + Svelte Starter Kit! This project integrates the power of Astro 4 with TailwindCSS + Prettier Sorting for both Astro files and Svelte. This is a minimal setup out of the box mainly to address the issues with Prettier sorting tailwind classes in both Astro + Svelte files.
This includes sorting tailwind classes inside of style tags in both Astro and Svelte components as well. eg:
<style lang="postcss">
h1 {
@apply sm:text-xl md:text-2xl;
}
</style>
@components/
, @layouts/
, and @assets/
.@apply
directive working seamlessly in both Astro and Svelte as shown in the example file.~/*
for the source directory.@components/*
for Svelte components.@layouts/*
for layout components.@assets/*
for static assets.To get started with this starter pack, follow these steps:
# Clone the Repository
git clone https://github.com/KyTiXo/astro-4-tailwind-svelte.git
# Install Dependencies
cd astro-4-tailwind-svelte
pnpm install
# Start Developing
pnpm run dev