aboutsummaryrefslogblamecommitdiffstats
path: root/packages/instant/src/style/fonts.ts
blob: 92450502d2dcd525ce484b6d49ecf09d1916b4df (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                 
                                                                                                    


                                                                                                        
                                    

      
export const fonts = {
    include: () => {
        // Inject the inter-ui font into the page
        const appendTo = document.head || document.getElementsByTagName('head')[0] || document.body;
        const style = document.createElement('style');
        style.type = 'text/css';
        style.appendChild(document.createTextNode(`@import url('https://rsms.me/inter/inter-ui.css')`));
        appendTo.appendChild(style);
    },
};