maooo-skyline-ui-system 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/miniprogram_dist/ai-design-system/DESIGN.md +73 -0
  2. package/miniprogram_dist/ai-design-system/component-registry.json +684 -0
  3. package/miniprogram_dist/ai-design-system/component-schemas/button.schema.json +59 -0
  4. package/miniprogram_dist/ai-design-system/component-schemas/calendar.schema.json +143 -0
  5. package/miniprogram_dist/ai-design-system/component-schemas/card.schema.json +24 -0
  6. package/miniprogram_dist/ai-design-system/component-schemas/countdown.schema.json +37 -0
  7. package/miniprogram_dist/ai-design-system/component-schemas/form-group.schema.json +55 -0
  8. package/miniprogram_dist/ai-design-system/component-schemas/form-input.schema.json +27 -0
  9. package/miniprogram_dist/ai-design-system/component-schemas/form-textarea.schema.json +22 -0
  10. package/miniprogram_dist/ai-design-system/component-schemas/form.schema.json +19 -0
  11. package/miniprogram_dist/ai-design-system/component-schemas/icon.schema.json +33 -0
  12. package/miniprogram_dist/ai-design-system/component-schemas/image-cropper.schema.json +71 -0
  13. package/miniprogram_dist/ai-design-system/component-schemas/input.schema.json +89 -0
  14. package/miniprogram_dist/ai-design-system/component-schemas/media-upload.schema.json +200 -0
  15. package/miniprogram_dist/ai-design-system/component-schemas/navbar.schema.json +72 -0
  16. package/miniprogram_dist/ai-design-system/component-schemas/notify.schema.json +83 -0
  17. package/miniprogram_dist/ai-design-system/component-schemas/oss-upload.schema.json +113 -0
  18. package/miniprogram_dist/ai-design-system/component-schemas/popup-page.schema.json +112 -0
  19. package/miniprogram_dist/ai-design-system/component-schemas/popup.schema.json +35 -0
  20. package/miniprogram_dist/ai-design-system/component-schemas/progress.schema.json +53 -0
  21. package/miniprogram_dist/ai-design-system/component-schemas/rate.schema.json +58 -0
  22. package/miniprogram_dist/ai-design-system/component-schemas/stepper.schema.json +60 -0
  23. package/miniprogram_dist/ai-design-system/component-schemas/switch.schema.json +39 -0
  24. package/miniprogram_dist/ai-design-system/component-schemas/textarea.schema.json +58 -0
  25. package/miniprogram_dist/ai-design-system/component-schemas/toast.schema.json +36 -0
  26. package/miniprogram_dist/ai-design-system/component-schemas/upload.schema.json +84 -0
  27. package/miniprogram_dist/ai-design-system/manifest.json +114 -0
  28. package/miniprogram_dist/ai-design-system/patterns/README.md +17 -0
  29. package/miniprogram_dist/ai-design-system/patterns/card-list.md +26 -0
  30. package/miniprogram_dist/ai-design-system/patterns/form-section.md +23 -0
  31. package/miniprogram_dist/ai-design-system/patterns/navigation-tabbar.md +21 -0
  32. package/miniprogram_dist/ai-design-system/prompts/page-generation.prompt.md +16 -0
  33. package/miniprogram_dist/ai-design-system/references/figma-user-client-visual-evidence.md +103 -0
  34. package/miniprogram_dist/ai-design-system/schemas/component.schema.json +58 -0
  35. package/miniprogram_dist/ai-design-system/schemas/page.schema.json +39 -0
  36. package/miniprogram_dist/ai-design-system/schemas/theme.schema.json +19 -0
  37. package/miniprogram_dist/ai-design-system/tokens.json +128 -0
  38. package/miniprogram_dist/index.js +1 -1
  39. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ # Maooo Design System
2
+
3
+ This is the single design-language entry for the `maooo-design` Skyline UI system. Read this file first before using prompts, skills, token source files, patterns, schemas, or component contracts.
4
+
5
+ ## Design Personality
6
+
7
+ Maooo uses a warm, pet-service-oriented visual language: soft pink brand emphasis, high-contrast black text, light neutral surfaces, rounded cards, and clear service-state colors. The interface should feel friendly and reliable without becoming decorative or marketing-heavy.
8
+
9
+ ## Visual Principles
10
+
11
+ - Use existing token source before creating any new visual value.
12
+ - Keep page backgrounds light and quiet; use pink primarily for brand actions and light emphasis.
13
+ - Use explicit text colors for selected, disabled, active, and similar states.
14
+ - Do not use `color: inherit;` in component or demo WXSS.
15
+ - Treat component dimensions in design boards as evidence until they are confirmed as reusable component contracts.
16
+ - Keep Skyline compatibility in mind: prefer scoped styles, stable structure, and `scroll-view` for page scrolling.
17
+
18
+ ## Core Foundations
19
+
20
+ | Area | Source | Notes |
21
+ | --- | --- | --- |
22
+ | Color | `design-system/tokens/source/color.json` | Semantic text, background, brand, amount, gender, border, and status values. |
23
+ | Typography | `design-system/tokens/source/typography.json` | System font by default; visually aligns with `PingFang SC`; numeric evidence references `MiSans`. |
24
+ | Spacing | `design-system/tokens/source/spacing.json` | Machine-readable spacing scale. Figma page margin evidence is not automatically a new token. |
25
+ | Radius | `design-system/tokens/source/radius.json` | Includes none, sm, md, lg, xl, and pill. Circular avatars/buttons keep using `50%`. |
26
+ | Shadow | `design-system/tokens/source/shadow.json` | Reusable shadow source. Figma guide-line shadow is board evidence only. |
27
+
28
+ ## Evidence Index
29
+
30
+ | Source | Location | Purpose |
31
+ | --- | --- | --- |
32
+ | Figma user-side UI guideline | `design-system/references/figma-user-client-visual-evidence.md` | Raw visual evidence tables for color, typography, spacing, radius, shadow, layout, and component style. |
33
+ | MasterGo color board | fileId `195541105840652`, layerId `41:3015` | Current token color and typography mapping evidence. |
34
+ | MasterGo radius board | fileId `195541105840652`, layerId `9:2754` | Current radius scale evidence. |
35
+
36
+ Figma component-size evidence, such as button heights, TabBar size, icon sizes, and tag dimensions, should guide component review but must not be copied into global tokens or component APIs without a dedicated follow-up change.
37
+
38
+ ## Pattern Index
39
+
40
+ | Pattern | File | Use |
41
+ | --- | --- | --- |
42
+ | Navigation TabBar | `design-system/patterns/navigation-tabbar.md` | Bottom navigation geometry, states, icon/text relationship, and shadow evidence. |
43
+ | Card List | `design-system/patterns/card-list.md` | Repeated card/list layout and evidence-backed card styling notes. |
44
+ | Form Section | `design-system/patterns/form-section.md` | Form grouping, text hierarchy, scrolling, and token reading order. |
45
+
46
+ Single-component details remain governed by `packages/ui/component-registry.json` and each component `schema.json`. Figma evidence for Button, Icon, Avatar, Tag, Checkbox, Radio, and Rate remains in references until a component contract change is explicitly planned.
47
+
48
+ ## Repository Mapping
49
+
50
+ - `design-system/DESIGN.md` is the only human and Agent design-language entry.
51
+ - `design-system/tokens/source/*.json` is the machine-readable token source.
52
+ - `npm run build:token` merges token source into `design-system/tokens/build/tokens.json`.
53
+ - `packages/theme/src/tokens.ts` and `packages/theme/theme.wxss` are runtime theme artifacts that must stay consistent with token source after token changes.
54
+ - `packages/ui/component-registry.json` owns cross-component reuse, layering, and composition decisions.
55
+ - Each component `schema.json` owns that component's public API.
56
+
57
+ Compatibility notes:
58
+
59
+ - `color.brand.text`, `palette.brown.1`, and older brand-support colors remain for historical compatibility.
60
+ - New components should prefer semantic text, background, status, amount, and gender tokens.
61
+ - `color.text.active` remains as a compatibility alias matching `color.text.amount`.
62
+
63
+ ## AI Reading Order
64
+
65
+ 1. Read `design-system/DESIGN.md`.
66
+ 2. For exact token values, read `design-system/tokens/source/*.json`.
67
+ 3. For raw visual evidence, read `design-system/references/figma-user-client-visual-evidence.md`.
68
+ 4. For layout composition, read `design-system/patterns`.
69
+ 5. For page structure, read `design-system/schemas/page.schema.json`.
70
+ 6. For component capability, read `packages/ui/component-registry.json` and the target component `schema.json`.
71
+ 7. For generation instructions, read `design-system/prompts` and `design-system/skills`.
72
+
73
+ AI output should not bypass schema. Evidence from design boards should be marked as evidence until it is promoted into token source, pattern documentation, schema, or component registry.