Brand guidelines are a document that formalizes the full set of a brand's visual rules: the logo and its variations, color palette, typography, iconography, and rules on how they can and cannot be used. They ensure visual consistency across all of a company's communication channels, from the website to social media. They are a fundamental deliverable of any branding project.
Code