aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/style/fonts.ts
blob: f305fd6125d8c1b8d047e6c5a4415d863fa3f8f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
export const fonts = {
    include: () => {
        // Inject the inter-ui font into the page
        const head = document.head || document.getElementsByTagName('head')[0];
        const style = document.createElement('style');
        style.type = 'text/css';
        style.appendChild(document.createTextNode(`@import url('https://rsms.me/inter/inter-ui.css')`));
        head.appendChild(style);
    },
};