External CSS and Fonts

Rendering images using external CSS and custom fonts.

The API supports including any CSS file or custom font. You can do this by including them in your HTML.

Be sure to use the full URL to the asset. We are unable to download relative URLs.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Primer/10.8.1/build.css" />

Multiple CSS files are supported, load in everything you need. Large files may slow down initial render time.

Google Fonts

If your custom font is available on Google Fonts, we recommend using our built in parameter for pre-loading them.