How to use the @primer/components.theme.fonts function in @primer/components

To help you get started, we’ve selected a few @primer/components 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 primer / presentations / pages / _app.js View on Github external
render() {
    // strip the trailing slash
    const pathname = this.props.router.pathname.replace(/\/$/, '')
    const {Component, initialProps} = this.props

    const page = pageMap.get(pathname) || {}
    const {meta = {}, requirePath} = page
    const Hero = requirePath ? requirePage(requirePath).Hero : null

    return (
      
        
          
            <title>Primer Presentation{meta.title ? ` / ${meta.title}` : null}</title>
          
          <header title="Primer">
            
          </header>