0

I use this JSON code below to give additional rows a different color.

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "additionalRowClass": "=if(@rowIndex % 2 == 0,'ms-bgColor-themeLighter ms-bgColor-themeLight--hover','')"
}

In the code I used ms-bgcolor-themeLighter and ms-bgColor-ThemeLight--hover.

Which are these colors:

enter image description here

But I get purple instead of blue:

enter image description here

Why is that happening and how to solve this?

1
  • Are you using SharePoint default theme or any custom theme? If SharePoint default theme, can you share the name of theme you are using? Commented Mar 29 at 5:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.