Copy link to headline:Font families
Our design system utilizes only two different font families to avoid "font fatigue": One sans-serif and a monospace font family. We achieve contrast through strategic variations in font weight and size rather than mixing multiple font families.
By default, the following Open Source and free typefaces are used, specifically optimized for legibility on digital displays:
- Default: Source Sans 3default
Clear, modern and approachable. Check it out on Google Fonts(opens in a new tab).
- Monospace: Source Code Pro
Precise and rhythmic. Designed for data-heavy environments and code blocks. Check it out on Google Fonts(opens in a new tab).
To support the diverse identities, brands and themes, we utilize a flexible variable architecture so e.g. font families can easily be customized. See the custom font families section below for further information.
Protected content
There is more content available here for internal employees of the Schwarz Group.
Copy link to headline:Usage
Instead of defining arbitrary pixel values, we follow a semantic logic by defining roles that describe the functional intent of the text. Find an overview of available text styles below. Whenever possible, we strongly recommend to use one of our components to apply headlines, links and other texts.
- Headlines
Use our OnyxHeadline(opens in a new tab) component for applying headlines.
The headline styles
h5andh6are only supported for technical semantic reasons but are not part of our design system. Therefore, they are styled the same ash4.Hello World
- Levelh1
Hello World
- Levelh2
Hello World
- Levelh3
Hello World
- Levelh4
Hello World
- Levelh5
Hello World
- Levelh6
- Level
- Links
- Paragraphs
Use regular text for applying paragraphs and apply the corresponding Figma style / CSS class if needed.
Hello World
- Sizesmall
- Figma styleBody/paragraph-small
- CSS classonyx-text--small
Hello World
- Sizedefault
- Figma styleBody/paragraph-default
- CSS classnone (default)
Hello World
- Sizelarge
- Figma styleBody/paragraph-large
- CSS classonyx-text--large
- Size
- Font families
Font families can be applied to any component using the corresponding Figma style / CSS class.
Hello World
- Font familydefault
- Figma stylesee "Paragraphs" above
- CSS classsee "Paragraphs" above
Hello World
- Font familymonospace
- Figma styleMono/mono-default
- CSS classonyx-text--monospace
- Font family
- Truncation
Truncation defines how text should be handled if it is too long to fit inside its parent container. While "multiline" is technically the default, we still provide a custom CSS class for optimizing edge cases and hyphenation.
Hello World
- Truncationellipsis
- CSS classonyx-truncation-ellipsis
Hello World Hello World Hello World Hello World Hello World Hello World
- Truncationmultiline
- CSS classonyx-truncation-multiline
- Truncation
Copy link to headline:Installation
We do not bundle / include any font families in our design system itself to support better build-time asset optimizations and to maintain a smaller bundle size. Therefore, it is mandatory that you manually install your desired font families. Otherwise the application will fallback to browser default font families.
- Install font families
We recommend installing the fonts using Fontsource(opens in a new tab):
- Add imports
Finally, add imports for the font families so they are ready to be used by your application:
Copy link to headline:Custom font families
To use custom font families instead of our recommended ones, follow the steps below:
- Install custom font families
Follow the same installation instructions above to install your custom font families.
- Override default font families
When installed, override our default font families with your custom ones to apply them throughout the whole design system. Make sure to replace the "Font family name" with the exact name of your sans-serif and monospace font.