Your library may or may not have a dress code, and levels of formality vary from institution to institution. Consistency is important though. If you are the librarian who comes to work with holes in the knees of your jeans, do it every day. If you wear a tie, wear a tie every day. If you wear a cardigan, wear one every day. There is nothing wrong with living like a cartoon character.