A modern starter template for building web applications with SvelteKit, TypeScript, TailwindCSS, and Sass. This template provides a robust foundation for your next project with best practices and modern tooling.
# Clone the repository
git clone [email protected]:MikevPeeren/sveltekit-typescript-tailwindcss-sass-starter.git
# or
npx degit [email protected]:MikevPeeren/sveltekit-typescript-tailwindcss-sass-starter.git
# Install dependencies
yarn install
# or
npm install
Start the development server:
yarn dev
# or
npm run dev
Open http://localhost:3000 to view your application.
yarn dev
- Start development serveryarn build
- Build for productionyarn preview
- Preview production buildyarn test
- Run Playwright end-to-end testsyarn test:unit
- Run Vitest unit testsyarn check
- Type-check your codeyarn check:watch
- Type-check your code in watch modeyarn lint
- Lint your codeyarn format
- Format your codeโโโ src/
โ โโโ routes/ # SvelteKit routes
โ โโโ app.html # HTML template
โ โโโ app.scss # Global styles
โ โโโ app.d.ts # TypeScript declarations
โโโ static/ # Static assets
โโโ tests/ # Test files
โโโ public/ # Public assets
This starter includes both end-to-end and unit testing setup:
Run tests with:
# Run end-to-end tests
yarn test
# Run unit tests
yarn test:unit
This starter combines the power of TailwindCSS with Sass:
src/app.scss
The project includes several configuration files:
tailwind.config.js
- TailwindCSS configurationtsconfig.json
- TypeScript configurationsvelte.config.js
- SvelteKit configuration.eslintrc.cjs
- ESLint configuration.prettierrc
- Prettier configurationContributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.