tailwind-colors.css
contains all tailwind color palette required for customizing laravel nova badges
- Copy
/dist/tailwind-colors.css
to public dir (e.g.css/tailwind-colors.css
) - Include styles in a file
resources/views/vendor/nova/partials/meta.blade.php
(create file if not)<link rel="stylesheet" href="{{ asset('css/tailwind-colors.css') }}">
Badge::make('Type')
->addTypes([
'Free' => 'bg-blue-100 text-blue-600 dark:bg-blue-500 dark:text-blue-900',
'Pro' => 'bg-violet-100 text-violet-600 dark:bg-violet-500 dark:text-violet-900',
'Premium' => 'bg-lime-100 text-lime-600 dark:bg-lime-500 dark:text-lime-900',
]),
- Specify the required styles in
content-generator.php
- Run
php content-generator.php
- Run
npx tailwindcss -i ./src/input.css -o ./dist/tailwind-colors.css --minify
If you have any feedback, comments or suggestions, please feel free to open an issue within this repository.
The MIT License (MIT). Please see License File for more information.