If you’re a frontend dev tasked with designing an app in addition to building it, these psychological principles can ensure your design works.