Saltar al contenido principal

Katana UI

:::warning Status Planned — design phase. This section describes an upcoming UI layer. No UI code ships in katanakit-js yet. The name Katana UI is provisional. :::

Katana UI is the planned UI kit for KatanaKit: design tokens, headless primitives, components, blocks, layouts and full application pages that reuse the toolkit's core services instead of rebuilding them.

Why a kit on top of the toolkit

KatanaKit already owns the invisible parts of a product — HTTP with Safe Results, storage strategies, reactive signals, theming, observers, sensors, workers and the AI assistant. Every dashboard, storefront and operational console needs exactly those capabilities on every screen. The kit exists so a team can assemble those screens from the same primitives the toolkit already guarantees.

Principles

PrincipleWhat it means
Framework-agnostic coreTokens, primitives and styles are vanilla TypeScript and CSS. Framework bindings are thin adapters.
Token-first stylingComponents consume CSS custom properties only. Tailwind and daisyUI are optional presets, never a requirement.
SSR-safeEvery module guards browser-only APIs and hydrates without layout shifts.
Tree-shakeablePer-component entry points and no side effects on import.
Accessible by defaultWCAG 2.2 AA target: semantics, focus management, keyboard flows, reduced motion.
Safe Result awareData-bound components speak the same { data, error, ok } contract as the HTTP client.

Relationship with the toolkit

UI needKatanaKit service
Tables, filters, paginationFetchApiManager, useGetApi
Theme switching and persistenceThemeService, useInitTheme
Remembered UI stateStorageService strategies
Reactive widgets and storesReactiveService signals
Lazy blocks, infinite scrollObserverService, LazyLoaderService
Device capabilitiesSensorsUtils, ViewportService
Chat and Gen-AI surfacesAssistantService, adapters/assistant
Heavy computationWorkerService
Formatting numbers, dates, currencyFormatterService, DatesService

Scope

  • Application pages — eight dashboard layouts, a landing page, ten e-commerce pages, a file manager, a chat app, a four-page Gen-AI app and the Agentic Storage UI.
  • Account flows — four auth pages, profile settings and a support/FAQ page.
  • Building blocks — a foundation component example, 15+ ready-to-use UI blocks, 50+ common layout examples and 100+ interaction examples with plugin integrations.
  • Theming — token-first themes with an optional Tailwind/daisyUI preset.
  • Charts — ApexCharts behind a swappable adapter.
  • LLM files — machine-readable artifacts so agents can consume the kit.

Out of scope

  • Backend and business logic (the kit consumes APIs, it does not own them).
  • Real datasets, seed content and domain-specific integrations.
  • Framework state managers (the reactive signals kernel covers the kit's needs).
  • Architecture — layers, theming, distribution and patterns.
  • Inventory — every planned page, block, layout and interaction.
  • LLM files — machine-readable artifacts for AI agents.
  • Roadmap — delivery phases and exit criteria.