English
About this handbook

This handbook belongs to the template Example for QuartzControl. It explains the template and, at the same time, shows everything it can do.

The text here comes from a Markdown file, not from the configuration.

Images per colour scheme

The Layout Box plugin of this template switches images by colour scheme: an element with the class img-light appears in light mode, img-dark in dark mode.

<img class="img-light" src="{{root}}/static/logo-light.png" alt="" />
<img class="img-dark" src="{{root}}/static/logo-dark.png" alt="" />

The word mark at the top left of this site works that way — although with two inline SVGs instead of two files, because a template package carries no image files.

Why CSS alone will not do

A single image could be recoloured with filter: invert(), but that hits every colour equally and turns a green logo magenta. Two versions are the more honest solution.

Alternative: currentColor

An inline SVG whose areas carry fill="currentColor" follows the text colour automatically and needs no second version. That is the simpler way as soon as the image is one colour.

More on the instances: The instances.

Read on

This page belongs to Example — the example template for QuartzControl. An overview of every area is on the English home page.

On a narrow screen the navigation is collapsed at the top.