@php $customizerOptions = [ 'colorMainForeground' => [ 'title' => __('Foreground'), 'cssVar' => '--foreground', 'type' => 'color', 'values' => [], ], 'colorMainBackground' => [ 'title' => __('Background Color'), 'cssVar' => '--background', 'type' => 'color', 'values' => [], ], 'colorMainBorder' => [ 'title' => __('Border Color'), 'cssVar' => '--border', 'type' => 'color', 'values' => [], ], 'colorMainHeadingForeground' => [ 'title' => __('Headings Foreground'), 'cssVar' => '--heading-foreground', 'type' => 'color', 'values' => [], 'showInCustomizer' => false, ], 'colorMainPrimary' => [ 'title' => __('Primary Color'), 'cssVar' => '--primary', 'type' => 'color', 'values' => [], ], 'colorMainPrimaryForeground' => [ 'title' => __('Primary Foreground'), 'cssVar' => '--primary-foreground', 'type' => 'color', 'values' => [], 'showInCustomizer' => false, ], 'colorMainSecondary' => [ 'title' => __('Secondary Color'), 'cssVar' => '--secondary', 'type' => 'color', 'values' => [], ], 'colorMainSecondaryForeground' => [ 'title' => __('Secondary Foreground'), 'cssVar' => '--secondary-foreground', 'type' => 'color', 'values' => [], 'showInCustomizer' => false, ], 'colorMainAccent' => [ 'title' => __('Accent Color'), 'cssVar' => '--accent', 'type' => 'color', 'values' => [], ], 'colorMainAccentForeground' => [ 'title' => __('Accent Foreground'), 'cssVar' => '--accent-foreground', 'type' => 'color', 'values' => [], 'showInCustomizer' => false, ], 'navbarLinkBorderRadius' => [ 'title' => __('Navbar Links Radius'), 'cssVar' => '--navbar-link-rounded', 'type' => 'range', 'value' => '12', 'showInCustomizer' => false, ], 'colorNavbarBackground' => [ 'title' => __('Background'), 'cssVar' => '--navbar-background', 'type' => 'color', 'values' => [], ], 'colorNavbarForeground' => [ 'title' => __('Foreground'), 'cssVar' => '--navbar-foreground', 'type' => 'color', 'values' => [], ], 'colorNavbarHoverBackground' => [ 'title' => __('Hover Background'), 'cssVar' => '--navbar-background-hover', 'type' => 'color', 'values' => [], 'showInCustomizer' => false, ], 'colorNavbarHoverForeground' => [ 'title' => __('Hover Foreground'), 'cssVar' => '--navbar-foreground-hover', 'type' => 'color', 'values' => [], 'showInCustomizer' => false, ], 'colorNavbarActiveBackground' => [ 'title' => __('Active Background'), 'cssVar' => '--navbar-background-active', 'type' => 'color', 'values' => [], 'showInCustomizer' => false, ], 'colorNavbarActiveForeground' => [ 'title' => __('Active Foreground'), 'cssVar' => '--navbar-foreground-active', 'type' => 'color', 'values' => [], ], 'fontHeading' => [ 'title' => __('Heading Font'), 'cssVar' => '--font-heading', 'type' => 'font', 'value' => '', ], 'fontBody' => [ 'title' => __('Body Font'), 'cssVar' => '--font-body', 'type' => 'font', 'value' => '', ], 'buttonBorderRadius' => [ 'title' => __('Buttons Border Radius'), 'cssVar' => '--button-rounded', 'type' => 'range', 'value' => '999px', ], 'colorButtonBorder' => [ 'title' => __('Border'), 'cssVar' => '--button-border', 'type' => 'color', 'values' => [], ], 'cardBorderRadius' => [ 'title' => __('Cards Border Radius'), 'cssVar' => '--card-rounded', 'type' => 'range', 'value' => '12px', ], 'cardShadow' => [ 'title' => __('Cards Shadow'), 'cssVar' => '--card-shadow', 'type' => 'cssValues', 'value' => '', 'values' => [ 'none' => [ 'label' => 'None', 'value' => 'none', ], 'xs' => [ 'label' => 'Extra Small', 'value' => '0 2px 1px var(--card-shadow-color, hsl(0 0% 0% / 5%))', ], 'sm' => [ 'label' => 'Small', 'value' => '0 1px 2px 0 var(--card-shadow-color, hsl(0 0% 0% / 5%))', ], 'md' => [ 'label' => 'Medium', 'value' => '0 4px 6px -1px var(--card-shadow-color, hsl(0 0% 0% / 5%)), 0 2px 4px -2px var(--card-shadow-color, hsl(0 0% 0% / 5%))', ], 'lg' => [ 'label' => 'Large', 'value' => '0 10px 15px -3px var(--card-shadow-color, hsl(0 0% 0% / 5%)), 0 4px 6px -4px var(--card-shadow-color, hsl(0 0% 0% / 5%))', ], 'xl' => [ 'label' => 'Extra Large', 'value' => '0 20px 25px -5px var(--card-shadow-color, hsl(0 0% 0% / 5%)), 0 8px 10px -6px var(--card-shadow-color, hsl(0 0% 0% / 5%))', ], '2xl' => [ 'label' => '2Extra Large', 'value' => '0 25px 50px -12px var(--card-shadow-color, hsl(0 0% 0% / 5%))', ], ], 'showInCustomizer' => false, ], 'colorCardBackground' => [ 'title' => __('Background'), 'cssVar' => '--card-background', 'type' => 'color', 'values' => [], ], 'colorCardBorder' => [ 'title' => __('Border'), 'cssVar' => '--card-border', 'type' => 'color', 'values' => [], ], 'inputBorderRadius' => [ 'title' => __('Inputs Border Radius'), 'cssVar' => '--input-rounded-multiplier', 'type' => 'range', 'value' => '1', ], 'colorInputForeground' => [ 'title' => __('Foreground'), 'cssVar' => '--input-foreground', 'type' => 'color', 'values' => [], ], 'colorInputBackground' => [ 'title' => __('Background'), 'cssVar' => '--input-background', 'type' => 'color', 'values' => [], ], 'colorInputBorder' => [ 'title' => __('Border'), 'cssVar' => '--input-border', 'type' => 'color', 'values' => [], ], ]; $active_theme = setting('dash_theme') ?? 'default'; $google_fonts = \App\Services\Common\FontsService::getGoogleFonts(); $google_fonts_list = []; foreach ($google_fonts['items'] ?? [] as $font) { $family = $font['family']; $lowercase_family = strtolower($family); if (!str_contains($lowercase_family, 'icon') && !str_contains($lowercase_family, 'material symbols')) { $google_fonts_list[] = $family; } } @endphp
@foreach ($customizerOptions as $key => $option) @continue($option['type'] !== 'color' || !($option['showInCustomizer'] ?? true) || strpos($key, 'colorMain') !== 0) @php $showInCustomizer = $option['showInCustomizer'] ?? true; $mainColorAssosiatedKeys = []; if ($key === 'colorMainPrimary') { $mainColorAssosiatedKeys = [ [ 'key' => 'colorMainPrimaryForeground', 'manipulations' => [ [ 'type' => 'autoBlackWhite', ], ], ], ]; } if ($key === 'colorMainSecondary') { $mainColorAssosiatedKeys = [ [ 'key' => 'colorMainSecondaryForeground', 'manipulations' => [ [ 'type' => 'autoBlackWhite', 'value' => '--secondary', ], ], ], ]; } if ($key === 'colorMainAccent') { $mainColorAssosiatedKeys = [ [ 'key' => 'colorMainAccentForeground', 'manipulations' => [ [ 'type' => 'autoBlackWhite', 'value' => '--accent', ], ], ], ]; } if ($key === 'colorMainForeground') { $mainColorAssosiatedKeys = [ [ 'key' => 'colorMainHeadingForeground', 'manipulations' => [ [ 'type' => 'darken', 'value' => 22, 'condition' => 'lightMode', ], [ 'type' => 'lighten', 'value' => 30, 'condition' => 'darkMode', ], [ 'type' => 'desaturate', 'value' => 7, 'condition' => 'lightMode', ], [ 'type' => 'desaturate', 'value' => 30, 'condition' => 'darkMode', ], ], ], ]; } @endphp @endforeach
@foreach ($customizerOptions as $key => $option) @continue($option['type'] !== 'font')

{{ $option['title'] }}

  • {{ __('No fonts found') }}
@endforeach
@if ($active_theme !== 'bolt' && $active_theme !== 'social-media' && $active_theme !== 'social-media-dashboard')
@endif

@foreach ($customizerOptions as $key => $option) @continue($option['type'] !== 'color' || !($option['showInCustomizer'] ?? true) || strpos($key, 'colorNavbar') !== 0) @php $navbarColorAssosiatedKeys = []; if ($key === 'colorNavbarActiveForeground') { $navbarColorAssosiatedKeys = [ [ 'key' => 'colorNavbarActiveBackground', ], [ 'key' => 'colorNavbarHoverForeground', ], [ 'key' => 'colorNavbarHoverBackground', ], ]; } @endphp @endforeach

{{ __('Buttons') }}


@foreach ($customizerOptions as $key => $option) @continue($option['type'] !== 'color' || !($option['showInCustomizer'] ?? true) || strpos($key, 'colorButton') !== 0) @endforeach

{{ __('Cards') }}

@foreach ($customizerOptions['cardShadow']['values'] as $key => $shadow) @endforeach

@foreach ($customizerOptions as $key => $option) @continue($option['type'] !== 'color' || !($option['showInCustomizer'] ?? true) || strpos($key, 'colorCard') !== 0) @endforeach

{{ __('Inputs') }}


@foreach ($customizerOptions as $key => $option) @continue($option['type'] !== 'color' || !($option['showInCustomizer'] ?? true) || strpos($key, 'colorInput') !== 0) @endforeach

{{ __('Start Customizing colors and other properties.') }}

@push('script') @endpush