"lit" is the past tense of "light", which as you have said means to ignite sth. The other expression "the party is lit" is a recent pop culture phrase/buzzwords to say something is cool, lots of fun, etc. It's very colloquial and not used in formal writings.