resources/boost/skills/tailwind/SKILL.md
Tailwind CSS v4 styling conventions. Use when working with CSS, Tailwind utilities, or customizing the theme in Laravel projects.
npx skillsauth add codebar-ag/coding-guidelines tailwindInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
resources/css/app.css.Design/SKILL.md).resources/css/app.css.@tailwindcss/vite.@source directives include relevant Blade/Livewire paths.npm run dev or npm run build succeeds).@theme for tokens (colors, fonts, spacing) instead of hardcoded duplicates.sm:, md:, lg:) where layout changes by viewport.dark: variants where dark mode behavior is required..css class selectors.@theme within resources/css/app.css.@source directives./* resources/css/app.css — theme customization via @theme */
@import "tailwindcss";
@theme {
--color-primary-500: #3b82f6;
--color-accent-500: #8b5cf6;
--font-sans: "Inter", system-ui, sans-serif;
}
@source "../views/**/*.blade.php";
@source "../../app/Livewire/**/*.php";
{{-- Compose utilities in markup --}}
<div class="rounded-lg shadow-sm p-4 sm:p-6 lg:p-8 transition ease-in-out duration-150">
<h2 class="text-lg font-semibold text-gray-900 dark:text-gray-100">Title</h2>
</div>
{{-- Before: long repeated utility strings across views --}}
<button class="inline-flex items-center gap-2 rounded-md bg-indigo-600 px-3 py-2 text-sm font-medium text-white hover:bg-indigo-500 disabled:cursor-not-allowed disabled:opacity-60">
Save
</button>
{{-- After: extract to a reusable component --}}
<x-card class="p-4">
{{ $slot }}
</x-card>
npm run build after style/token changes to catch invalid Tailwind usage..my-class { ... } selectors in CSS files<style> tags instead of Tailwind utilities@source directives for Blade/Livewire paths (classes won't be scanned)@theme@source.Design/SKILL.md — design system and component conventionsBlade/SKILL.md — Blade template structuretesting
Translation and localization conventions for Laravel. Use when adding user-facing strings, creating translation files, or working with lang/ directory.
tools
Reusable behaviour shared across multiple unrelated classes. Traits provide shared Eloquent scopes, accessors, lifecycle hooks, and small stateless helper methods.
development
Orchestration classes that coordinate multiple Actions, external APIs, or domain operations into a cohesive workflow. Services own transaction boundaries and third-party API integrations.
development
Saloon-based service layer pattern for all external API integrations. Every new external API integration must use Saloon — no raw HTTP calls.