Published and unpublished content

Three teasers of a basic page, the middle one unpublished, rendered by the node view builder through the node template of `mantra_starter`, so the classes and the libraries are the real ones: the unpublished page carries `node--unpublished` and the outline and background of `libraries/drupal/unpublished.css`. They are shown in a panel that sets `color-scheme: light` on itself and in one that sets `color-scheme: dark`. The nodes are created for the page and never saved; a new node has no URL, so the titles link nowhere.

Teasers in a listing

The way unpublished content is mostly met: in a listing, among published teasers. `libraries/drupal/unpublished.css` fills `.node--unpublished` with `--color-unpublished` and draws an outline of the same color around it, so the fill reaches past the box without moving the teasers around it: #d9d9d9 in the light scheme, #404040 in the dark one. Media and paragraphs take the same rule, through `.media--unpublished` and `.paragraph--unpublished`.

color-scheme: light

A published page

The body of a page that anyone can see. It sits on the page like any other content.

A draft page

This content is unpublished.

The body of a page that has not been published yet. Only its author and editors see it, set apart from the published content around it.

color-scheme: dark

A published page

The body of a page that anyone can see. It sits on the page like any other content.

A draft page

This content is unpublished.

The body of a page that has not been published yet. Only its author and editors see it, set apart from the published content around it.