{{ $this->form }}
Simpan Tema {{-- Hidden button for reset (triggered by JS) --}}
{{-- Preview CSS variables saat ini --}}
Preview Tema Aktif
@php $lightCss = \App\Models\Setting::getValue('theme_light', ''); preg_match_all('/--[\w-]+\s*:\s*([^;]+);/', $lightCss, $m, PREG_SET_ORDER); $pairs = []; foreach ($m as $match) { preg_match('/(--[\w-]+)/', $match[0], $km); if (isset($km[1])) $pairs[$km[1]] = trim($match[1]); } @endphp @foreach($pairs as $var => $val) @if(str_starts_with(trim($val), '#') || str_starts_with(trim($val), 'rgb'))
{{ $var }}
@endif @endforeach