Emotion: How to use obj style with @font-face

Created on 11 Jun 2019  路  1Comment  路  Source: emotion-js/emotion

I'm trying to do this:

<Global
  styles={{
    '@font-face': {
      fontFamily: 'Iosevka',
      src: 'url(woff2/iosevka-thinitalic.woff2) format(woff2)',
    },
  }}
/>

Description:

I can't figure out if the src part needs to be a string like above, or 'url(\'fonts..\') format(\'..\') or something else?

Documentation links:

documentation needs triage

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings