-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Themes and Assets | ||
weight: 6 | ||
--- | ||
|
||
## Compiling assets | ||
|
||
we use [tailwind Css](https://tailwindcss.com/) and custom themes by filament, make sure you are familiar with [tailwindcss configuration](https://tailwindcss.com/docs/configuration), and how to make custom [filament theme](https://filamentphp.com/docs/2.x/admin/appearance#building-themes). | ||
|
||
### Custom Classes: | ||
|
||
You need to add these files to your `tailwind.config.js` file in the `content` section. | ||
|
||
* frontend: | ||
|
||
```js | ||
content: [ | ||
//... | ||
'./vendor/lara-zeus/dynamic-dashboard/resources/views/themes/**/*.blade.php', | ||
'./vendor/lara-zeus/dynamic-dashboard/src/Models/Columns.php', | ||
] | ||
``` | ||
|
||
* filament: | ||
|
||
```js | ||
content: [ | ||
//... | ||
'./vendor/lara-zeus/rain/resources/views/filament/**/*.blade.php', | ||
'./vendor/lara-zeus/rain/src/Models/Columns.php', | ||
] | ||
``` | ||
|
||
### Customizing the Frontend Views | ||
|
||
first, publish the config file: | ||
|
||
```php | ||
php artisan vendor:publish --tag=zeus-config | ||
``` | ||
|
||
then change the default layout in the file `zeus.php`: | ||
|
||
```php | ||
'layout' => 'components.layouts.app', | ||
// this is assuming your layout on the folder `resources/views/components/layouts/app` | ||
``` | ||
this will give you full control for the assets files and the header and the footer. | ||
|
||
|
||
If needed, you can publish the blade views for all zeus packages: | ||
|
||
```php | ||
php artisan vendor:publish --tag=zeus-views | ||
``` |