mirror of
https://github.com/kunkunsh/kunkun-ext-jwt.git
synced 2025-04-02 01:46:43 +00:00
21 lines
425 B
Svelte
21 lines
425 B
Svelte
<script lang="ts">
|
|
import { ThemeCustomizerButton, type ThemeConfig, updateTheme } from '@kksh/svelte';
|
|
import { ui } from '@kksh/api/ui/iframe';
|
|
import { onMount } from 'svelte';
|
|
|
|
let config: ThemeConfig = {
|
|
radius: 0.5,
|
|
theme: 'zinc',
|
|
lightMode: 'auto'
|
|
};
|
|
onMount(() => {
|
|
ui.getTheme().then((theme) => {
|
|
config = theme;
|
|
});
|
|
});
|
|
|
|
$: updateTheme(config);
|
|
</script>
|
|
|
|
<ThemeCustomizerButton bind:config />
|