Forum Discussion

marijane's avatar
marijane
Helper I
5 years ago

Create power bi table theme with json: table header, style, total

Hi everyone,

 

Hope you doing well. I want to create a theme that when a user creates a table it looks like the image. Is this possible?
Thank you in advance!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    marijane 

    With customizing theme, you can change the text color, but for background you can only change the field name the cell background together. 

     

    I would recommend to just let users change the colors separately in the format panel. 

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.

  • If you change the json file I think it is possible. I create a file but unfortunately does not work. I just want to know what I am doing wrong in the pivot table section.

    {
    "name": "Customize Palette",
    "dataColors": ["#00a5ff", "#d11a6f", "#ffd400", "#3c763d", "#a94442", "#666666", "#000080", "#000000", "#3599B8", "#DFBFBF", "#4AC5BB", "#5F6B6D", "#FB8281", "#F4D25A", "#7F898A", "#A4DDEE", "#FDAB89", "#B687AC", "#28738A", "#A78F8F", "#168980", "#293537", "#BB4A4A", "#B59525", "#475052", "#6A9FB0", "#BD7150", "#7B4F71", "#1B4D5C", "#706060", "#0F5C55", "#1C2325"],
    "background": "#FFFFFF",
    "foreground": "#d11a6f",
    "tableAccent": "#3688FF",
    "textClasses": {
    "callout": {
    "fontSize": 25,
    "fontFace": "DIN",
    "color": "#d11a6f"
    },
    "title": {
    "fontSize": 18,
    "fontFace": "DIN",
    "color": "#00a5ff"
    },
    "header": {
    "fontSize": 14,
    "fontFace": "Segoe UI Semibold",
    "color": "#00a5ff"
    },
    "label": {
    "fontSize": 10,
    "fontFace": "Segoe UI",
    "color": "#666666"
    }
    },
    "pivotTable": {
    "*": {
    "stylePreset": [
    {
    "name": "Boldheader"
    }
    ]
    }
    }
    }