Been done thousands of times. Depending on the LED, the dimmer doesn't always work. And they have to be wide angle LEDs, or you'll end up with bring and dark areas.
Just know that the alternator circuit is looking for specific resistance across the battery light bulb, so either leave that one incandescent, or add a resistor to mimic it. Otherwise your alternator won't charge.