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

21 lines
343 B
Markdown

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