Skip to content

Commit b6c0076

Browse files
committed
Add new tailwind config to readme
1 parent 6a6794b commit b6c0076

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

README.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,17 @@ You can install the package via composer:
2020
composer require codewithdennis/filament-simple-alert
2121
```
2222

23-
Make sure you add the following to your `tailwind.config.js file.
24-
25-
```bash
26-
'./vendor/codewithdennis/filament-simple-alert/resources/**/*.blade.php',
27-
```
28-
29-
Also, add the following safelist configuration to your `tailwind.config.js` to ensure animation classes are not purged:
30-
31-
```js
32-
module.exports = {
33-
// ... other config
34-
safelist: [
35-
'animate-spin',
36-
'animate-pulse',
37-
'animate-bounce'
38-
],
39-
}
40-
```
41-
4223
### Custom Theme
4324

4425
You will need to [create a custom theme](https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme) for the styles to be applied correctly.
4526

27+
Make sure you add the following to your `theme.css` file.
28+
29+
```bash
30+
@source '../../../../vendor/codewithdennis/filament-simple-alert/resources/**/*.blade.php';
31+
@source inline('animate-{spin,pulse,bounce}');
32+
```
33+
4634
## Usage
4735

4836
The alerts can be used in your `infolists` or `forms`, make sure you pick the right component.

0 commit comments

Comments
 (0)