The component gallery and AI skills guide are live. See the changelog.Changelog →

/api · tooling layer

Enterprise Engine Spec

API & Tools

Tooling layer (not the component supermarket). Runtime contracts for theme, i18n, errors, time, storage, and neumorphism.

6 core protocols·Type-safe by default·UTC+8 display rule

Theme tokens

Theme Tokens

Core 01

Core:AppTheme / BrandTheme / SceneStyle / ThemeMode

Multi-scene theme engine — color, radius, type scale hot-reload.

val currentTheme = AppTheme.current.sceneStyle
Dynamic stateTheme guide →

i18n

Internationalization

Core 02

Core:tr() · StringCatalog

UI must not hardcode CJK — keys + catalogs only.

Text(tr(OrderStrings.TITLE))
Locale catalogsi18n guide →

Errors

Error model

Core 03

Core:AppError · UserMessageResolver

User-safe messages only — never raw stacks.

UserMessageResolver.resolve(error)
Safe messagingLearn more →

Time

Display time

Core 04

Core:Asia/Shanghai · docs/140

Never show raw epoch in UI — Beijing time strings.

formatBeijing(instant)
UTC+8 displayLearn more →

Storage

Ports

Core 05

Core:KeyValueStore / SecureStore

No plaintext secrets in plain KV.

secureStore.put(token)
Secure portsLearn more →

Neumorphism

Visual protocol

Core 06

Core:NeoConvexCard / VisualEffects

Convex / concave / CTA glow — docs/127.

NeoConvexCard { … }
Visual protocolLearn more →