© 2026 Hedgehog Software, LLC
useThemeConfig
themeConfig
export function useThemeConfig() { const themeConfig: ThemeConfig = reactive({ themeLight: { "--primary-color": "#1a73e4", ... }, ... return { themeConfig, ... };
themeLight['--primary-color']
<script setup lang="ts"> const { themeConfig } = useThemeConfig(); ... themeConfig.themeLight["--primary-color"] = "#ff0000"; </script> <template> <!-- Correctly shows #ff0000 --> <div>{{themeConfig.themeLight["--primary-color"]}}</div> </template>