Replace SITE_CONFIG, UI_CONFIG, METADATA_CONFIG... to SITE, UI, METADATA...
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
---
|
||||
import { UI_CONFIG } from '~/utils/config';
|
||||
import { UI } from '~/utils/config';
|
||||
---
|
||||
|
||||
<script is:inline define:vars={{ defaultTheme: UI_CONFIG.theme }}>
|
||||
<script is:inline define:vars={{ defaultTheme: UI.theme }}>
|
||||
function applyTheme(theme) {
|
||||
if (theme === 'dark') {
|
||||
document.documentElement.classList.add('dark');
|
||||
|
Reference in New Issue
Block a user