v0.8.551 components15 utility categories

0build Documentation

Single source of truth for humans and AI agents, pinned to0build@0.8.5.

Boilerplate

Drop-in HTML starters generated by 0build with CSS and JS packs loaded in order from jsDelivr.

<!doctype html>
<html class="z-not-ready" lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>0build</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/css/kit.min.css" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/css/chart.min.css" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/css/rte.min.css" />
    <script>
      const htmlElement = document.documentElement;

      const __Z_THEME__ = JSON.parse(
        localStorage.getItem("__Z_THEME__") || "{}",
      );

      if (
        __Z_THEME__.mode === "dark" ||
        (!__Z_THEME__.mode &&
          window.matchMedia("(prefers-color-scheme: dark)").matches)
      ) {
        htmlElement.classList.add("dark");
      } else {
        htmlElement.classList.remove("dark");
      }

      htmlElement.classList.add(__Z_THEME__.layout || "z-layout-small");
    </script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/core.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/essentials.iife.js" type="module"></script>
  </head>
  <body class="bg color" style="--bg: var(--z-bg); --color: var(--z-bg-f)">
    <!-- CODE HERE -->
    <script>
      window.zRuntime = window.zRuntime || {};

      zRuntime.debug = true;
    </script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/runtime.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/toast.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/select.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/cmd.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/date.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/inputs.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/lightbox.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/scroll.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/lists.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/icon.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/chart.iife.js" type="module"></script>
    <script src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/rte.iife.js" type="module"></script>
  </body>
</html>
<!doctype html>
<!--
  0build 0.8.5 boilerplate
  ========================

  LOAD ORDER / DEPENDENCIES
  -------------------------
  1. core.iife.js        REQUIRED. Everything else depends on it.
  2. essentials.iife.js  REQUIRED in practice. Depends on core, and exports the
                         globals zDialog, zAnimation, zCss, zGesture, zSvg that
                         most packs rely on (see table below).
  3. runtime.iife.js     OPTIONAL. Independent (JIT CSS). No dependencies.
  4. pack/*.iife.js      OPTIONAL. Include only what the page uses. Each pack
                         depends on core and (usually) essentials, but NOT on
                         other packs, so their order relative to each other
                         does not matter.

  PACK CHEAT SHEET
  ----------------
  Pack      | Provides                                   | Needs from essentials
  ----------|--------------------------------------------|----------------------
  toast     | window.zToast                              | zCss, zSvg
  select    | z-select                                   | zSvg
  cmd       | z-cmd (bundles its own BaseSelectMixin, so | zDialog, zSvg
            | it does NOT require the select pack)       |
  date      | z-calendar, z-input-date, z-input-time     | zSvg
  inputs    | z-input-pin, z-input-range, z-input-tag,   | zGesture, zSvg
            | z-kv                                       |
  carousel  | [EXPERIMENTAL] z-slider, z-slideshow       | zGesture, zAnimation
  lightbox  | z-lightbox                                 | zDialog, zAnimation,
            |                                            | zGesture, zSvg
  scroll    | z-sticky, z-scrollspy                      | zCss, zAnimation
  lists     | z-filter, z-sortable                       | zGesture
  icon      | z-icon, window.zLucide (Lucide icons)      | none (core only)
  chart     | z-chart, window.zApexCharts (ApexCharts)   | none (core only)
  rte       | z-rte (TipTap rich text editor)            | none (core only)

  Essentials itself includes: z-dialog, z-drawer, z-drop, z-accordion,
  z-switcher, z-lsh, tooltips, [data-toggle], [data-dismiss].
-->
<html class="z-not-ready" lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>0build</title>

    <!-- REQUIRED: Base stylesheet -->
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/css/kit.min.css"
    />

    <!-- OPTIONAL: Charts stylesheet. Only needed if you load the `chart` pack below (z-chart). -->
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/css/chart.min.css"
    />

    <!-- OPTIONAL: Rich Text Editor stylesheet. Only needed if you load the `rte` pack below (z-rte). -->
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/css/rte.min.css"
    />

    <!-- Theme bootstrap (inline, runs before first paint) -->
    <script>
      const htmlElement = document.documentElement;

      const __Z_THEME__ = JSON.parse(
        localStorage.getItem("__Z_THEME__") || "{}",
      );

      if (
        __Z_THEME__.mode === "dark" ||
        (!__Z_THEME__.mode &&
          window.matchMedia("(prefers-color-scheme: dark)").matches)
      ) {
        htmlElement.classList.add("dark");
      } else {
        htmlElement.classList.remove("dark");
      }

      htmlElement.classList.add(__Z_THEME__.layout || "z-layout-small");
    </script>

    <!-- REQUIRED: Core. Load first, in <head>. Contains Lit, FloatingUI, and the shared building blocks (Base, Hwc, Controller, InputMixin, DropdownMixin, randomString, parseOptions) that essentials and every pack import via window.z* globals. -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/core.iife.js"
      type="module"
    ></script>

    <!-- REQUIRED (in practice): Essentials. Must load AFTER core. Includes z-dialog, z-drawer, z-drop, z-accordion, z-switcher, z-lsh, tooltips, [data-toggle] and [data-dismiss] handling. Also exposes zDialog, zAnimation, zCss, zGesture and zSvg, which most packs below depend on. Skipping it will break those packs. -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/essentials.iife.js"
      type="module"
    ></script>
  </head>
  <body class="bg color" style="--bg: var(--z-bg); --color: var(--z-bg-f)">
    <!-- CODE HERE -->

    <!--
      Runtime config. Must be defined BEFORE the runtime script loads.
      `debug = true` is a development setting; consider removing or
      setting it to false in production.
    -->
    <script>
      window.zRuntime = window.zRuntime || {};

      zRuntime.debug = true;
    </script>

    <!-- OPTIONAL: Runtime (JIT CSS). Separate track from the JS bundles: it has no dependencies on core or essentials, and nothing depends on it. -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/runtime.iife.js"
      type="module"
    ></script>

    <!--
      OPTIONAL: Component packs.
      Load after core + essentials. Order among packs does not matter.
      Delete any pack you don't use to cut page weight.
    -->

    <!-- Toast notifications: window.zToast -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/toast.iife.js"
      type="module"
    ></script>

    <!-- Select dropdown: z-select -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/select.iife.js"
      type="module"
    ></script>

    <!-- Command palette: z-cmd (self-contained, doesn't need the select pack) -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/cmd.iife.js"
      type="module"
    ></script>

    <!-- Date & time: z-calendar, z-input-date, z-input-time -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/date.iife.js"
      type="module"
    ></script>

    <!-- Specialty inputs: z-input-pin, z-input-range, z-input-tag, z-kv -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/inputs.iife.js"
      type="module"
    ></script>

    <!-- EXPERIMENTAL — Carousels: z-slider, z-slideshow (uncomment to opt in) -->
    <!--
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/carousel.iife.js"
      type="module"
    ></script>
    -->

    <!-- Lightbox: z-lightbox -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/lightbox.iife.js"
      type="module"
    ></script>

    <!-- Scroll helpers: z-sticky, z-scrollspy -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/scroll.iife.js"
      type="module"
    ></script>

    <!-- List tools: z-filter, z-sortable -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/lists.iife.js"
      type="module"
    ></script>

    <!-- Icons: z-icon + Lucide (window.zLucide). Core-only dependency. -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/icon.iife.js"
      type="module"
    ></script>

    <!-- Charts: z-chart + ApexCharts (window.zApexCharts). Pair with chart.min.css above. -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/chart.iife.js"
      type="module"
    ></script>

    <!-- Rich text editor: z-rte (TipTap). Pair with rte.min.css above. -->
    <script
      src="https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist/js/pack/rte.iife.js"
      type="module"
    ></script>
  </body>
</html>

Bundles & Packs

Driven by assets.json (CDN base: https://cdn.jsdelivr.net/gh/0builddotdev/0build@0.8.5/dist).

KeyPathProvidesStatus
kitcss/kit.min.cssBase stylesheetrequired
chartcss/chart.min.cssOptional CSS (pair with chart)optional
rtecss/rte.min.cssOptional CSS (pair with rte)optional
corejs/core.iife.jsLit, FloatingUI, Base, Hwc, Controller, InputMixin, DropdownMixin, helpersrequired
essentialsjs/essentials.iife.jsz-dialog, z-drawer, z-drop, z-accordion, z-switcher, z-lsh, tooltips, [data-toggle], [data-dismiss]required
runtimejs/runtime.iife.jsJIT CSS runtime (window.zRuntime)optional
toastjs/pack/toast.iife.jswindow.zToastoptional
selectjs/pack/select.iife.jsz-selectoptional
cmdjs/pack/cmd.iife.jsz-cmd (bundles its own BaseSelectMixin, so it does NOT require the select pack)optional
datejs/pack/date.iife.jsz-calendar, z-input-date, z-input-timeoptional
inputsjs/pack/inputs.iife.jsz-input-pin, z-input-range, z-input-tag, z-kvoptional
carouseljs/pack/carousel.iife.jsz-slider, z-slideshowexperimental
lightboxjs/pack/lightbox.iife.jsz-lightboxoptional
scrolljs/pack/scroll.iife.jsz-sticky, z-scrollspyoptional
listsjs/pack/lists.iife.jsz-filter, z-sortableoptional
iconjs/pack/icon.iife.jsz-icon, window.zLucide (Lucide icons)optional
chartjs/pack/chart.iife.jsz-chart, window.zApexCharts (ApexCharts)optional
rtejs/pack/rte.iife.jsz-rte (TipTap rich text editor)optional

For Agents & LLMs

Static Markdown and JSON artifacts served directly from public/.

ResourceDescriptionActions
llms.txtMaster index linking every component, utility, runtime, guide, and registry JSON.
llms-full.txtComplete Markdown bundle with all guides and all components.
llms-css.txtScoped Markdown bundle for CSS-only components.
llms-controllers.txtScoped Markdown bundle for controller components.
llms-hwc.txtScoped Markdown bundle for HTML Web Components (HWC).
llms-utilities.txtComplete CSS utility reference in Markdown.
llms-runtime.txtComplete zRuntime API, tokens, plugins, and custom rules reference in Markdown.
registry/index.jsonStructured index of all components, icons, and CSS variables.
registry/assets.jsonVersioned CSS/JS bundle manifest (load order, packs, and status flags).
vscode.html-data.jsonVS Code HTML custom data for z-* elements and attributes.

Explore

  • Utilities — 15 categories, 1311 rules.
  • zRuntime — JIT CSS compiler, shorthand expander, and plugin API.
  • Guides — 8 shared concept guides in the sidebar.
  • Components — 51 component references in the sidebar.