hai-ui

Build cross-platform UIs with Svelte 5 Runes, DaisyUI, and Tailwind CSS.

3|7|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hai-series/hai-framework --skill hai-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hai-ui
Source: https://github.com/hai-series/hai-framework/tree/main/packages/cli/templates/skills/hai-ui
Command: npx skills add https://github.com/hai-series/hai-framework --skill hai-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

跨端应用的 UI 开发常常缺乏统一的组件库、设计规范和本地化支持,导致界面不一致、维护成本高。

Core Features & Use Cases

提供三层组件架构(原子/组合/场景),基于 DaisyUI v5 + Tailwind CSS v4 + Bits UI 的多端 UI 实现,具备 32 种主题、内置 i18n、Design Token 系统和移动端适配能力,适用于管理后台、移动端界面和跨端应用场景。

Quick Start

将 hai-ui 引入你的项目并在页面中直接使用原子组件开始构建跨端界面。

Frequently Asked Questions about hai-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build consistent cross-platform user interfaces with Svelte 5?

Build cross-platform user interfaces with Svelte 5 by adopting a type-safe component library that enforces consistency through a three-layer architecture, design tokens, and platform detection. This approach standardizes web and mobile interfaces while reducing maintenance costs.

What is the best way to manage design consistency and i18n across web and mobile apps?

Managing design consistency and i18n across web and mobile apps requires a unified component library with a built-in design-token system and native internationalization support. This setup ensures visual coherence and localized content across all platform endpoints.

Does this UI library work with DaisyUI v5 and Tailwind CSS v4?

Yes, this UI library works directly with DaisyUI v5 and Tailwind CSS v4, integrating them alongside Bits UI and Svelte 5 Runes. These dependencies form the foundational styling and logic layer for the cross-platform components.

How do I structure frontend components for cross-platform applications using a three-layer architecture?

Structure frontend components for cross-platform applications by dividing them into primitives, compounds, and scenes. This three-layer architecture isolates basic elements from complex combinations and full page layouts to maintain scalability and consistency.

Can I use automatic imports and design tokens to enforce UI accessibility across different platforms?

Yes, you can use automatic imports and a design-token system to enforce UI accessibility and consistency across different platforms. Platform detection automatically applies the correct tokens and component behaviors for web and mobile environments.