Skip to content

Logos, Name & Colors

The dashboard can carry your club's look: your reflector logo next to the reflector name, your own mark and name at the top left, and your own colors. The XLX Observatory and Packet Warriors marks stay in the footer either way.

The dashboard with a club name, club logo and blue colors

Image Files

The same rules apply to both logos:

  • PNG, JPEG, GIF, WebP or SVG, 1 MB at most. The file name must end in .png, .jpg, .jpeg, .gif, .webp or .svg.
  • Keep the file in /etc/xlx-observatory. The service can't read files in /home.
  • It must be readable by the xlx-observatory user. chmod 644 is fine.
  • If the file is missing, too big or not one of those types, the page shows no image in its place.

The image is read on each page view. To change it later, replace the file and reload the page; no restart is needed.

LOGO_PATH shows an image next to the reflector name, after the XLX Observatory mark.

  1. Copy the image into /etc/xlx-observatory, for example logo.png:

    cp logo.png /etc/xlx-observatory/
    chmod 644 /etc/xlx-observatory/logo.png
    
  2. In the [Page] section of xlx-observatory.ini:

    LOGO_PATH=/etc/xlx-observatory/logo.png
    
  3. Restart: systemctl restart xlx-observatory

The logo is shrunk to fit a 220 × 56 pixel box, keeping its shape, so a tall image can't push the header out of line. On phones the box is 140 × 44. A wide logo fills more of the box than a square one.

Sharp on high-resolution screens

Make the image up to twice the box, 440 × 112 pixels, or use SVG. An SVG should have a width and height as well as a viewBox, or browsers may draw it smaller than the box.

Header Logo and Name

The top left of every page shows the XLX Observatory symbol and name. You can put your own there.

[Page]
HEADER_LOGO_PATH=/etc/xlx-observatory/header-logo.svg
HEADER_NAME=Questionable ARC
  • HEADER_LOGO_PATH replaces the symbol. It is shrunk to fit 160 × 40 pixels (110 × 34 on phones). One image serves both the light and dark themes, so choose one that reads on both, such as an SVG with a transparent background.
  • HEADER_NAME replaces the XLX OBSERVATORY wordmark.

Restart after changing either setting. To change the image later, replace the file and reload the page.

Colors

Colors and other styles go in /etc/xlx-observatory/custom.css. It is loaded after the built-in styles, so anything set there wins.

As installed, it changes nothing: every line in it is commented out. It lists every color the pages use, for both the light and dark themes, with what each one colors, plus a worked example. Uncomment the lines you want, change the values, and reload the page. No restart is needed.

  • The file must end in .css, be 256 KB at most and be readable by the xlx-observatory user.
  • CUSTOM_CSS_PATH in [Page] points somewhere else, or leave it empty to turn it off.
  • Package upgrades keep your edits: dpkg asks before replacing a changed file in /etc.

How the Colors Work

Every color comes from a CSS variable named --pw-*. Change a variable and everything that uses it follows. There are two kinds:

  • Brand colors, --pw-brand-*, are the same in light and dark. The header's bottom rule and the red "XLX" of the header wordmark use --pw-brand-signal.
  • Theme colors are everything else: background, text, borders, buttons, status colors. Each has one value for the light theme and another for the dark one, so set them in both the light and dark blocks of the file.

The ones you are most likely to change:

Variable Colors
--pw-brand-signal Header rule, "XLX" of the header name
--pw-primary Buttons, module letters, current tab
--pw-primary-hover / --pw-primary-active Buttons under the mouse / being pressed
--pw-link Links
--pw-focus Keyboard focus ring
--pw-selection Selected text, module badges
--pw-canvas / --pw-surface Page background / panels and tables
--pw-text / --pw-muted Body text / labels and hints

Use any CSS color: #RRGGBB, rgb(), hsl() or a name. Keep text readable: aim for a contrast of at least 4.5:1 between the text colors and the backgrounds they sit on.

Example: A Blue Club Color

This is the example at the end of custom.css, and what the screenshot at the top of this page uses. It recolors the header rule, buttons, current tab, links and module letters, and leaves the rest alone:

:root {
  --pw-brand-signal: #1F5FA8;
}

:root[data-pw-theme="light"],
:root:not([data-pw-theme]) {
  --pw-primary: #1F5FA8;
  --pw-primary-hover: #194E8A;
  --pw-primary-active: #123B69;
  --pw-link: #1F5FA8;
  --pw-focus: #1F5FA8;
  --pw-selection: #D6E3F3;
}

:root[data-pw-theme="dark"] {
  --pw-primary: #2F74C4;
  --pw-primary-hover: #3D84D6;
  --pw-primary-active: #2763A8;
  --pw-link: #9CC3EE;
  --pw-focus: #9CC3EE;
  --pw-selection: #1E3550;
}

In the installed file, put these values on the matching commented-out lines and uncomment them, rather than adding new blocks. The file also has a second dark block for visitors with JavaScript turned off; change it the same way.

Beyond Colors

Any other CSS works too, aimed at the page's class names (your browser's Inspect menu item shows them). For example:

.header-name { font-weight: 600; }   /* the HEADER_NAME text */
.header-logo { max-height: 48px; }   /* the HEADER_LOGO_PATH image */

Class names may change between releases. The --pw-* variables are the stable part.