"Designer drugs" were named in the early '80s. They were analogs of widely used street drugs, like heroin, that were intentionally "designed" to be different enough chemically as to be entirely legal.
At least in the U.S., laws were overhauled to catch up.