Skip to content

Change font family to something other than IBM Plex #7828

Closed Answered by joshblack
supermonkeybrainz asked this question in Help
Discussion options

You must be logged in to vote

Hi there, @supermonkeybrainz! 👋

To customize the font families that are used, you can define the $carbon--font-families variable before importing the styles for Carbon. By default, we expect at least the sans key to be defined but you can also pass in keys like mono and serif 😄

$carbon--font-families: (
  sans: Helvetica,
);

@import 'path-to-carbon';

Here's a quick CodeSandbox link that does this technique along with the CSS Reset to use Helvetica on the page: https://codesandbox.io/s/custom-font-family-w68xc?file=/src/styles.scss

Hope this helps!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by supermonkeybrainz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7817 on February 17, 2021 17:28.