fix(stage-ui): checkbox

This commit is contained in:
Neko Ayaka
2025-03-17 23:13:57 +08:00
parent e8b413111f
commit 79d0afa7de
2 changed files with 2 additions and 1 deletions
@@ -11,7 +11,7 @@ const modelValue = defineModel<boolean>({ required: true })
outline="focus-within:none"
flex="~"
border="neutral-300 dark:neutral-700 data-[state=checked]:primary-200 data-[state=unchecked]:neutral-300 focus-within:neutral-800"
bg="data-[state=checked]:primary-400 data-[state=unchecked]:neutral-300 dark:data-[state=checked]:primary-700 dark:data-[state=unchecked]:neutral-800"
bg="data-[state=checked]:primary-400 data-[state=unchecked]:neutral-300 data-[state=checked]:dark:primary-400/80 dark:data-[state=unchecked]:neutral-800"
relative h-7 w="12.5" rounded-full
shadow="sm focus-within:shadow-neutral-800 focus-within:[0_0_0_1px] "
>
@@ -13,6 +13,7 @@ onMounted(() => {
const hue = document.documentElement.style.getPropertyValue('--theme-colors-hue')
const hueF = Number.parseFloat(hue)
themeColorsHue.value = hueF >= 0 && hueF <= 360 ? hueF : DEFAULT_THEME_COLORS_HUE
document.documentElement.style.setProperty('--theme-colors-hue', themeColorsHue.value.toString())
})
watch(themeColorsHue, () => {