This project integrates Metronic Tailwind HTML themes into a Laravel application, providing 10 complete demo layouts showcasing different UI patterns and design approaches.
Goal: Convert Metronic Tailwind HTML demo layouts (Demo1 through Demo10) into standard Laravel Blade views, providing a comprehensive showcase of Metronic's design system within Laravel's MVC architecture.
- Laravel: 12.x (Latest)
- PHP: 8.2+
- Tailwind CSS: 3.x
- Vite: 5.x for asset building
- Node.js: Latest LTS version
app/Http/Controllers/
├── Demo1Controller.php
├── Demo2Controller.php
├── ...
└── Demo10Controller.php
resources/views/
├── layouts/
│ ├── partials/
│ │ ├── head.blade.php
│ │ └── scripts.blade.php
│ ├── demo1/
│ │ ├── base.blade.php
│ │ └── partials/
│ ├── demo2/
│ │ ├── base.blade.php
│ │ └── partials/
│ └── ... (demo3-demo10)
├── pages/
│ ├── demo1/
│ │ └── index.blade.php
│ ├── demo2/
│ │ └── index.blade.php
│ └── ... (demo3-demo10)
└── components/
├── demo1/
├── demo2/
├── ... (demo3-demo10)
└── shared/
public/assets/
├── css/
│ └── styles.css
├── js/
│ ├── core.bundle.js
│ └── layouts/
│ ├── demo1.js
│ ├── demo2.js
│ └── ... (demo3-demo10.js)
├── media/
└── vendors/
This integration includes 10 complete demo layouts, each showcasing different UI patterns:
- Demo 1: Sidebar Layout - Traditional admin dashboard with sidebar navigation
- Demo 2: Header Layout - Modern dashboard with top navigation
- Demo 3: Minimal Layout - Clean, minimalist design approach
- Demo 4: Creative Layout - Creative and artistic dashboard design
- Demo 5: Modern Layout - Contemporary UI with modern elements
- Demo 6: Professional Layout - Business-focused professional design
- Demo 7: Corporate Layout - Enterprise-grade corporate dashboard
- Demo 8: Executive Layout - Executive-level dashboard interface
- Demo 9: Premium Layout - Premium design with advanced components
- Demo 10: Ultimate Layout - Most comprehensive layout with all features
-
Laravel MVC Architecture
- Dedicated controllers for each demo (Demo1Controller - Demo10Controller)
- Clean routing structure with named routes
- Blade template inheritance and components
-
Asset Management
- Metronic CSS and JavaScript assets properly integrated
- Laravel asset helpers for proper path resolution
- Vite integration for development workflow
-
Template System
- Blade layouts for each demo with proper inheritance
- Reusable partials for headers, sidebars, and footers
- Component-based architecture for UI elements
-
Responsive Design
- Mobile-first responsive layouts
- Touch-friendly navigation
- Adaptive components across all screen sizes
- Metronic Tailwind CSS - Complete design system integration
- Theme Support - Light and dark mode switching
- Custom Components - Metronic-specific UI components
- Icon System - Comprehensive icon library integration
- PHP 8.2 or higher
- Composer
- Node.js (LTS version)
- A web server (Apache/Nginx) or use Laravel's built-in server
- Clone the repository
git clone https://github.com/keenthemes/metronic-tailwind-html-integration.git
cd metronic-tailwind-html-integration/metronic-tailwind-laravel- Install PHP dependencies
composer install- Install Node.js dependencies
npm install- Copy Metronic assets
# Copy assets from metronic-tailwind-html/dist/assets to public/assets/
cp -r ../metronic-tailwind-html/dist/assets public/- Environment setup
cp .env.example .env
php artisan key:generate- Start development servers
# Terminal 1: Laravel server
php artisan serve
# Terminal 2: Vite dev server
npm run dev- Demo 1:
/demo1- Sidebar Layout - Demo 2:
/demo2- Header Layout - Demo 3:
/demo3- Minimal Layout - Demo 4:
/demo4- Creative Layout - Demo 5:
/demo5- Modern Layout - Demo 6:
/demo6- Professional Layout - Demo 7:
/demo7- Corporate Layout - Demo 8:
/demo8- Executive Layout - Demo 9:
/demo9- Premium Layout - Demo 10:
/demo10- Ultimate Layout
# Build optimized assets
npm run build
# Optimize Laravel
php artisan config:cache
php artisan route:cache
php artisan view:cache
# Optimize Composer autoloader
composer install --optimize-autoloader --no-dev- Controllers: Modify demo controllers to return your actual data
- Views: Customize Blade templates with your content
- Components: Create new Blade components for your specific needs
- Styling: Add custom CSS in
resources/css/app.css
- Each demo layout is independent and can be customized separately
- Shared partials allow for consistent elements across demos
- Component system enables reusable UI elements
- MVC Pattern: Clean separation using Laravel's MVC architecture
- Component-Based: Reusable Blade components for UI elements
- Asset Integration: Proper integration of Metronic assets with Laravel
- Responsive Design: Mobile-first approach across all layouts
- Controllers: One controller per demo layout
- Views: Organized by demo with shared layouts and partials
- Assets: Metronic assets properly integrated in
public/assets/ - Components: Reusable UI components for consistent functionality
For detailed integration steps and customization guides, refer to the complete documentation in the main repository.
For questions and support:
- Review the integration documentation
- Check the demo implementations for examples
- Refer to Laravel documentation for framework-specific questions