A key ingredient is cocoa butter. It is a fat and it can come in at least six different crystalline forms. This means that the atoms are the same but they are arranged differently. The different arrangements can lead to different properties including melting point, how easily it snaps, strength, glossiness and texture. It’s a bit like lego bricks. You can use the same bricks to make different structures; some are stronger, and some look better.