Opinionated Astro starter template.
Uses Astro V5, Tailwind CSS V4 and TypeScript. Comes pre configured with:
- A Prettier plugin that automatically sorts classes.
- Self hosted Inter font with fallback.
- A middleware for preloading render blocking CSS.
- A base layout.
Use this repository as a GitHub template or use degit, and then install the dependencies:
pnpm dlx degit wtchnm/Lastro#main my-site
pnpm i
pnpm dev
: Starts the development server.pnpm lint
: Runs Astro, Typescript and Prettier to check for issues.pnpm format
: Formats the code using Prettier.pnpm build
: Builds the site for production.pnpm preview
: Starts a local server to preview the production build.