UX design is the skeleton of your product and it involves an extensive user research in order thoroughly understand how the user will be using the product, UI design is the aesthetically pleasing part of the design and has to make sure the product is inclusive and accessible to all its users.