What problem does it solve?
This Skill prevents inconsistent styling, hardcoded design values, fragile component patterns, and platform-specific layout issues in uniapp WeChat mini-program projects.
Core Features & Use Cases
- Design Tokens: Establishes a four-layer token architecture for themes, primitive values, semantic variables, and shared styling.
- Component Standards: Defines TypeScript prop patterns, typed emits, scoped SCSS, naming conventions, and reusable button component structures.
- Responsive Adaptation: Provides guidance for navigation bars, bottom safe areas, and HarmonyOS capability fallbacks.
- SCSS Utilities: Supplies color-scale functions and mixins for layouts, text truncation, cards, buttons, borders, and safe-area handling.
- Use Case: Apply the Skill when creating or refactoring a uniapp mini-program that needs centralized theming, maintainable components, and reliable device adaptation.
Quick Start
Ask the AI to apply the uniapp design system to a mini-program by defining its theme tokens, component conventions, and screen adaptation rules.