Skip to content

Getting Started

Welcome to Bagisto theme development! This comprehensive guide will take you through the complete journey of creating custom themes, from basic customizations to professional theme packages.

What You'll Learn

  • Understanding Bagisto's theme system and configuration
  • Creating basic themes using the resources directory
  • Building professional theme packages
  • Asset management and bundling with Vite
  • Best practices for theme development and distribution

Prerequisites

To get the most out of this guide, you should have:

Essential Knowledge

  • HTML/CSS: For styling and layout
  • Blade Templating: Laravel's templating engine used by Bagisto
  • Basic PHP: Understanding of PHP syntax and Laravel concepts

Helpful Knowledge

  • Laravel Package Development: For creating distributable themes
  • Tailwind CSS: Bagisto's utility-first CSS framework
  • JavaScript: For interactive frontend features
  • Vite/Webpack: For asset bundling and optimization

Development Environment

  • Working Bagisto installation
  • Code editor (VS Code, PHPStorm, etc.)
  • Node.js (for asset compilation)
  • Composer (for package management)

Your Theme Development Path

Step 1: Start with Basic Themes

Begin your journey by learning the fundamentals:

🏪 Creating Store Theme →
Learn to create custom shop themes using the resources directory approach.

💼 Creating Admin Theme →
Customize the admin interface with your own admin theme.

Step 2: Build Professional Packages

Once you're comfortable with basics, advance to professional development:

📦 Custom Theme Package →
Learn to create proper Laravel packages for your themes with service providers and distribution support.

Step 3: Master Asset Management

Complete your theme development skills:

Vite-Powered Theme Assets →
Master Vite configuration for optimized asset compilation and modern development workflows.

Step 4: Advanced Techniques

Deepen your understanding with advanced topics:

📄 Understanding Layouts →
Master Bagisto's layout system and component architecture.

🧩 Blade Components →
Learn to use and customize Bagisto's pre-built components.

Development Tips

Best Practices

  • Start Simple: Begin with the resources directory approach before moving to packages
  • Use Version Control: Always track your theme changes with Git
  • Test Thoroughly: Check your themes across different devices and browsers
  • Follow Conventions: Use Bagisto's naming conventions and file structure

Common Pitfalls

  • Don't Skip Basics: Understanding the resources approach helps with package development
  • Avoid Hardcoding: Use Bagisto's configuration and helper functions
  • Theme Conflicts: Be careful when overriding core templates
  • Asset Caching: Clear caches during development to see changes

What's Next?

Now that you understand Bagisto's theme development approach, start your journey:

🏪 Creating Store Theme →
Learn to create your first custom store theme using the resources directory.

👩‍💼 Creating Admin Theme →
Discover how to customize the admin panel interface with custom themes.

📦 Custom Theme Package →
Advance to creating professional theme packages for distribution and better organization.

Released under the MIT License.