How to use the docz.theme function in docz

To help you get started, we’ve selected a few docz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zicodeng / docz-theme-ztopia / src / theme.tsx View on Github external
primaryDark: '#0046a3', // link (hovered)
    secondary: '#62ddbd', // props table shape type, brand background, <hr>, search result
    highlight: '#ec5564', // matched search query
    error: 'rgba(200,0,0,0.8)', // preview error background
  },
  fonts: {
    body: 'Lato, sans-serif',
    title: 'Oswald, sans-serif',
  },
  logo: {
    src: null,
    width: 40,
  },
};

export default theme(defaultThemeConfig)(Theme);
github doczjs / docz-website / src / theme / index.tsx View on Github external
const Theme: React.SFC = ({ children }) =&gt; {
  const config = useConfig()
  return (
    
      
        <main>
          
          {children}
        </main>
      
    
  )
}

export default theme(config)(Theme)
github doczjs / docz / core / gatsby-theme-docz / src / index.js View on Github external
import defaultTheme from '~theme'
import components from '~components'

const Theme = ({ children }) =&gt; {
  const config = useConfig()
  return (
    
      
        {children}
      
    
  )
}

export default theme(defaultTheme)(Theme)
github cdonohue / benefit / packages / benefit-docs-old / theme / index.js View on Github external
const Theme = ({ children }) =&gt; (
  
    {children}
  
)

const themeConfig = {
  colors: {
    primary: "tomato",
    secondary: "khaki",
    gray: "lightslategray",
  },
}

export default theme(themeConfig)(Theme)
github michelson / dante2 / src / docs / theme.js View on Github external
)}
              
            
          
}

const themeConfig = {
  colors: {
    primary: 'danty',
    secondary: 'khaki',
    gray: 'lightslategray',
  },
}

export default theme(themeConfig)(Theme)
github shine-design / shine-design / offical / theme / index.js View on Github external
import {theme} from 'docz';
import './plugins';
import RouterConfig from "./config/router";
import themeConfig from '../theme.config';
import './styles/init.less';

const Theme = () => RouterConfig;

export default theme(themeConfig)(Theme)

docz

It's has never been so easy to documents your things!

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis