There is a specific formula to compute fret widths, that is something like that:
Dn = [(L – Dn-1) ÷ 17.817] + Dn-1
I implemented it in my guitar learning software, because, I agree with you, visual perception is important in my opinion: https://www.fachords.com/guitar-learning-software/