Skip to content

Commit

Permalink
fix(design-tokens): fixed font family (#921)
Browse files Browse the repository at this point in the history
* fix(design-tokens): fixed font family

* docs(design-tokens): adding a comment about font-family
  • Loading branch information
masoudmanson authored Jan 9, 2025
1 parent f091e79 commit 551de94
Show file tree
Hide file tree
Showing 5 changed files with 522 additions and 258 deletions.
13 changes: 13 additions & 0 deletions packages/components/src/common/styles-dictionary/config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* Font-family explanation:
The following font stack is designed to provide compatibility across multiple operating systems:
- var(--font-inter): Custom Inter font defined by Next.js.
- Inter: Standard Inter font fallback.
- -apple-system, BlinkMacSystemFont: macOS-specific system fonts.
- Segoe UI: Default system font for Windows.
- Roboto: Default system font for most Linux distributions.
- Helvetica Neue, Helvetica, Arial, sans-serif: General fallbacks to ensure compatibility.
Reference:
An article explaining how platforms like GitHub and Medium use similar fallback font stacks.
Link: https://css-tricks.com/snippets/css/system-font-stack/
*/

const config = {
platforms: {
css: {
Expand Down
Loading

0 comments on commit 551de94

Please sign in to comment.