naive-ui/demo/pages/docs/theme/enUS/use-theme-vars.demo.md

343 B

useThemeVars

Naive UI provide 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()
    }
  }
})