Can we customize the Button colors ,Font Color & Font Family for our sharePoint online modern UI

john john 1,021 Reputation points
2021-10-25T10:30:11.677+00:00

We have the following default modern UI:-

143319-current.png

Where we are trying to get the below UI, which have the following main changes; Button color is different,Button shape is bigger and have rounded edges, Text (including Grid headers, Grid data & Control/Menu text) Font Family is different & Text Font size/color is different , as follow:-

143320-new.png

so is this something we can achieve in SharePoint online modern UI? and how?

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

1 answer

Sort by: Most helpful
  1. Yi Lu_MSFT 17,616 Reputation points
    2021-10-28T02:32:57.977+00:00

    Hi @john john
    You could format the column to change the font family, font size and font color with this code( column settings> format this column) :

     {  
       "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",  
     "elmType": "div",  
     "txtContent": "@currentField",  
     "attributes":{  
     "class":"sp-field-customFormatter"  
     },  
     "style": {  
     "font-size": "2.0em",  
     "color": "red",  
     "font-family":"cursive"  
     }  
     }  
    

    As to the color of the buttons, you may go to site settings> change the look, where you could change the style of the site:

    144392-image.png


    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.