Docz: Use webfonts in doczrc

Created on 10 Sep 2018  路  2Comments  路  Source: doczjs/docz

I'm trying to use a webfont for the docz instance we have but not able to find any documentation as how to achieve this. Is it supported? if so, any documentation you can point me to? if not, would that be a feature request?

Thanks! 馃憤

Most helpful comment

For sure @ahgharian, you can add some tags on <head> by adding a htmlContext property on your doczrc.js, like that:

// doczrc.js
export default {
  htmlContext: {
    head: {
      links: [{
        rel: 'stylesheet',
        href: 'https://fonts.googleapis.com/css?family=Roboto'
      }]
    }
  },
}

Then you're able to use your font however your want :v:

All 2 comments

For sure @ahgharian, you can add some tags on <head> by adding a htmlContext property on your doczrc.js, like that:

// doczrc.js
export default {
  htmlContext: {
    head: {
      links: [{
        rel: 'stylesheet',
        href: 'https://fonts.googleapis.com/css?family=Roboto'
      }]
    }
  },
}

Then you're able to use your font however your want :v:

oh, awesome. I was missing it then. Appreciate the help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kachkaev picture kachkaev  路  3Comments

albinekb picture albinekb  路  3Comments

regrettably picture regrettably  路  3Comments

bichotll picture bichotll  路  3Comments

YardWill picture YardWill  路  3Comments