UX design focuses on how a product works such as user flows, screen order and interactions between different parts of the interface. UI design focuses on how the product looks including layout, visual hierarchy and consistency across screens. In practice, both work together to make sure a product is easy to understand and use.