PHP code example of caresome / filament-neobrutalism-theme

1. Go to this page and download the library: Download caresome/filament-neobrutalism-theme library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

caresome / filament-neobrutalism-theme example snippets


use Caresome\FilamentNeobrutalism\NeobrutalismeTheme;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(NeobrutalismeTheme::make());
}

->plugin(
    NeobrutalismeTheme::make()
        ->customize([
            'border-width' => '6px',
            'border-width-thick' => '8px',
            'radius-md' => '1.5rem',
            'shadow-offset-lg' => '10px',
        ])
)

->customize([
    '--my-custom-color' => '#ff0000',
    '--my-custom-spacing' => '2rem',
])

->customize(fn() => [
    'border-width' => auth()->user()->preferences['border_width'] ?? '4px',
    'shadow-offset-md' => session('theme_shadow_size', '6px'),
])

->plugin(
    NeobrutalismeTheme::make()
        ->customize([
            'border-width' => '2px',
            'shadow-offset-md' => '3px',
            'radius-md' => '0.5rem',
        ])
)

->plugin(
    NeobrutalismeTheme::make()
        ->customize([
            'border-width' => '6px',
            'border-width-thick' => '8px',
            'shadow-offset-md' => '10px',
            'shadow-offset-lg' => '12px',
            'radius-md' => '1.5rem',
        ])
)

->plugin(
    NeobrutalismeTheme::make()
        ->customize([
            'border-width' => '3px',
            'shadow-offset-md' => '4px',
            'radius-sm' => '0.25rem',
            'radius-md' => '0.375rem',
            'radius-lg' => '0.5rem',
        ])
)
bash
php artisan filament:assets