Courses

Livewire 3 for Beginners with Laravel 12 Starter Kit

Customize Layout with Tailwind

Summary of this lesson:
- Customizing the Laravel 12 Livewire Starter Kit's appearance
- Changing app name, logo, colors, and layout using Blade and Tailwind
- Modifying sidebar and topbar navigation styles
- Updating active menu item color
- Preparing for CRUD functionality in the next lesson

In this lesson, we will explore how to change the look of the page's main elements: the logo, colors, layout, and navigation.


Changing the App Name

Your application's default name at the top left, beside the logo, is "Laravel Starter Kit". You can change it in the logo component file.

resources/views/components/app-logo.blade.php:

BEFORE:

<span class="mb-0.5 truncate leading-none font-semibold">Laravel Starter Kit</span>

AFTER:

<span class="mb-0.5 truncate leading-none font-semibold">Livewire Tasks</span>

Changing the Name COLOR

With the same example, let's change the color with Tailwind, adding a text-blue-800 class.

resources/views/components/app-logo.blade.php

BEFORE:

<span class="mb-0.5 truncate leading-none font-semibold">Livewire Tasks</span>

AFTER:

<span class="mb-0.5 truncate leading-none font-semibold text-blue-800">Livewire Tasks</span>

Here's the visual result:

Notice: we're running npm run dev in the background to re-compile CSS styles automatically after every change.


Changing the Logo Icon

The logo icon is SVG, so we can change it with...

The full lesson is only for Premium Members.
Want to access all 19 lessons of this course? (91 min read)

You also get:

  • 73 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord