Buttons, Badges & Native Dropdown
@layer zokeibi.*, color-mix(in oklch, ...), and Top-Layer [popover].
Zokeibi (kongono/zokeibi) is a standalone UI component framework and pure PHP 8.5 OKLCH CSS tree-shaker with zero runtime Composer dependencies and zero Node.js. Ship 55 accessible components, 8 turnkey SaaS blocks, pure-SVG charts, DTO-to-UI generators, a local Design Token Studio, and automated Grade A+ WCAG & CSP proofs — on Kongono or any HTML stack.
composer require kongono/zokeibi
This page is styled with Zokeibi's own compiled zokeibi.min.css and zokeibi-runtime.js under strict style-src 'self' CSP. Click the theme pills above or interact with every component below.
@layer zokeibi.*, color-mix(in oklch, ...), and Top-Layer [popover].| Component | Category | JS Requirement | Proof Score |
|---|---|---|---|
<x-ui.chart> | Data (Bar, Donut, Sparkline) | 0 B JS | 100 |
<x-ui.dropdown> | Overlays (Top-Layer Popover) | 0 B JS | 100 |
<x-ui.tree> | Navigation (Native <details>) | 0 B JS | 100 |
<x-ui.accordion> | Navigation (Exclusive <details>) | 0 B JS | 100 |
<x-ui.editor> | Forms (XSS-Safe Split Markdown) | Runtime | 100 |
<x-ui.date-range> | Forms (Interactive Range Calendar) | Runtime | 100 |
<x-ui.command-palette> | Overlays (Cmd+K Launcher) | Runtime | 100 |
Install only what you use (zokeibi add ...) or everything at once (zokeibi add --all). Every component is 100% MIT licensed and copied directly into your codebase with zero black-box vendor lock-in.
Primary, outline, emerald, danger, and ghost variants with OKLCH hover states.
Semantic status pills with optional pulse dot indicator.
Structured surface with kicker, header, body, footer, and featured highlight.
Accessible status/error callouts for info, success, warning, and danger.
Tactile keyboard shortcut keycaps.
Image or initial fallback avatars with presence dot.
Overlapping team avatar stacks with automatic +N overflow pill.
Masked API key / secret reveal + one-click clipboard copy with ARIA feedback.
Reduced-motion-aware pure CSS loading spinner.
Horizontal, labeled, or vertical hairline separators.
Filename/language header bar with strict-CSP copy button.
Dismissible full-width announcement & release notice strip.
Labeled text/email/url field with hint and validation error state.
Inputs with prefix/suffix addons (https://, USD, .com).
Accessible −/+ numeric stepper honoring min, max, and step.
Show/hide reveal toggle + live 4-segment strength meter.
Native select styled consistently across dark/light OKLCH themes.
Multi-line text input with label, hint, and error feedback.
Pure CSS :has() toggle switch with smooth thumb transition.
Accessible custom checkbox with optional description text.
Selectable radio cards powered by CSS :has(:checked).
Searchable ARIA single-select dropdown with hidden value binding.
Filterable multi-select tag combobox emitting array form inputs.
Free-form Enter/comma tag chip builder with Backspace removal.
Drag-and-drop file upload zone listing selected file names & sizes.
Native date input enhanced with quick relative offset presets.
Interactive month grid calendar with start/end range highlight & presets.
Range slider with live unit-formatted readout.
6-digit verification code inputs with paste distribution & auto-advance.
XSS-safe split Markdown editor using safe DOM creation (zero innerHTML).
Pure CSS radio star rating input (zero JavaScript).
Pure server-rendered SVG Bar, Donut, and Sparkline charts.
Responsive table with instant search filtering and numeric/text column sort.
Executive metric tiles with delta indicators and accent tones.
Native <progress> bar styled with semantic OKLCH tokens.
Shimmer placeholders for text lines, circles, and cards.
Focused zero-data callout with primary and secondary actions.
Vertical audit log & activity feed timeline.
Structured key/value metadata grids (1, 2, or 3 columns).
Smooth CSS scroll-snap horizontal showcase strip.
ARIA tablist + tabpanels with live selection state.
Native HTML <details name="..."> exclusive accordions.
Multi-step onboarding and checkout progress rail.
Accessible page navigation with prev/next and current-page state.
Semantic <nav aria-label="Breadcrumb"> hierarchy trail.
Compact segmented radio/link mode switcher.
Grouped workspace navigation rail with item counters.
Nested directory/file tree built on native <details> elements.
Native HTML Top-Layer [popover] action menu with shortcuts.
Native Top-Layer floating info card with @starting-style animation.
Pure CSS hover and focus-visible hint bubble.
Accessible modal dialog with Esc, backdrop click, and focus shift.
Slide-over panel for detail editors and inspectors.
Dismissible live-region notifications for async feedback.
Global Cmd+K / Ctrl+K keyboard command launcher.
Full workspace shell with sidebar, topbar, Cmd+K, and content frame.
Strict-CSP login, passkey, and OTP sign-in page.
Workspace profile, plan usage, and invoice table layout.
Three-tier SaaS pricing comparison with highlighted pro card.
Guided first-run checklist and stepper page.
Clean 404 / 500 error page with KGN-* incident reference.
KPIs, pure-SVG charts, date-range picker, and sortable table.
Masked token management, copy fields, and security audit timeline.
Zero Node.js, zero PostCSS, zero Vite plugins required. Compile OKLCH CSS, scaffold DTO forms and tables, launch the local Token Studio, and mathematically prove accessibility & bundle budgets from one PHP binary.
composer require kongono/zokeibi
# Initialize project tokens (zokeibi.json)
php vendor/bin/zokeibi init --theme=sumi
# Copy owned <x-ui.*> templates into views/components/ui/
php vendor/bin/zokeibi add button card chart editor tree password-input
php vendor/bin/zokeibi block add saas-shell analytics-dashboard
# Generate forms & sortable tables directly from PHP 8.5 DTOs
php vendor/bin/zokeibi form App\\Dto\\CreateOrderInput --out=views/orders/form.kgn.html
php vendor/bin/zokeibi table App\\Dto\\OrderRow --out=views/orders/table.kgn.html
# Pure PHP CSS tree-shaker + optional 1.5 KB strict-CSP runtime
php vendor/bin/zokeibi build --views=views --out=public/assets/zokeibi.min.css
php vendor/bin/zokeibi runtime --out=public/assets/zokeibi-runtime.js
# Local OKLCH Design Token Studio GUI (with Live Hot-Swap Sync)
php vendor/bin/zokeibi studio --dir=. --port=8101
$ php vendor/bin/zokeibi prove --dir=. --views=views --strict
Zokeibi (造形美) UI Proof Certificate — Grade A+ (100/100 · PASS · 20.7 ms)
[1] WCAG 2.1 AA Contrast: PASS (100/100 · 2 theme(s) checked)
[2] UI Schema & CSP Audit: PASS (100/100 · 58 file(s), 0 err, 0 warn)
[3] Gzip CSS Budget: PASS (100/100 · 9.40 KB / 10.00 KB max · 55 components)
kongono_zokeibi_registryExposes your app's zokeibi.json, installed <x-ui.*> templates, prop enums, and SaaS blocks over stdio MCP so Cursor, Claude Code, Codex, and Antigravity generate 100% schema-valid UI.
kongono/zokeibi requires only PHP >= 8.5.13 with zero runtime Composer dependencies. Use it directly with Kongono Live 2.5 or export tokens and tree-shake .z-* classes across HTML, HTMX, Twig, Blade, React, Vue, and Svelte.
Scans .kgn.html, .html, .php, .twig, .blade.php, .jsx, .tsx, .vue, and .svelte for both <x-ui.*> tags and .z-* classes.
Run zokeibi export --format=w3c-tokens for Figma/Design Tokens or --format=tailwind for Tailwind v4 @theme blocks.
Drop zokeibi-runtime.js into plain HTML or HTMX apps for modals, drawers, Cmd+K, comboboxes, date ranges, sortable tables, and safe Markdown preview.
Opened purely via data-z-open="#demo-modal" with zero inline JavaScript and zero inline styles. Press Esc or click the backdrop to close.
All 55 Zokeibi components share this exact zero-bloat, strict-CSP architecture.