Dimmer switch wiring circuit for low volt puck lights
I'm planning to install low voltage puck lights under my kitchen cabinets controlled by a switch. I have relatively easy access to incoming power. I'm going to run pigtails from the live line to the switches -one to the existing switch and then one to the new dimmer switch I'm installing. I need to have two sets of lights since the low voltage transformers are 60W max. and now need to get power to both transformers. One transformer will require only a couple of feet of line to reach while the other will require about 25 feet since it's easier for me to go down into the basement and back up the other wall than ripping up my entire kitchen backsplash area. Here's where the questions come in.
First, I need to hard wire the transfomers and plan to do so in junction boxes with covers inside my kitchen cabinets. Is that within code? If not how does everyone do it since it seems to be a popular addition?
Second, can I just hard wire the 120v side of the transformers like mulitple outlets or lights (ie dimmer to first transformer and then hard wire in a run of line out from that transformer to the other one?) Or even simpler - can I run two lines out of the transformer - one going to each respective transformer?
Third, I know I need to buy a dimmer designed for low voltage supplies and capable of handling 120W but does the distance of the run from the switch to the transfomer have to be factored in? Any limitations?
Thanks in advance