Particle material procedural texture

Hi, how to use a single procedural texture for the material and particle system?

what are you trying to do?