gregoriohc/laravel-nova-theme-classify

A Laravel Nova theme helper.

v0.4.1 2019-06-08 08:56 UTC

This package is auto-updated.

Last update: 2022-06-24 00:33:08 UTC


README

Latest Version on Packagist Total Downloads

Laravel Nova theme helper that add CSS classes to the main nova views elements, making it easier to style it.

Installation

You can install the nova theme helper into a Laravel app that uses Nova via composer:

composer require gregoriohc/laravel-nova-theme-classify

Usage

You can use this theme helper in three ways:

A) Adding an stylesheet on your Nova app, and using the provided CSS classes to customize the styles

First, publish the package skeleton stylesheet:

php artisan vendor:publish --provider="Gregoriohc\LaravelNovaThemeClassify\ThemeServiceProvider"

Then, update the stylesheet with your custom styles. The file is located in resources/css/vendor/laravel-nova-theme-classify/theme.css

B) Creating your own theme and adding this one as a dependency

First, create your own Nova theme:

php artisan nova:theme MyCustomTheme

Then, customize the CSS of your own theme, using the CSS classes provided by this one.

If you want to public release your theme, don't forget to add this as a dependency:

cd path/to/MyCustomTheme
composer require gregoriohc/laravel-nova-theme-classify

C) Using it as a base to create your own theme

Simply, clone this repo, and modify it to create your custom theme.

Credits

Support the development

Do you like this project? Support it by donating

License

The MIT License (MIT). Please see License File for more information.