Is this dimmer compatible a DC 12v power supply?
As long as you have looked at the power (in W) and made sure the dimmer can handle it, it should be fine. 

If there is a 12V supply and the dimmer states 12-24V, then you should have no issues. Just double check wiring!