How the conversion works
With the default 0.25 rem spacing unit and a 16 px root font size, 12 px maps to 3, as in w-3 or p-3.
spacing units = Pixels ÷ Reference pixels
Pixels = spacing units × Reference pixels
Find the spacing scale for your project in the Tailwind CSS documentation.