chore(utils): types (#321)

This commit is contained in:
Alex Liu
2023-06-20 16:52:24 +08:00
committed by Benjamin Canac
parent 9cd73aa49d
commit e1548062c7
3 changed files with 5 additions and 5 deletions

View File

@@ -7,8 +7,8 @@ export default defineNuxtPlugin({
const appConfig = useAppConfig()
const root = computed(() => {
const primary = colors[appConfig.ui.primary]
const gray = colors[appConfig.ui.gray]
const primary: Record<string, string> | undefined = colors[appConfig.ui.primary]
const gray: Record<string, string> | undefined = colors[appConfig.ui.gray]
return `:root {
${Object.entries(primary || colors.green).map(([key, value]) => `--color-primary-${key}: ${hexToRgb(value)};`).join('\n')}