Is this The Secrets of Droon? According to Wikipedia,
Eric Hinkle, Neal Kroger, and Julie Rubin are three friends who accidentally discover a magical world called Droon; a rainbow staircase that appears when Eric's basement closet is dark is usually how they get to Droon.
It goes on to say that
The characters develop as well, with Eric's wizard ...