程序员专属,记录笔记、文档、知识库的专属伙伴!——docz( 四 )

默认主题配置

import React from 'react'

import { theme } from 'docz'

const Theme = ({ children }) => {children}

const themeConfig = {

colors: {

primary: 'tomato',

secondary: 'khaki',

gray: 'lightslategray',

},

}

export default theme(themeConfig)(Theme)

作者提供了非常详细的文档和完整的示例,感兴趣的可以尝试一下

程序员专属,记录笔记、文档、知识库的专属伙伴!——docz

插件

docz提供了非常强大的插件机制,而且已经本身存在如下几个强大的插件

推荐阅读