Outline shader in HDRP (Unity 6.0)

Hi! I am trying to give a black outline to some selected objects in my scene, in Unity 6 beta HDRP.

The unity toon shader (GitHub - Unity-Technologies/com.unity.toonshader: Unity Toon Shader ( an experimental package )) does what I want, but I can’t get it to work with Unity 6.

As I don’t want a fullscreen effect, would there be an easy way to build a shader that I can apply on materials, that would basicaly end up being similar to an HDRP/Lit shader, but with an outline?

Thank you

You can use custom pass to draw the objects with a outline shader