Skip Navigation
EnumerationEnumeration

StylesheetLayer

A layer of the generated stylesheet.

enum StylesheetLayer

Overview

The generated css/main.css is the concatenation of these layers, in the order of allCases, so that each layer can override the ones before it:

  1. StylesheetLayer.base: the base stylesheet shared by all themes (structure and layout, with every visual value routed through a custom property);

  2. StylesheetLayer.sidebarDocument: the rules for the embedded navigation sidebar;

  3. StylesheetLayer.colourScheme: the rules that apply the colour scheme chosen by the reader;

  4. StylesheetLayer.accent: the accent colour, when the theme settings do not set link;

  5. StylesheetLayer.themeSettings: the custom properties defined by the theme settings;

  6. StylesheetLayer.theme: the theme’s own stylesheets;

  7. StylesheetLayer.custom: custom CSS supplied by the user.

Every layer starts with a marker comment (see marker(part:)) naming the layer and, for layers made of several files, the part.

Topics

Relationships

  • Swift.CaseIterable
  • Swift.Equatable
  • Swift.Hashable
  • Swift.RawRepresentable
  • Swift.Sendable
  • Swift.SendableMetatype