# Responsive Grid Skeleton A clean, minimal skeleton framework for building responsive, grid-based websites with SvelteKit, TailwindCSS, and DaisyUI. ## 🚀 Features - **Mobile-First Design**: All layouts start with mobile and scale up - **Responsive Grid System**: Flexible CSS Grid and Flexbox layouts - **Modern Tech Stack**: SvelteKit 2.0, TailwindCSS 3.4, DaisyUI 5.1 - **Comprehensive Documentation**: Detailed comments explaining every pattern - **Accessibility Ready**: ARIA labels, keyboard navigation, screen reader support - **Performance Optimized**: Minimal bundle size and fast loading times - **TypeScript Support**: Full type safety out of the box ## 📱 Responsive Breakpoints The framework uses TailwindCSS's responsive breakpoints: - **Mobile**: Default (0px+) - Single column layouts, stacked content - **Small**: `sm:` 640px+ - Small tablets, 2-column layouts - **Medium**: `md:` 768px+ - Tablets, 2-3 column layouts - **Large**: `lg:` 1024px+ - Laptops, multi-column layouts - **Extra Large**: `xl:` 1280px+ - Desktops, maximum columns - **2X Large**: `2xl:` 1536px+ - Large desktops, spacious layouts ## 🎯 Grid Layout Patterns ### Basic Responsive Grid ```html
Item 1
Item 2
Item 3
``` ### Asymmetric Layout (2:1 Ratio) ```html
Main Content
Sidebar
``` ### Mixed Column Spans ```html
Full Width Header
Main Area
Sidebar
Half Width
Half Width
``` ## 🏗️ Project Structure ``` src/ ├── routes/ │ ├── +layout.svelte # Main layout with navigation │ ├── +page.svelte # Homepage with grid examples │ ├── about/ │ │ └── +page.svelte # About page (content layout example) │ └── contact/ │ └── +page.svelte # Contact page (form layout example) ├── app.css # Global styles and custom CSS └── app.html # HTML template ``` ## 🎨 Container Patterns ### Centered Container ```html
``` ### Custom Max-Width ```html
``` ### Full Width ```html
``` ## 📏 Spacing Patterns ### Responsive Grid Gaps ```html
``` ### Responsive Padding ```html
``` ### Responsive Vertical Spacing ```html
``` ## 🚀 Getting Started 1. **Clone or download** this skeleton project 2. **Install dependencies**: ```bash npm install ``` 3. **Start development server**: ```bash npm run dev ``` 4. **Start building** your responsive website! ## 🛠️ Development Commands - `npm run dev` - Start development server - `npm run build` - Build for production - `npm run preview` - Preview production build - `npm run check` - Run TypeScript checks ## 📚 Best Practices ### Mobile-First Approach Always start with mobile styles and add larger breakpoints: ```html
``` ### Semantic HTML Use proper HTML5 semantic elements: ```html
Navigation
Content sections
Footer content
``` ### Accessibility Include proper ARIA labels and keyboard navigation: ```html ``` ## 🎨 Customization ### Colors Customize the color scheme in `tailwind.config.js`: ```javascript module.exports = { // ... other config daisyui: { themes: [ { mytheme: { "primary": "#your-color", "secondary": "#your-color", // ... other colors }, }, ], }, } ``` ### Breakpoints Add custom breakpoints in `tailwind.config.js`: ```javascript module.exports = { theme: { screens: { 'xs': '475px', // ... default breakpoints '3xl': '1600px', } } } ``` ## 📦 Tech Stack - **[SvelteKit](https://kit.svelte.dev/)** - Full-stack web framework - **[TailwindCSS](https://tailwindcss.com/)** - Utility-first CSS framework - **[DaisyUI](https://daisyui.com/)** - Component library for TailwindCSS - **[Lucide Svelte](https://lucide.dev/)** - Beautiful & consistent icons - **[TypeScript](https://www.typescriptlang.org/)** - Type safety - **[Vite](https://vitejs.dev/)** - Fast build tool ## 🤝 Contributing This is a skeleton framework meant to be customized for your projects. Feel free to: 1. Fork this repository 2. Customize it for your needs 3. Share improvements back to the community ## 📄 License This project is open source and available under the [MIT License](LICENSE). ## 🆘 Support - Check the example pages for common patterns - Review the comprehensive comments in the code - Open an issue for bugs or feature requests --- **Happy building!** 🎉 Use this skeleton as your starting point for creating beautiful, responsive, and accessible web applications.