PHP code example of agenticmorf / fluxui-theme

1. Go to this page and download the library: Download agenticmorf/fluxui-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/ */

    

agenticmorf / fluxui-theme example snippets


protected $casts = [
    'appearance_preferences' => 'array',
];

'appearance_resolver' => [App\Services\MorfSettings::class, 'getAppearance'],

'route' => 'settings/appearance',
'route_name' => 'appearance.edit',

$appearance = app(\AgenticMorf\FluxuiTheme\AppearanceService::class)->getEffective(auth()->user());
// ['accent' => 'blue', 'base' => 'zinc', 'theme' => 'system']
bash
php artisan migrate
blade
@php
    $appearance = app(\AgenticMorf\FluxuiTheme\AppearanceService::class)->getEffective(auth()->user());
@endphp
<body>
    <flux:accent id="flux-accent" :color="$appearance['accent']">
        {{-- Your app content: sidebar, header, main, etc. --}}
    </flux:accent>
</body>
blade
{{-- resources/views/partials/settings-heading.blade.php --}}
<div class="relative mb-6 w-full">
    <flux:heading size="xl" level="1">{{ __('Settings') }}</flux:heading>
    <flux:subheading size="lg" class="mb-6">{{ __('Manage your profile and account settings') }}</flux:subheading>
    <flux:separator variant="subtle" />
</div>
bash
php artisan vendor:publish --tag=fluxui-theme-config