What is the default font in a modern SP Online document library?

matt howell 351 Reputation points
2021-12-07T18:22:53.867+00:00

Formatting a column breaks the font style inheritance so for consistency I need to know exactly what font is used to replicate it. An inspection gives me this which doesn't look anything like the font style of other unformatted columns:
"font-family": "Segoe UI Segoe UI Web wf_segoe-ui_normal Helvetica Neue BBAlpha Sans S60 Sans Arial sans-serif"

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,801 Reputation points
    2021-12-08T06:54:07.41+00:00

    Hi @matt howell ,

    Segoe UI is the default font of SharePoint online.

    As you can see it in my end:
    155881-8.png

    =============
    Update1===============

    {  
       "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",  
       "elmType": "a",  
       "txtContent": "@currentField",  
       "attributes": {  
          "target": "_blank"  
       },  
       "style": {  
         "font-family": "Segoe UI"  
       }  
    }  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.