hasDarkModeForced() && $darkMode() == 'media') skin: (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'oxide-dark' : 'oxide'),
content_css: (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'default'),
@elseif(!filament()->hasDarkModeForced() && $darkMode() == 'class')
skin: (document.querySelector('html').getAttribute('class').includes('dark') ? 'oxide-dark' : 'oxide'),
content_css: (document.querySelector('html').getAttribute('class').includes('dark') ? 'dark' : 'default'),
@elseif(filament()->hasDarkModeForced() || $darkMode() == 'force')
skin: 'oxide-dark',
content_css: 'dark',
@elseif(!filament()->hasDarkModeForced() && $darkMode() == false)
skin: 'oxide',
content_css: 'default',
@elseif(!filament()->hasDarkModeForced() && $darkMode() == 'custom')
skin: '{{ $skinsUI() }}',
content_css: '{{ $skinsContent() }}',
@else
skin: ((localStorage.getItem('theme') ?? 'system') == 'dark' || (localStorage.getItem('theme') === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)) ? 'oxide-dark' : 'oxide',
content_css: ((localStorage.getItem('theme') ?? 'system') == 'dark' || (localStorage.getItem('theme') === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)) ? 'dark' : 'default',
@endif
toolbar_sticky: {{ $getToolbarSticky() ? 'true' : 'false' }},
toolbar_sticky_offset: {{ $getToolbarStickyOffset() }},
toolbar_mode: '{{ $getToolbarMode() }}',
toolbar_location: '{{ $getToolbarLocation() }}',
inline: {{ $getInlineOption() ? 'true' : 'false' }},
toolbar_persist: {{ $getToolbarPersist() ? 'true' : 'false' }},
menubar: {{ $getShowMenuBar() ? 'true' : 'false' }},
relative_urls: {{ $getRelativeUrls() ? 'true' : 'false' }},
remove_script_host: {{ $getRemoveScriptHost() ? 'true' : 'false' }},
convert_urls: {{ $getConvertUrls() ? 'true' : 'false' }},
font_size_formats: '{{ $getFontSizes() }}',
fontfamily: '{{ $getFontFamilies() }}',
setup: null,
disabled: @js($isDisabled),
locale: '{{ app()->getLocale() }}',
placeholder: @js($getPlaceholder()),
image_list: {!! $getImageList() !!},
@if ($getImagesUploadUrl !== false)
images_upload_url: @js($getImagesUploadUrl()),
@endif
image_advtab: @js($imageAdvtab()),
image_description: @js($getImageDescription()),
image_class_list: @js($getImageClassList()),
license_key: '{{ $getLicenseKey() }}',
custom_configs: {{ $getCustomConfigs() }}
})">
@if ($isDisabled())
$getPreviewMaxHeight() > 0, 'min-height: ' . $getPreviewMinHeight() . 'px' => $getPreviewMinHeight() > 0])
class="block w-full p-3 overflow-y-auto prose transition duration-75 bg-white border border-gray-300 rounded-lg shadow-sm max-w-none opacity-70 dark:prose-invert dark:border-gray-600 dark:bg-gray-700 dark:text-white">
@else
@endif