I am studying the LitElement technology and I have an exercise which I cannot solve completely, I have to nest two components, where the child component will have 3 buttons and depending on the button that is pressed, the background of the component must be changed father, I understand that for this exercise you must use customizable events with DispatchEvent, I leave you my code that I have been doing for this exercise and I also share some screens of how this exercise should work, I hope you can help me, thank you very much in advance
image pressing the green button
Try this, it is hard to understand the problem without including the code.