Guide

Installation

bash

The service provider is registered automatically by Laravel package discovery.

Styles

Import the package stylesheet in your Tailwind entry file, after tailwindcss:

css

The stylesheet registers the package views as a Tailwind source, so the classes the components use end up in your build. It also makes the dark variant follow the dark class on <html>, which the appearance toggle sets; declare your own @custom-variant dark after the import to change it.

The package's own CSS sits in Tailwind's base and components layers, so a utility you put on a component wins over it. See Colors for the palettes, the accent color and the few rules that need !.

Scripts

Nothing to add: the script tag is injected before </body> on every page that renders a component or a Livewire component, and it uses the Alpine.js already on the page (loading it when there is none). To place the tag yourself, set inject_assets to false and add @tallkitScripts to your layout, before @livewireScripts.

See Scripts for when the tag is not injected, apps that bundle Alpine (ESM plugin), caching and the Content Security Policy.