cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cdknuth Frequent Visitor
Frequent Visitor

theme json file example

Does anyone have a working json file that updates the font and font size? The defaults are horrific. I've tried the theme generator and example from curbal but neither actually work.

6 REPLIES 6
Community Support Team
Community Support Team

Re: theme json file example

Hi @cdknuth,

 

Maybe you can refer to following link which told about custom theme elements.

Custom Report Theme JSON Property settings in Tables/Matrix

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
cdknuth Frequent Visitor
Frequent Visitor

Re: theme json file example

Thanks, Xiaoxin. I've tried these formats and neither work.

 


   "name":"Jan 2018 Theme",
   "dataColors":
 [ 
        "#0069aa",
        "#4f8dc2",
        "#9ab7da",
        "#cedaec",
        "#00c762",
        "#fbe7a6",
        "#ff544a",
        "#f89a1c",
        "#545451"
 ],
     "background":"#FFFFFF",
     "foreground":"#545451",
     "tableAccent":"#4f8dc2",

     "visualStyles":{ 
          "*":{ 
             "*": { 
                 "*": {[ "fontFamily":"Segoe UI"]}
          }
        }
                 }  
}

 

 


   "name":"Jan 2018 Theme",
   "dataColors":
 [ 
        "#0069aa",
        "#4f8dc2",
        "#9ab7da",
        "#cedaec",
        "#00c762",
        "#fbe7a6",
        "#ff544a",
        "#f89a1c",
        "#545451"
 ],
     "background":"#FFFFFF",
     "foreground":"#545451",
     "tableAccent":"#4f8dc2",

     "visualStyles":{ 
          "*":{ 
             "*": { 
                 "*": [{ "fontFamily":"Segoe UI"}]
          }
        }
                 }  
}
    

 

 

Community Support Team
Community Support Team

Re: theme json file example

HI @cdknuth,

 

You can try to use below json formula and replace bold part with a valid font name.

{
    "name":"Jan 2018 Theme",
    "dataColors":[
        "#0069aa",
        "#4f8dc2",
        "#9ab7da",
        "#cedaec",
        "#00c762",
        "#fbe7a6",
        "#ff544a",
        "#f89a1c",
        "#545451"
    ],
    "background":"#FFFFFF",
    "foreground":"#545451",
    "tableAccent":"#4f8dc2",
    "visualStyles":{
        "*":{
            "*":{
                "*":[
                    {
                        "fontFamily":"Segoe UI"
                    }
                ]
            }
        }
    }
}

 3.PNG


Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
cdknuth Frequent Visitor
Frequent Visitor

Re: theme json file example

Thanks for the attempt, but this still doesn't work for me. Perhaps I need a newer version.

Community Support Team
Community Support Team

Re: theme json file example

HI @cdknuth,


Maybe you can try to use below json file, I package code and confirm it works on my side.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
cdknuth Frequent Visitor
Frequent Visitor

Re: theme json file example

Nope. Still doesn't work for me.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 221 members 2,780 guests
Please welcome our newest community members: