For many years I did not quite understand the meaning. What is a die? It finally struck me that it is half of a pair of dice.
Meant to be ‘dye’, as in once the dye is cast into the tub of cloth, there is no going back.