Alternatively, a quick Thingiverse search comes up with many designs ready to download. Rohin Gosling’s parametric hinge is customisable using OpenSCAD. It’s proving very popular - there’s been nearly 1000 remixes based on Rohin’s original model.
Another customisable design is Walter Hsiao’s cute magnetic box, which pops together when you close the lid.