mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
21 lines
343 B
Markdown
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()
|
|
}
|
|
}
|
|
})
|
|
```
|