Write an ESP-IDF program once and choose the board when you build it: a board of the catalog, a board of your own, or a window on the computer that shows the display of the chosen board. The component sets up the display, touch, sound, radio, buttons and buses of that board; the program asks for parts by kind, never by the board's name. Each board is described once as data, each fact with its source, and a build downloads only the libraries of the chosen board.
Immediate-mode touch UI library in pure C99 for the ESP32 Cheap Yellow Display (CYD, ESP32-2432S028R) and small TFT screens - no malloc, no framebuffer, themes, on-screen keyboard.