Contributed modules that help with theming
Many people have created contributed modules to help theme Drupal. Some of the most popular ones are as follows:
- Twig Tweak (https://www.drupal.org/project/twig_tweak): This creates several Twig filters, functions, and so on that allow you to do things, such as placing blocks/views/entities in templates.
- Twig Field Value (https://www.drupal.org/project/twig_field_value): This creates a couple of Twig filters that allow you to generate the value of a field in a template and bypass the field template.
- Components (https://www.drupal.org/project/components): This allows you to create custom Twig namespaces, so you can reference templates more easily.
There are many more modules than these. If you run into issues, search and you’ll likely find what you’re looking for.