# BrandingTypically Cockpit is branded in such a way that it looks like the adminuser interface for an operating system. The "Cockpit" brand is only usedduring development.Due to trademark law, as a general rule Cockpit does not ship logos foroperating systems in its packaging. These are expected to be present on thesystem itself, and are incorporated into the branding.## How Cockpit Selects BrandingIn `$prefix/share/cockpit/branding` are multiple directories, each of whichcontain branding information. Branding files are served from the directoriesbased in the order below, if a file is not present in the first directory onthe list, the second will be consulted, and so on.$prefix/share/cockpit/branding/$ID-$VARIANT_ID$prefix/share/cockpit/branding/$ID$prefix/share/cockpit/branding/default$prefix/share/cockpit/staticThe `$ID` and `$VARIANT_ID` variables are those listed in `/etc/os-release`,and `$prefix` is usually `/usr`.Administrators can provide a custom local branding in `/etc/cockpit/branding/`(more generally, `$XDG_CONFIG_DIRS/cockpit/branding/`). If that directoryexists, it is considered before the above directories.All of the files served from these directories are available over HTTPwithout authentication. This is required since these resources will be usedon the login screen.## Branding filesThe following files are interesting in the above directories for brandingpurposes:apple-touch-icon.pngfavicon.icobranding.cssIn addition there are image files referred to by branding.css (see below).Since Cockpit does not package trademarked logos, typically there will besymlinks from a branding directory to the relevant image files elsewhereon the system.## Branding StylesThe Cockpit login screen and navigation area loads a `branding.css` filefrom the above directories.The branding.css file should override the following areas of the login screen:```css/* Background of the login prompt */html body.login-pf {background: url("my-background-image.jpg");background-size: cover;}/* Upper right logo of login screen */#badge {width: 225px;height: 80px;background-image: url("logo.png");background-size: contain;background-repeat: no-repeat;}/* The brand text above the login fields */#brand::before {font-size: 18pt;text-transform: uppercase;content: "${NAME} <b>${VARIANT}</b>";}```Notice how we can use variables from `/etc/os-release` in the branding.The value for these variables come from the machine that cockpit is logged into.`branding.css` may also set the `--ct-color-host-accent` CSS variable to changethe Cockpit Shell panel's accent color. You can also customize[PatternFly's brand colors](https://www.patternfly.org/design-foundations/colors/#brand-colors)and other PatternFly variables. For example:```css:root {--ct-color-host-accent: #c00 !important;--pf-t--global--color--brand--default: red;}```