I use this code to create a hexagonal shape in JSON for a SharePoint list.
{
"elmType": "svg",
"style": {
"fill": "currentColor",
"cursor": "pointer"
},
"attributes": {
"viewBox": "-150 -150 300 300",
"class": "ms-fontColor-themeLight ms-bgColor-themeTertiary--hover"
},
"children": [
{
"elmType": "path",
"attributes": {
"d": "M130,60.561C130,69.495 125.232,77.751 117.493,82.216C92.646,96.55 37.328,128.464 12.493,142.792C4.762,147.253 -4.762,147.253 -12.493,142.792C-37.328,128.464 -92.646,96.55 -117.493,82.216C-125.232,77.751 -130,69.495 -130,60.561L-130,-60.561C-130,-69.495 -125.232,-77.751 -117.493,-82.216C-92.646,-96.55 -37.328,-128.464 -12.493,-142.792C-4.762,-147.253 4.762,-147.253 12.493,-142.792C37.328,-128.464 92.646,-96.55 117.493,-82.216C125.232,-77.751 130,-69.495 130,-60.561L130,60.561Z"
}
}
]
}
The tag "fill" applies a standard-color to the shape. Can I use the class-definition inside the elmType-attributes to assign a different color (e.g. ms-bgColor-themeSecondary) instead of using hex-color-codes?