The origin of being “in the limelight” comes from the days before electricity when theatres had to produce spotlight by directing a flame at calcium oxide or quicklime. This was known as a limelight. – WTF Fun Facts
Source: https://www.history.com/news/where-did-the-phrase-in-the-limelight-come-from