SOLVED

Change fonts on a document library view SharePoint 2019

Copper Contributor

We have a customer who has a requirement where they need to change the default text font colour for the columns in a document library, by default they are a light grey colour but the requirement is to change them to black. The current documentation suggests this can only be done with classic - 

Use CSS to brand SharePoint pages | Microsoft Learn 

 

What if any options are available to change the font colour in SharePoint 2019 on prem. 

 

IainLBetasoft_0-1664448822821.png

 

4 Replies
best response confirmed by IainL-Betasoft (Copper Contributor)
Ahh yeah, didn't realise this feature had made it to SharePoint 2019. Thanks

@IainL-Betasoft Use "view formatting" instead of "column formatting". Using view formatting you can change font color of multiple columns at a time instead of adding same JSON in all columns. It will also help in case new columns will be created in list in future.

 

You can use simple JSON like below:

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
  "additionalRowClass": "ms-fontColor-black"
}

 

Documentationview-list-formatting  


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@IainL-Betasoft Kindly ignore my above response as view formatting is currently supported only in SharePoint Online and not supported in SP 2019.

 

But, if anyone is trying to do same in future in SP online, view formatting is better option for this.

 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

1 best response

Accepted Solutions