Skip to content

Palettes and backgrounds ​

The nine palettes ​

The names stay numeric so that other themes can reuse the same classes with their own colors. Each palette defines a background, a text color, an accent and the card colors.

ClassRoleMain textCard background
color-1Light neutral, defaultNavyWarm paper
color-2Dark with orange accentWhiteDark blue
color-3Dominant orangeNavyWarm paper
color-4Light tintedNavyWhite
color-5Dark monochromeWhiteDark blue
color-6Light positiveNavyWhite
color-7Light alertNavyWhite
color-8Dark positiveWhiteDark green
color-9Dark alertWhiteDark plum

One palette per slide. The colors below are those of the DWA theme; an organization theme replaces them with its own brand colors.

Backgrounds are chosen by the layout ​

You do not choose a background: the layout and composition do it for you.

Layout or compositionBackground
title, calloutintro
closingcloser
toc, chart-wideintermediate
chapterheader1, header2 or header3 depending on the palette
simple contentcontent or content-inverted
content cols-2content-2col
content cols-3 to cols-6content-right
image-text[-N]content-right or content-inverted-right
text-image[-N]content-left or content-inverted-left
gallery, timeline, timeline-verticallowerband
gallery-bento, image-fit, image-fullrightband

Background names are an internal detail of the theme. The old bg-1 to bg-15 classes are no longer part of the language.

Chapters by palette ​

Palettes 1 and 4 use header1 (blue); 2, 5, 6 and 8 use header2 (beige/gray); 3, 7 and 9 use header3 (purple). The palette's tint is applied on top.

Known limitation: overlaid tints ​

The current DWA theme applies the background in two layers:

css
background-image:
  linear-gradient(var(--wash), var(--wash)),
  var(--layout-art);

--wash is transparent by default, but several palettes redefine it. An orange tint over header3 visually turns the purple salmon; a pale red tint can turn it pink. You can see this in the chapters above.

The intended behavior is to keep the original colors of the chapter backgrounds. Removing the tint alone is not enough: dark palettes have white text, while some original backgrounds are light. The fix must handle background and readability together; it has not shipped yet.

Documentation of the DWA Core v1 language, the VS Code extension, the CLI and the theme portal.