Introduction
lh-ui-harmony is the HarmonyOS implementation of the lh-ui family's native bloodline: a UI component library built on ArkTS + ArkUI (native to HarmonyOS NEXT).
Position in the family
┌── web bloodline: share (TS core + SCSS) → plus / vue2 / react / uniapp
lh-ui family (one brand)├────┤
└── native bloodline: core (JSON tokens + specs + codegen) → android / ios / harmony / windows
↑ this repo- Build-time center:
lh-ui-coreis the native bloodline's token source of truth (tokens/*.json), component specs (specs/), golden cases (cases/), and codegen tooling. It generates the ArkTS token skeletons (LhTokens/LhDarkTokens/LhShadow) and no component implementations whatsoever. - This repo's responsibilities: hand-written ArkUI components, theme integration (AppStorage injection), props enums and default-value binding, and translating golden cases into hypium tests.
- Fully independent from the web bloodline: it does not depend on
@lh-ui/share, and releases constrain each other in no way. Visual consistency is kept by manually aligning against the Design Language Baseline.
Design language
Chinese-style theme: 青花瓷 (ceramic blue) primary color (#2B4C7C), 宣纸白 (rice-paper white) background (#FAF6F0), 松花绿 (pine-flower green) for success, 藤黄 (gamboge) for warning, 朱砂 (cinnabar) for danger, and a serif font stack (Noto Serif SC → STSong → SimSun). Every visual value is a token; no literal values appear inside components.
Why ArkUI
- First-class declarative UI of HarmonyOS NEXT, mentally isomorphic to Compose / SwiftUI, so cross-platform specs are easy to align
- No web runtime, no HTML/CSS bridging — native performance
- Distributed via ohpm (HAR/HSP), integrated in one step from DevEco Studio
Current status
- button full-pipeline reference implementation delivered (token consumption + resolveAppearance styling + ArkUI component + hypium tests + entry demo app + docs site)
- The remaining 13 P0 components (icon / input / textarea / cell / checkbox / radio / switch / tag / dialog / toast / loading / picker / navbar) will follow the same paradigm

