naive-ui/demo/documentation/intro/experimental-features/enUS/index.md
2020-12-12 14:44:44 +08:00

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)