List formatting

You can use List Formatting to customize how fields and views in SharePoint lists and libraries are displayed.

List Formatting is applied by constructing a JSON object that describes the elements that are displayed for a field or view and the styles to be applied to those elements.

Source: YouTube

PnP SharePoint List Formatting Samples

List formatting - Chris Kent