How to create distance fog system in URP 2D renderer?

Hi community, I am developing a 2D platformer game which is using URP 2D renderer as default renderer.

When I was setdressing the level, I found that I really need a custom tool to automatically set fog effect based on sprites’ z axis position, and also set gradient color based on distance.

Is there any suggestions for achieving this system?