type UIColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral' interface UIConfigMap { contentToc: { highlight?: boolean highlightColor?: UIColor highlightVariant?: 'straight' | 'circuit' color?: UIColor } contentNavigation: { highlight?: boolean highlightColor?: UIColor variant?: 'pill' | 'link' color?: UIColor } navigationMenu: { highlight?: boolean highlightColor?: UIColor variant?: 'pill' | 'link' color?: UIColor } } export function useUIConfig(componentName: K): ComputedRef { const appConfig = useAppConfig() return computed(() => { const ui = appConfig.ui as Record return (ui?.[componentName]?.defaultVariants || {}) as UIConfigMap[K] }) }