-
PackagePanel builder Package Version3.0.0 How can we help you?
use Filament\Support\Facades\FilamentColor;
public function boot(): void
{
FilamentColor::register([
'gray' => [
50 => '247, 248, 250',
100 => '235, 249, 240',
// 200, 300, and so on
],
]);
}
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js', 'resources/css/filament/admin/theme.css', 'resources/scss/app.scss'],
refresh: true,
}),
],
});
.my-custom-class {
@apply bg-gray-50;
} On my view: <div class="my-custom-class">
Some text content
</div> The result after As you can see, the generated CSS does not use the How to make the |
Beta Was this translation helpful? Give feedback.
Answered by
cawecoy
Jun 14, 2024
Replies: 1 comment
-
The solution was to add @config '../css/filament/admin/tailwind.config.js'; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cawecoy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The solution was to add
tailwind.config.js
to theresources/scss/app.scss
:@config '../css/filament/admin/tailwind.config.js';