mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
693 B
693 B
Experimental Features
The following features are unstable. Use them if you really need and perpare to follow the API changes.Customize Theme
// ...
import naive from 'naive-ui'
naive.styles.light.override({
derived: {
primaryColor: 'rgb(255, 0, 0)',
primaryHoverColor: 'rgb(0, 255, 0)',
primaryActiveColor: 'rgb(0, 0, 255)'
}
})
Vue.use(naive)
For specific variables, please see source code.
Use Tusimple Theme
// ...
import tusimpleTheme from 'naive-ui/themes/tusimple'
import naive from 'naive-ui'
naive.use(tusimpleTheme)
Vue.use(naive)