Configuration
// tailwind.config.js
module.exports = {
content: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
],
theme: {
extend: {
colors: {
brand: '#0aa39a',
}
}
}
}
Component Extraction
Use @apply sparingly. Prefer Blade components:
<!-- resources/views/components/button.blade.php -->
<button {{ $attributes->merge(['class' => 'px-4 py-2 bg-brand text-white rounded']) }}>
{{ $slot }}
</button>