I'm learning twig and using it to format and style my fields. The problem I am running into is that I need to create a new twig template for each individual field.
In the example picture, I have
field--parent-task.html.twigwhich allows me to edit 1 field (or the first field), but I will need to create 6 more templates with identical code structure, just to style and move the fields around.
Is there a more efficient way to do this? In the end, I will have 7 templates just to target different fields, but yet they are all on the same page. I know I can target classes, say
field__label, but that is not what I need, since I will be moving these fields around, giving them unique positions on the page.
If it cannot be done and this is how it is in D8, that is fine, I will deal with it. But if not, is there a better approach? So I don't end up having a endless list of field templates just to add/tweak a few css styles?