For most of time we have to add custom attributes to the body tag.

Here is a simple typoscript which add a custom body class. In this example I’m adding the backend layout id as the class name. You can do whatever you what in that script.