The themeable templates, in src/js/mc-templates.js, are maintained manually.
This looks quite painful to me, and might have something do with discrepancies like #10 and MidnightCommander/mc#4893.
Also, mc's UI slightly changes over time, e.g. the order of items in the Left menu has changed, the format of the character code in the editor is likely to change soon, these currently don't cause any problem but might pile up over time.
Let's try to find a more automated way, to make it easy and convenient to create these themeable templates.