Default Style Variables and Other Configurations

Defined Variables

The default Quire theme includes a number of style variables intended to allow for relatively easy customization without having to dig into the stylesheets and CSS markup. They are explained below and can be found and changed in content/_assets/styles/variables.scss file. Take special note of the $theme variable which can be set to “modern” or “classic”, and the $accent-color variable which will give your publication a distinct feel in coloring all links, buttons and other navigation elements.

Variable TypeVariableExpected ValueDescription
Primary$accent-colorcolor valueThe color of buttons, links and navigation elements
$content-background-colorcolor valueMain text area background color
$secondary-background-colorcolor valueAdditional background color, only for modern version of the theme
$theme“modern”, “classic”Shifts the overall feel and typography of the publication
$navbar“normal”, “accent”Predefined options for your navbar, white or the accent color
Pre-defined fonts$ibm-sansfont name, “serif”, “sans-serif”This theme includes three embedded, open license fonts, (Noto Sans, Noto Serif, and IBM Plex Sans Condensed) and also uses the widely available Times (files of which are not otherwise included here).
$noto-sansfont name, “serif”, “sans-serif”See above
$noto-seriffont name, “serif”, “sans-serif”See above
$time-seriffont name, “serif”, “sans-serif”See above
Page typography$quire-base-font-sizeunit value16px default
$quire-page-paragraph-style“line-space”, “indent”Paragraph display styles, either a line space and no indent, or an indent and no line space
Cover typography$quire-cover-text-colorcolor value
$quire-cover-text-scaleintegerUse decimal numbers such as .8 or 1.3 to shift the text larger or smaller
Menu$quire-menu-widthunit value352px default
$quire-menu-colorcolor value
$quire-menu-text-colorcolor value
Image viewer colors (pop-up figure viewer & entry page viewer)$quire-entry-header-heightunit value6rem default
$quire-entry-image-colorcolor valueThe background of the image viewer on entry pages
$quire-entry-image-icons-colorcolor value
Active link and table-row color$quire-hover-colorcolor valueUsed on active links and when hovering over table rows
Print/PDF output$print-widthunit value8.5in default
$print-heightunit value11in default
$print-bleedunit value.125in default
$print-bottom-marginunit value0.875in default
$print-top-marginunit value0.75in default
$print-outer-marginunit value0.75in default
$print-inner-marginunit value1in default
$print-base-font-sizeunit value8.5pt default
$print-text-colorcolor valueSpecifying a plain black will avoid excessive color printing costs
$print-splash-colorcolor valueBackground color for full-bleed splash pages
$print-entry-image-colorcolor valueBackground color for full-bleed image pages ($black for Paged.js and $rich-black for PrinceXML)
$print-entry-caption-colorcolor valueColor of the caption text
$print-entry-image-display“all”, “first”Output “all” the images associated with an object on an entry page, or only the “first”, main image
Themes: Declare theme variables$quire-primary-fontfont nameControls body and menu text
$quire-headings-fontfont nameControls headings text
$quire-footnotes-fontfont nameControls footnotes and page backmatter
$quire-navigation-fontfont nameControls navbar and next/prev buttons
Themes: Classic theme$quire-primary-fontfont name
$quire-headings-fontfont name
$quire-footnotes-fontfont name
$quire-navigation-fontfont name
$accent-colorcolor value
$content-background-colorcolor value
$secondary-background-colorcolor value
Themes: Modern theme (default)$quire-primary-fontfont name
$quire-headings-fontfont name
$quire-footnotes-fontfont name
$quire-navigation-fontfont name
$accent-colorcolor value
$content-background-colorcolor value
$secondary-background-colorcolor value
Navbar$navbar-heightunit value3rem default
$quire-progress-bar-heightunit value2px default
$quire-navbar-colorcolor value
$quire-navbar-hover-colorcolor value
$quire-navbar-text-colorcolor value
Navbar: Accent Navbar$quire-navbar-colorcolor value
$quire-navbar-hover-colorcolor value
$quire-navbar-text-colorcolor value
Navbar: Normal Navbar$quire-navbar-colorcolor value
$quire-navbar-hover-colorcolor value
$quire-navbar-text-colorcolor valueIf theme is classic
$quire-navbar-text-colorcolor valueIf theme is modern
Cover colors$quire-cover-color-1color valueThe cover includes a gradient of two colors, specified here, and a white/transparent wave graphic specified in the cover.md of the content files
$quire-cover-color-2color value
$quire-cover-color-1color valueIf theme is classic
$quire-cover-color-2color valueIf theme is classic
$quire-cover-color-1color valueIf theme is modern
$quire-cover-color-2color valueIf theme is modern
Layout sizes$quire-map-heightunit value500px default
$quire-deepzoom-heightunit value500px default
Heading Styles$heading-1-font-sizeunit value3em default
$heading-1-line-heightunit value1.15 default
$heading-2-font-sizeunit value1.75rem default
$heading-2-line-heightunit value1.15 default
$heading-3-font-sizeunit value1.5rem default
$heading-3-line-heightunit value1.25 default
$heading-4-font-sizeunit value1.375rem default
$heading-4-line-heightunit value1.3 default
$heading-5-font-sizeunit value1.25rem default
$heading-5-line-heightunit value1.4 default
$heading-6-font-sizeunit value1.1875rem default
$heading-6-line-heightunit value1.4 default

Page YAML Classes

ClassDescription
page-oneFor PDF output, should be used on the page/chapter where you want page 1 to start, often an Introduction or first essay rather than the Contents pages or other frontmatter
copyright-pageFor PDF output, should be used for designated copyright page
half-title-pageFor PDF output, should be used for designated half title page
title-pageFor PDF output, should be used for designated title page
layout: page
order: 30
classes:
  - page-one

Shortcode Classes

ClassDescription
is-pulled-left, is-pulled-rightCan be applied to figures with their shortcodes, will make figures roughly half-column width and will float them to the left or right of the text.
{% figure 'fig-1-2', 'is-pulled-left' %}

Presentation Types

PresentationDescription
brief, list, abstract, gridCan be applied to pages with a layout: table-of-contents, will alter how the contents are displayed
side-by-side, landscapeCan be applied to pages with a layout: entry, will alter how the image viewer is displayed. The default presentation is landscape
layout: contents
presentation: list 

Layout Types

LayoutDescription
table-of-contentsThis page type automatically creates a table of contents for your entire publication, or for a section of your publication when used inside a sub-directory. Can be formatted differently by applying different presentation: list, brief, abstract, and grid.
entryTypically used for collection catalogues. Formatted to display images of an object along with data about that object and essays.
pageThe basic, default Quire page shows title, page content, links and a list. Used for introductions, forewords, chapters, appendices and other pages.
coverUsed for the index.md file that serves as the publication cover.
bibliographyAutomatically generates a bibliography based on references.yaml file.
essayThe essay is a standalone, self-contained article in a periodical or collected volume. This is also reflected in the metadata embedded in the page, which will include more page-specific information than a typical publication page, whose metadata will instead point to the publication as a whole.
splashA splash page is used to open a section or to set off a particular page. Includes customizable banner image, drop cap lettering, full-color background.
objects-pageTypically used in collection catalogues. Will create a grid of images and object data for all pages with object attribute included in Page YAML. Can only be applied inside a subdirectory.

Configuration Parameters

A Quire project will also have a config.yaml file which includes a number of parameters the theme relies on.

Configuration

ObjectObject PropertiesAdditional PropertiesExpected ValueDescription
accordioncontrols“arrow”,
“plus-minus”
Default symbol for accordion menu is “arrow”
copyButtonarialabelstringLabels an interactive element for accessibility purposes. The default is “Copy page section link to clipboard”
successtextstringThe default is “Copied page section link to clipboard”
symbolSymbol that will be used in Markdown. Default is §
globalControlscollapseTextstringThe default is “Collapse All”
expandTextstringDefault is “Expand All”
analyticsgoogleIdAdd your Google Analytics tag here. If you don’t have one leave the value as ''
bylineFormat“name”,
“name-title”,
“false”
Choose false if you don’t want a byline to appear
bibliographydisplayOnPagebooleanIf you want to suppress the page-level bibliography but keep the in-text citations, go into the change the value to false
displayShortbooleanBibliographies can appear with or without the short form of the citation. The default is set to true. If you only want to show the full references, change the value to false
headingstringA heading can be customized to go above this bibliography. The default heading is “Bibliography”
citationsdividerstringDetermines the separation between short form citation and the page number. The Default is ','
popupStyle“text”,
“icon”
Determines if pop-up citation is text or an image
entryPagesideBySidebooleanFalse means the images will appear above object data (ie. landscape)
objectLinkTextstringControls text that links to external URL. Default is “View in Collection
epubdefaultCoverImagestringPoints to the image file for EPUB cover. Default is epub-cover.png
outputDirstringPoints to the directory where the EPUB cover file is stored. Default is _epub.
footnotesbacklinkSymbolstringControls the symbol that takes readers from the footnotes back to the main text. Default is .
figuresassetDirstringDetermines the location where assets, such as figures or fonts, are stored. Default is /_assets/
enableModalbooleanEstablishes whether to display icons with the figure modal links
imageDirstringDetermines the location where figures are stored in the project. Default is /_assets/images. This affects the src value in the figures.yaml file.
licenseIconsbooleanControls whether the Creative Commons license logo appears in the sidebar menu. Default is true.
localizationdefaultLocalestringDetermines what language the publication will appear in.
menuTypestringDetermines the appearance fo the sidebar menu
navigationnextButtonTextstringDetermines the text that appears on the button to progress the publication forward
preButtonTextstringDetermines the text that appears on the button to move the publication backwards
pageTitlelabelDividerstringControls what symbol appears after the object or figure label to separate it from the text that follows
refsequenceTransitionnumber
searchEnabledbooleanIncludes search function in the publication
tableOfContentscontributorDividerstringDetermines what symbols separates the author name from the essay they contributed to
quire_credit_linebooleanDefault text indicating that the publication was producted with Quire