What are these wires ?

Also, the dome light works fine. Turns on and off with the light switch turned . Also dash lights dim with lights switch being turned.
That is not what I meant. Much of the yellow wiring is the grounding switch leg for the dome. In other words a yellow goes to a door switch, when the door is open, the switch grounds the yellow and activates the dome light. The same thing happens when you turn the dimmer knob on the light switch. One of the yellows goes to the grounding switch on the light switch.

Because you do not know what the yellow is, get your dome light on. IF THE unknown yellow is one of the dome switch legs, the voltage on that wire will go to near zero when the dome lights are activated, IF it is part of the switch leg wiring.