Using Custom Fonts

If you have a custom font with Google Fonts or Adobe Typekit, you can use them by adding them via the Appcues Styles page. Here's how:

Google Fonts

Step 1

Navigate to the Google Fonts page and select the fonts you wish to include in your Appcues theme. You can add any number of fonts by pressing the plus button, and they will appear in a drop-down at the bottom of the screen with the label 'Family/Families Selected'.

Step 2

 Open up the 'Family/Families Selected' drop-down and copy the URL provided.

Step 3

On the styling page, open up the Font Manager window by clicking 'Set up Google Fonts or Typekit'. Underneath the label 'Google font import URL' you will see an input field. Paste your copied URL here and press the 'Add font(s)' button. 

Step 4

You will see a preview of the fonts that will appear in the 'Title' and 'Body' drop-down menus. If these look correct, click 'Save custom font(s)'.

Step 5

In the 'Title font' and 'Body font' drop-down menus, you will now be able to select the fonts you have added via Google Fonts. (Note: If you save a theme without selecting one of the google fonts from either drop-down menu, the google font will be removed from you styles altogether to improve performance and load time).

Adobe Typekit

Step 1

You can view your published kits on the  Typekit dashboard. The only thing Appcues needs to utilize your published Typekit is the Kit ID.

 In order to use Typekit with Appcues, you will need to ensure that the kit is published and approved on all domains you wish to build Appcues flows on (as well as  my.appcues.com if you wish to be able to preview the imported fonts on the styling page). You can add these values by clicking on the 'Kit editor' option for the kit you wish to include in Appcues.

Include all domains you want to build Appcues content on, as well as my.appcues.com to ensure that your styling page will accurately affect the look of your Appcues content

Step 2

Once you have your kit properly configured, open up the Font Manager window by clicking 'Set up Google Fonts or Typekit' on the styling page. You can enter your Kit ID in the 'Typekit ID' field and click 'Save custom font(s)'

Step 3

Now you can assign the included font-families to Appcues content using our CSS editor. If you have included my.appcues.com in your kit's list of domains, you will be able to instantly preview this font on the styling page. 

Custom CSS

The CSS editor is a valuable resource to import fonts from self-hosted or third-party sources or apply fonts to particular items in your Appcues flows. This section will guide you through the process of importing and applying a custom font.

Step 1

Bring up the CSS Editor tab on the themes page

Step 2

Create an `import` declaration in your custom CSS linking to the font of your choice. For instance, if you wanted to import a font from a self-hosted S3 bucket you could do so like this.

@import url(https://s3-us-west-2.amazonaws.com/appcues-custom-fonts/raleway.css);

Alternatively, you could import a font file directly by using @font-face.

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  src: local('Raleway Black'), local('Raleway-Black'), url(https://s3-us-west-2.amazonaws.com/appcues-custom-fonts/Raleway-Black.ttf) format('ttf');
}

Step 3

Specify the elements you want to apply your new font-face to by specifying the name you gave the font-face ('Raleway' above) as the font-family for the elements in your custom CSS. You can apply the font to just your header elements like so. You should be able to see your font being used in the 'Interactive Preview' section.

If we wanted to apply the font to all elements in your Appcues flows, you could do so using the * selector.

@import url(https://s3-us-west-2.amazonaws.com/appcues-custom-fonts/raleway.css);

* {
    font-family: 'Raleway', futura, sans-serif;
}

Still need help? Contact Us Contact Us