Config vs Code

Drupal is great because you can quickly edit content and structure through the UI. But your options are limited compared to directly editing a template or php file.

Often when you edit a template, such as a content type, you want to disable or enhance some of the UI options. For example, you may print your fields in a particular way in the template, and don't want users to rearrange them in the UI.

Sometimes you add an option to the form that would allow the user to toggle a class.

There are many Drupal modules that add configuration options for content display. You will have to decide for your project how you want to configure or code your site.