chore: update theme

This commit is contained in:
vben
2024-07-28 17:01:19 +08:00
parent 376fd17a61
commit 5590cc8fa1
15 changed files with 124 additions and 44 deletions

View File

@@ -2,6 +2,7 @@
import { computed } from 'vue';
import { GlobalProvider } from '@vben/common-ui';
import { useDesignTokens } from '@vben/hooks';
import { preferences, usePreferences } from '@vben/preferences';
import { App, ConfigProvider, theme } from 'ant-design-vue';
@@ -11,6 +12,7 @@ import { antdLocale } from '#/locales';
defineOptions({ name: 'App' });
const { isDark } = usePreferences();
const { antDesignTokens } = useDesignTokens();
const tokenTheme = computed(() => {
const algorithm = isDark.value
@@ -24,7 +26,7 @@ const tokenTheme = computed(() => {
return {
algorithm,
token: { colorPrimary: preferences.theme.colorPrimary },
token: antDesignTokens.value,
};
});
</script>

View File

@@ -3,8 +3,5 @@ import { Fallback } from '@vben/common-ui';
</script>
<template>
<div>
<Fallback status="coming-soon" />
<input />
</div>
<Fallback status="coming-soon" />
</template>

View File

@@ -3,8 +3,5 @@ import { Fallback } from '@vben/common-ui';
</script>
<template>
<div>
<Fallback status="coming-soon" />
<input />
</div>
<Fallback status="coming-soon" />
</template>

View File

@@ -3,8 +3,5 @@ import { Fallback } from '@vben/common-ui';
</script>
<template>
<div>
<Fallback status="coming-soon" />
<input />
</div>
<Fallback status="coming-soon" />
</template>

View File

@@ -3,8 +3,5 @@ import { Fallback } from '@vben/common-ui';
</script>
<template>
<div>
<Fallback status="coming-soon" />
<input />
</div>
<Fallback status="coming-soon" />
</template>