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).
| Key | Path | Provides | Status |
|---|---|---|---|
kit | css/kit.min.css | Base stylesheet | required |
chart | css/chart.min.css | Optional CSS (pair with chart) | optional |
rte | css/rte.min.css | Optional CSS (pair with rte) | optional |
core | js/core.iife.js | Lit, FloatingUI, Base, Hwc, Controller, InputMixin, DropdownMixin, helpers | required |
essentials | js/essentials.iife.js | z-dialog, z-drawer, z-drop, z-accordion, z-switcher, z-lsh, tooltips, [data-toggle], [data-dismiss] | required |
runtime | js/runtime.iife.js | JIT CSS runtime (window.zRuntime) | optional |
toast | js/pack/toast.iife.js | window.zToast | optional |
select | js/pack/select.iife.js | z-select | optional |
cmd | js/pack/cmd.iife.js | z-cmd (bundles its own BaseSelectMixin, so it does NOT require the select pack) | optional |
date | js/pack/date.iife.js | z-calendar, z-input-date, z-input-time | optional |
inputs | js/pack/inputs.iife.js | z-input-pin, z-input-range, z-input-tag, z-kv | optional |
carousel | js/pack/carousel.iife.js | z-slider, z-slideshow | experimental |
lightbox | js/pack/lightbox.iife.js | z-lightbox | optional |
scroll | js/pack/scroll.iife.js | z-sticky, z-scrollspy | optional |
lists | js/pack/lists.iife.js | z-filter, z-sortable | optional |
icon | js/pack/icon.iife.js | z-icon, window.zLucide (Lucide icons) | optional |
chart | js/pack/chart.iife.js | z-chart, window.zApexCharts (ApexCharts) | optional |
rte | js/pack/rte.iife.js | z-rte (TipTap rich text editor) | optional |
For Agents & LLMs
Static Markdown and JSON artifacts served directly from public/.
| Resource | Description | Actions |
|---|---|---|
llms.txt | Master index linking every component, utility, runtime, guide, and registry JSON. | |
llms-full.txt | Complete Markdown bundle with all guides and all components. | |
llms-css.txt | Scoped Markdown bundle for CSS-only components. | |
llms-controllers.txt | Scoped Markdown bundle for controller components. | |
llms-hwc.txt | Scoped Markdown bundle for HTML Web Components (HWC). | |
llms-utilities.txt | Complete CSS utility reference in Markdown. | |
llms-runtime.txt | Complete zRuntime API, tokens, plugins, and custom rules reference in Markdown. | |
registry/index.json | Structured index of all components, icons, and CSS variables. | |
registry/assets.json | Versioned CSS/JS bundle manifest (load order, packs, and status flags). | |
vscode.html-data.json | VS Code HTML custom data for z-* elements and attributes. |