Change font family to something other than IBM Plex #7828
-
Is it possible to use a different font family than IBM Plex? I know there are styles in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, @supermonkeybrainz! 👋 To customize the font families that are used, you can define the $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! |
Beta Was this translation helpful? Give feedback.
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 thesans
key to be defined but you can also pass in keys likemono
andserif
😄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!