what to wear to a funeral?

i didn’t really know where to post this. i’m 16, the only funeral i’ve ever been to was my grandpas and i wore a really nice black dress and heels because i had to speak. (tw: suicide) my 17 year old neighbor took her life earlier this week and tonight is her funeral. i’m not sure what to wear, i don’t have a pair of black pants but i have leggings. this might be a stupid question but are you supposed to wear all black? or are dark colors fine? i appreciate any and all feedback