Laravel
Set up Tabler in Laravel with Vite and build a first working page.
Laravel's Blade templates render plain server-side HTML, so every Tabler component works without wrappers or adapters. Styling comes from Tabler CSS, and a small JavaScript bundle handles interactive components such as dropdowns and modals.
This guide uses Laravel's default Vite setup. You'll install @tabler/core, add the CSS and JS to your Vite entry files, and render a first Blade view with a Tabler card.
Setup
Install Tabler package
Install @tabler/core with your preferred package manager:
npm install @tabler/coreyarn add @tabler/corepnpm install @tabler/corebun install @tabler/coreYou can also use CDN files when you don't want a Node-based build step:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/css/tabler.min.css" integrity="sha384-MwEqmM8WBfwWX5LiVzgcxav7Srl1u+b/gBJPodcWJTvwWJ9c7bLJXWhyiWtEqXkQ" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/js/tabler.min.js" integrity="sha384-CKrlmuNx52figWamK99uxnpR2acAc72jno6l+yhg0UTAcW+glcS7QsJ1lEApFaY/" crossorigin="anonymous"></script>Import styles
In a standard Laravel setup, import Tabler CSS in resources/css/app.css:
@import '@tabler/core/dist/css/tabler.min.css';To change Sass variables, compile the SCSS sources instead:
@use '@tabler/core/scss/tabler';Sass alone writes custom properties without the --tblr- prefix, so you also need a PostCSS step. Customize with Sass shows how to set it up.
Import and initialize JavaScript
Tabler JavaScript is required for interactive components such as dropdowns, modals, and tooltips. Import it in resources/js/app.js:
import '@tabler/core/dist/js/tabler.min.js'In Laravel, keep the Tabler imports in the Vite entry files (resources/css/app.css and resources/js/app.js) so they're compiled into your application bundles.
Minimal working example
First, load compiled assets in your base Blade layout (for example resources/views/layouts/app.blade.php):
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@vite(["resources/css/app.css", "resources/js/app.js"])
</head>
<body>
@yield("content")
</body>
</html>Then create a simple page route in routes/web.php:
<?php
use Illuminate\Support\Facades\Route;
Route::get("/", function () {
return view("welcome");
});Then add a small Tabler layout with one card in resources/views/welcome.blade.php:
@extends("layouts.app")
@section("content")
<div class="page">
<div class="page-wrapper">
<div class="container-xl py-4">
<div class="card">
<div class="card-body">
<h3 class="card-title">Laravel + Tabler</h3>
<p class="text-secondary mb-0">Your Tabler setup is working.</p>
</div>
</div>
</div>
</div>
</div>
@endsectionRun the dev server and Vite:
php artisan serve
npm run devOpen the local URL from php artisan serve and confirm the card is styled with Tabler.
Next steps
- Continue with Customize to adjust styles and build setup.
- Explore Layout to choose page structures.
- Browse Components to add UI building blocks.

