You'll have to add an attribute node to your node tree and hook up the color output of that to the color input of your shader node. Then, change the name property of the attribute node to name set in the dynamic paint settings.
Here's an image from a similar process: