Skip to content

Commit

Permalink
feat: build improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Deisling committed Nov 19, 2024
1 parent 022a34a commit dca119e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/composables/useColorScheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export function useColorScheme() {
const isDark = computed(() => colorScheme.value === 'dark');

function setColorScheme(colorSchemeId: ColorScheme) {
mode.value = colorSchemeId;
if (colorSchemeId === 'dark' || colorSchemeId === 'light') {
mode.value = colorSchemeId;
}
}

return {
Expand Down

0 comments on commit dca119e

Please sign in to comment.