协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
lynx-api-docs【开发与工程】Provides authoritative guidance for Lynx development involving pages, templates, components, CSS, layouts, elements, web migration, rendering or styling bugs, and code review. Applies to *.ttml, Lynx *.tsx, and all Lynx-specific files, and requires searching the installed API docs before acting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: lynx-api-docs description: Provides authoritative guidance for Lynx development involving pages, templates, components, CSS, layouts, elements, web migration, rendering or styling bugs, and code review. Applies to *.ttml, Lynx *.tsx, and all Lynx-specific files, and requires searching the installed API docs before acting.
Pre-training knowledge is insufficient for Lynx. Lynx is a rendering platform (like a browser) with its own elements, non-standard CSS behavior, unique layout systems, and web-incompatible defaults. Always retrieve from the installed API docs before writing or modifying Lynx page code.
MUST ALWAYS read the relevant API docs BEFORE writing or editing any Lynx code.
Do not rely on web CSS knowledge. Do not assume standard HTML behavior. Do not guess element APIs. Lynx is a distinct platform with its own rules.
Lynx is not a web browser. Web assumptions produce broken Lynx code:
<view>, <text>, <image> — not <div>, <span>, <img>border-box, no margin collapsing, Linear layout (not Flow)css/ docsEvery web assumption is a potential bug.
elements/ or css/ directories| Task | Read These Files First |
|---|---|
| Choose layout | layout/linear-layout.md (default), layout/flex-layout.md, layout/grid-layout.md, layout/relative-layout.md |
| CSS properties/units | css/supported-properties.md, css/values-and-units.md |
| CSS selectors | css/selectors.md, css/pseudo-classes.md |
| Use an element | elements/<element-name>.md |
| Migrate from web | lynx-vs-web/migration-guide.md, lynx-vs-web/css-differences.md |
| Theming/animation/responsive | patterns/theming.md, patterns/animation.md, patterns/responsive.md |
| General lookup | quick-reference.md, best-practices.md |
The compact layout decision rules and key CSS constraints are documented in quick-reference.md. Most critical:
<text> componentborder-box (not content-box)rem + vw for screen adaptation<div> or <span> → Lynx uses <view>, <text>margin without checking if margin collapsing applies → It doesn'tcontent-box → Default is border-boxcss/supported-properties.mdelements/<name>.mdrpx for web-portable code → rpx is Lynx-specific; use rem + vw for web compatibility<text> wrapper → Invalid in Lynxcss/pseudo-classes.md