If you want to put inside that loop, you will need to do a couple things
1. each iteration of the loop needs to have an identifier to make it unique. We can solve this by using {{ loop.index }}. So with that add an id to your team box like this
<div id="team-box{{loop.index}}"class="team-box"> all the stuff that goes inside </div>
2. Now, you would add that icon_color_and_opacity field back into the repeater group as well as the icon style
3. Once back in the group, we will rewrite the style to include that new id we gave to the div. The new style block should look like this
As you can see in the output from {{ module }}, there is no field called icon_color_and_opacity, so no value is going to appear in the CSS. Have you published the changes in the fields for this module?
The reason nothing is printing is because the color is within a repeater so you will have to include it in your for loop.
And, if you do include it in the loop, I would use an inline style rather than in a style block because it is just going to repeat the style block x amount of times and whatever the last one is set to will be applied to all.
If you do not need to individually apply the color to the icons and instead want them all to be the same, you will want to take the Icon color and opacity field out of that repeater.
I suppose that if I create a repeatable field group "icon" with icon field and color (so I can add other social icons under team profile) and I put this field group under the team_member group, the problem is the same...
I see you added that code, and I think I see your problem.
team_member is actually an array, so you cannot access the color directly like that. Can you post the module.html code here, then we can see if we can rewrite it.
I've seen the same problem but I'm almost sure the field is set correctly.
If I put the field out of the group and use the correct value, it works properly. When I put it under the group, it crashes. I also set a default value of color and opacity (that is not black)
How can I show you my module? Where can I find the fields.json?