Skip to content

Type to search the docs, API, and blog.

↑↓ navigate↵ openesc close
  • Zazz 0.14 alpha

    API

    Pseudo-elements

    Style ::before and ::after from the host element.

    Sizing, spacing (padding and inset), position, display, z-index, color, radius, opacity, filters and blending, transforms, transition, and font size and weight also exist as --before-<utility> and --after-<utility>, read on the pseudo-element; the table on each section page marks them. --before-content: '' (or --after-content) creates it. Pseudo utilities take no tiers of their own; put a --group-* or state tier on the host's regular utility instead. --before-display takes CSS display values (block, inline-flex), not the flex-col shorthands.

    An accent bar, the way a callout draws one:

    <aside data-ui="card" style="--position: relative; --pl: 6; --before-content: ''; --before-position: absolute; --before-inset-y: 0; --before-left: 0; --before-w: 1; --before-bg: var(--color-info-foreground); --before-radius: 2.5">…</aside>

    Reference

    Pseudo-elements utilities
    UtilityWritesValueTiersNotes
    --contentcontenta string ('') on --before-content / --after-content—--before-content / --after-content

    API