Imagine a completely modularised approach to designing user interfaces. For instance, say you design a user interface with one or…