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

albinekb picture albinekb  路  3Comments

ilyanoskov picture ilyanoskov  路  3Comments

nicholasess picture nicholasess  路  3Comments

capaj picture capaj  路  3Comments

w0wka91 picture w0wka91  路  3Comments