Skip to content

All classes ​

This page is generated from the extension's catalog (apps/extension/src/language/catalog.ts) on every site build. These are exactly the classes offered by autocompletion and hover in VS Code.

Main layouts ​

ClassDescription
titleCover: # title, optional ## subtitle, paragraphs.
tocTable of contents: numbered list, optional title.
calloutKey message: a single # title, centered across 100% of the width, with line wrapping. Same backgrounds as title; color-1 to color-9.
chapterChapter: # number and ## title, or a single # title.
contentFree content or a structured composition.
closingClosing: # message and optional paragraphs.

Compositions ​

ClassDescription
galleryRegular gallery: one image alone per paragraph. Three columns by default; cols-2 to cols-6. 200 px frames.
gallery-bentoFixed mosaic: exactly six images, each in its own paragraph. No cols-N.
timelineHorizontal numbered list; cols-N sets the number of steps per row.
timeline-verticalVertical numbered list, without cols-N.
chart-wideTwo > blocks followed by an image alone or a Markdown table.
image-fitA whole image within the content area, with the slide margins.
image-fullAn image over the whole slide. Add bg to fill and crop.
image-textImage on the left, 50% of the available width. Expects an image alone and a single > text block. The ratio always refers to the image.
text-imageImage on the right, 50% of the available width. Expects an image alone and a single > text block. The ratio always refers to the image.
image-text-N, text-image-NN is 10 to 90 in steps of 10: the image’s share of the available width.

Columns ​

ClassDescription
cols-22 > groups per row, or a parameter of gallery / timeline. Extra groups wrap to the next row.
cols-33 > groups per row, or a parameter of gallery / timeline. Extra groups wrap to the next row.
cols-44 > groups per row, or a parameter of gallery / timeline. Extra groups wrap to the next row.
cols-55 > groups per row, or a parameter of gallery / timeline. Extra groups wrap to the next row.
cols-66 > groups per row, or a parameter of gallery / timeline. Extra groups wrap to the next row.

Palettes ​

ClassDescription
color-1Palette 1: neutral, navy text. One palette per slide.
color-2Palette 2: dark, orange accent. One palette per slide.
color-3Palette 3: orange, navy text. One palette per slide.
color-4Palette 4: light tinted. One palette per slide.
color-5Palette 5: dark monochrome. One palette per slide.
color-6Palette 6: light positive. One palette per slide.
color-7Palette 7: light warning. One palette per slide.
color-8Palette 8: dark positive. One palette per slide.
color-9Palette 9: dark warning. One palette per slide.

Sizes ​

ClassDescription
mediumBase text at 25 px. Margins and frames do not shrink.
smallBase text at 21 px. Margins and frames do not shrink.
callout-size-NN is 50 to 180 in steps of 5: size of a callout title, in pixels.

Image fit ​

ClassDescription
fitWhole image (contain), the default behavior.
bgFills the frame (cover), with centered cropping. Not the same as ![bg](…).

Options ​

ClassDescription
with-titleFirst # directly in the slide: full-width title. For content or toc.
with-legendLast text paragraph: caption for the whole slide. Must follow the content.
cardsStyles > groups, gallery images or timeline steps. Does not create the groups.
brandedDWA signature at the top right. Backgrounds are already chosen by the layout.

Extension shortcut ​

InputResult
coverInserts title, the name recognized by the theme

Families and rules ​

FamilyHow many per slide
LayoutExactly one
CompositionAt most one (cols-N can also configure gallery and timeline)
PaletteAt most one
SizeAt most one (medium or small; callout-size-N for callout)
FitAt most one (fit or bg)
OptionsFreely combinable

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