Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MageVortex
Helper I
Helper I

json script theme to make all fonts default to Segoe UI

Hello all,

I'm trying to get my .json script created theme to change all text to default to Segoe UI for titles and headers, etc, but then use DIN for Data labels, Legends, etc.  

I tried the following, but it fails to import. It broke after I put in the visualStyles

 

{"name": "NFv1",
"dataColors":["#44546A","#31B6FD","#4584D3","#F5C040","#54D028","#05E0DB", "#3153FD","#5BD078","#4C45D3","#5BD0B0", "#D0F540", "#057BE0" ],  
"background": "#FFFFFF",
"foreground": "#44546A",  
"tableAccent": "#44546A",  
"visualStyles":{"*":{"*":{"*":[{"fontSize":11,"fontFamily":"Segoe UI"}]}}},
"textClasses": {
      "callout": {
           "fontSize": 18,
           "fontFace": "DIN",
      },
      "title": {
           "fontSize": 14,
           "fontFace": "DIN",
      },
      "header": {
           "fontSize": 14,
           "fontFace": "Segoe UI",
      },
      "label": {
           "fontSize": 14,
           "fontFace": "Segoe UI",
      }
 }
}

 

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @MageVortex ,

 

It import failed because the JSON file contained extra commas. please try the following code.

 

{"name": "NFv1",
"dataColors":["#44546A","#31B6FD","#4584D3","#F5C040","#54D028","#05E0DB", "#3153FD","#5BD078","#4C45D3","#5BD0B0", "#D0F540", "#057BE0" ],  
"background": "#FFFFFF",
"foreground": "#44546A",  
"tableAccent": "#44546A",  
"visualStyles":{"*":{"*":{"*":[{"fontSize":11,"fontFamily":"Segoe UI"}]}}},
"textClasses": {
      "callout": {
           "fontSize": 18,
           "fontFace": "DIN"
      },
      "title": {
           "fontSize": 14,
           "fontFace": "DIN"
      },
      "header": {
           "fontSize": 14,
           "fontFace": "Segoe UI"
      },
      "label": {
           "fontSize": 14,
           "fontFace": "Segoe UI"
      }
 }
}


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
v-kkf-msft
Community Support
Community Support

Hi @MageVortex ,

 

It import failed because the JSON file contained extra commas. please try the following code.

 

{"name": "NFv1",
"dataColors":["#44546A","#31B6FD","#4584D3","#F5C040","#54D028","#05E0DB", "#3153FD","#5BD078","#4C45D3","#5BD0B0", "#D0F540", "#057BE0" ],  
"background": "#FFFFFF",
"foreground": "#44546A",  
"tableAccent": "#44546A",  
"visualStyles":{"*":{"*":{"*":[{"fontSize":11,"fontFamily":"Segoe UI"}]}}},
"textClasses": {
      "callout": {
           "fontSize": 18,
           "fontFace": "DIN"
      },
      "title": {
           "fontSize": 14,
           "fontFace": "DIN"
      },
      "header": {
           "fontSize": 14,
           "fontFace": "Segoe UI"
      },
      "label": {
           "fontSize": 14,
           "fontFace": "Segoe UI"
      }
 }
}


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.