Skip to content

How to use custom fonts with Evergreen v5 #1163

Answered by harshhpaatel
Lasvad asked this question in Q&A
Discussion options

You must be logged in to vote

Try something like this, it worked for me

import { ThemeProvider, defaultTheme } from 'evergreen-ui';
import { merge } from 'lodash';

const myTheme = merge({}, defaultTheme, {
    fontFamilies: {
        display: '"Euclid Circular B", "SF UI Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
        ui: '"Euclid Circular B", "SF UI Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
        mono: '"SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monosp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandongregoryscott
Comment options

Answer selected by brandongregoryscott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants