Skip to content

Commit

Permalink
docs(design-tokens): adding a comment about font-family
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Jan 9, 2025
1 parent 5073191 commit ee1fb9a
Showing 1 changed file with 13 additions and 0 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

0 comments on commit ee1fb9a

Please sign in to comment.