A modern, lightning-fast Svelte template built with SvelteKit, TypeScript, and Tailwind CSS. Perfect for building your next web application with a beautiful blue-purple gradient design theme.
svelte-vite-tailwind-template/
āāā src/
ā āāā lib/
ā ā āāā components/ # Reusable components (Header, Footer)
ā āāā routes/ # File-based routing
ā ā āāā about/ # About page
ā ā āāā services/ # Services page
ā ā āāā contact/ # Contact page
ā ā āāā +layout.svelte # Root layout
ā ā āāā +page.svelte # Home page
ā āāā app.css # Global styles with Tailwind directives
ā āāā app.html # HTML template
āāā static/ # Static assets
āāā svelte.config.js # SvelteKit configuration
Clone the repository:
git clone https://github.com/ishansasika/svelte-vite-tailwind-template.git
cd svelte-vite-tailwind-template
Install dependencies:
npm install
Start the development server:
npm run dev
Open your browser and navigate to http://localhost:5173
npm run dev - Start development servernpm run build - Build for productionnpm run preview - Preview production buildnpm run check - Run svelte-check for type checkingnpm run check:watch - Run svelte-check in watch modeThe template uses a blue-purple gradient theme. To customize the colors, modify the Tailwind classes in the components:
from-blue-600 to-purple-600from-blue-50 to-purple-50Update the logo letter in Header.svelte and Footer.svelte:
<span class="text-white font-bold text-xl">S</span>
Replace "SvelteKit" with your brand name in:
src/lib/components/Header.sveltesrc/lib/components/Footer.sveltesrc/routes/+layout.svelte (title tag)MIT License - feel free to use this template for your projects!
Created with ā¤ļø by Ishan Sasika