344 B
344 B
useThemeVars
Naive UI provides useThemeVars
. It contains common theme variables.
<pre style="overflow: auto;">{{ themeVars }}</pre>
import { defineComponent } from 'vue'
import { useThemeVars } from 'naive-ui'
export default defineComponent({
setup () {
return {
themeVars: useThemeVars()
}
}
})