Merge PR 7474 UI design references into UI refinements

This commit is contained in:
yixiangihsiang committed 2026-10-28 21:05:01 +08:00
commit 1f4249a0df
32 files changed
+346 -314

No files matched your search

+59 -49
View File
@@ -1,32 +1,51 @@
---
name: dsh-client-ui-ux
description: Use before implementing any DSH user-visible UI change and during UI review, including layout, copy, icons, styling and interaction states in client, experimental and app packages. Select applicable rules before coding and verify the affected rendered relationships before handoff.
description: "Design and review DSH user-visible UI: alignment, spacing, icons, visual foundation, geometry and interaction. Use before UI changes in client, experimental and app packages; verify affected rendered results before handoff."
---
# DeepSeek Harness UI development
Use this entry before changing UI. It owns the development workflow, visual foundation, component geometry, and interaction guidance; linked owners supply specialized design rules. Apply the guidance to the user task, not as an exhaustive checklist. Existing repository rules and named exceptions govern values; cases explain judgment and do not define coverage.
Use this skill as the entry point for UI design and review. It owns the workflow, visual foundation, geometry and interaction guidance; alignment, spacing and icon details live in its references below. Load only the references relevant to the task; examples explain judgment, not coverage.
## Required review loop
<a id="required-review-loop"></a>
## UI change workflow
Layout, copy, icons, styling and interaction changes trigger this loop without a separate review request. Behavior-only edits include affected loading, error, disabled, expanded and focus states. Documentation-only changes and refactors with evidence of unchanged rendering do not need new captures; state that basis.
Use applicable design rules for UI changes, including visible loading, error, disabled, expanded and focus states. Choose effort by impact and regression risk; ordinary development does not require a full design audit.
1. **Before coding, make the design decisions.** Name the user task, affected page or modal, semantic groups, shared alignment references and intended group separation. Select existing components and variants, read applicable owners below, and identify relevant states and consumers using the [impact scope](../../../docs/cookbook/reviewing-ui-design.md#review-scope). Record these choices and planned evidence in a few task-note sentences. Preserve starting source and images; uncommitted UI is not represented by `HEAD`. New UI can use a sketch and established sibling as its starting reference; label them honestly.
2. **Implement using those decisions.** Reuse the selected components and existing values. Check group structure and shared axes before optical detail. Expand scope when a shared consumer, neighbor or state can change. Batch coherent edits before recapturing; do not run a full-product audit for each CSS change.
3. **Before completion, inspect the final rendered result.** Verify affected relationships and behavior in the assembled page or modal, retain comparable before/after evidence for changed positions, and run relevant repository checks. Distinguish inspected, equivalent-by-evidence, unresolved and uninspected scope. Missing required scenes, unresolved defects or failing checks prevent a complete-validation claim; state the gap and next verification.
4. **Before PR or push, reconcile the cumulative diff.** Check overlapping edits and missing coverage. Reuse evidence while source, dependencies, content, states and capture conditions remain valid; rerun only invalidated or missing checks. Deliver scope, decisions, evidence, results and material gaps.
| Change | Required inspection | Additional records |
|---|---|---|
| Local copy, icon reuse, color or spacing | Inspect the actual page, affected neighbors and relevant states; run applicable tests. Apply the minimum checks below. | Briefly report results and material gaps. No separate plan, axis drawing, scene inventory, source snapshot or screenshot report is required by default. |
| Page layout, shared components or global styles | Identify affected relationships and consumers; inspect distinct affected layout, content and state variants in assembled pages. Reuse evidence only for justified equivalents. | Briefly state scope. Preserve the starting version and comparable images when requested or needed to explain broad changes or assess regression risk. |
| Explicit comprehensive review | Cover the agreed regions and relevant states; distinguish inspected results, defects and uninspected scope. | Use the [review cookbook](../../../docs/cookbook/reviewing-ui-design.md) for coverage records, findings and supporting evidence. A comparison request alone does not require a product-wide audit. |
Keep the record in the task or local artifacts, not a new tracked checklist per edit. Load applicable owners once while unchanged; retrieve examples only for uncertain decisions. Choose conditions by risk, not every width × theme × state combination or a fixed screenshot count. The [review cookbook](../../../docs/cookbook/reviewing-ui-design.md) owns detailed evidence procedures. Tool success does not judge visual quality.
### Minimum checks for affected UI
These checks apply even to small changes; optional documentation does not make inspection optional. Open the actual page and inspect the changed element with its directly affected neighbors, rather than judging CSS or an isolated component alone.
- **Color or opacity:** inspect light and dark themes, including affected foreground/background and state combinations.
- **Layout, spacing, typography or sizing:** inspect a constrained container and long or wrapping content; check both sides of a changed breakpoint, alignment, clipping and access to actions.
- **Interaction:** exercise the changed path and affected focus, disabled, loading, error, expanded and overlapping states. Check only states the change can affect, not every possible combination.
- **Shared components or global styles:** trace affected consumers and inspect distinct assembled layouts and states; one isolated example cannot establish coverage.
If a required scene is unavailable, state what was not checked, why and how it can be verified; a labeled production-component fixture can provide partial evidence, not an actual-page pass. Do not claim verification complete while required checks remain missing. Run the original applicable tests; source inspection and passing tests alone do not establish the rendered result.
Read unchanged owners once; consult examples for uncertain judgments. Inspect relevant states and actual usage sizes, not a fixed screenshot count or every width × theme × state combination. Batch related edits and reuse a current application instance and valid evidence. Documentation-only changes and refactors with evidence of unchanged rendering need no new UI captures; state that basis.
When a before/after comparison is needed, preserve the actual starting implementation, including uncommitted work, and use comparable capture conditions. Never recreate a missing before image and present it as an original. Protect existing work regardless of whether extra evidence is needed.
Before handoff, review or push, check only new cumulative interactions, missing required checks and invalidated evidence; do not repeat completed verification at each stage. Report results and material gaps accurately. Do not claim full coverage or visual acceptance when required scenes or checks are missing.
These effort levels change only the additional design-review procedure. Existing [client test requirements](../../../packages/client/AGENTS.md), [GUI PR GIF requirements](../record-browser-gif/SKILL.md#every-gui-pull-request-includes-a-gif), and [designer/product approval](#design-review-escalation) still apply, including to local changes when their original triggers are met.
## Select the rule owners
For layout and grouping changes, read alignment and spacing directly before positioning elements. For other changes, read their applicable owners and preserve existing relationships. Each row has one responsibility; do not copy numeric scales between them.
For layout changes, read the alignment and spacing references; for icon selection, drawing or review, read the icon reference. Other tasks use the relevant sections below. Do not load all references by default. Existing responsive and official-artwork skills retain their scopes; numeric scales stay with their implementation owners.
| Decision needed before implementation | Owner |
| Decision needed before implementation | Section or reference |
|---|---|
| Shared axes, text starts, centering, tree indentation, complete icon boxes | [Alignment](../dsh-ui-alignment/SKILL.md) |
| Semantic groups, inner/outer gaps, repeated rhythm, section separation | [Spacing and grouping](../dsh-ui-spacing/SKILL.md) |
| Interface icon selection, drawing, supplied-artwork normalization, style, optical weight, icon/label color | [Icons](../dsh-ui-icons/SKILL.md) |
| Shared axes, text starts, centering, tree indentation, complete icon boxes | [Alignment](references/alignment.md) |
| Semantic groups, inner/outer gaps, repeated rhythm, section separation | [Spacing and grouping](references/spacing.md) |
| Interface icon selection, drawing, supplied-artwork normalization, style, optical weight, icon/label color | [Icons](references/icons.md) |
| Color, typography and existing treatments | [Visual foundation](#visual-foundation); [Web styling](../../../docs/web-styling.md) owns tokens/materials |
| Component geometry, nested contours and state fills | [Geometry decisions](#component-geometry); [radius standard](../../../docs/ui-radius.md) owns values and exceptions |
| Feedback lifetime, loading, overlays, scrolling and platform clearance | [Interaction and feedback](#interaction-and-feedback); [error handling](../dsh-error-handling/SKILL.md) owns failure guarantees |
@@ -37,73 +56,64 @@ For layout and grouping changes, read alignment and spacing directly before posi
## Reuse before adding
Extend the existing component, container or interaction when the new capability fits it. An extra menu item or primitive prop usually belongs in that owner. Right-sidebar content registers in the existing sidebar. Reuse existing icons first; follow the [icon owner](../dsh-ui-icons/SKILL.md#reuse-existing-icons-first) to decide when a new drawing or normalization is needed.
Before restructuring components, read [client instructions](../../../packages/client/AGENTS.md) and [client defensive patterns](../../../docs/defensive-patterns/client-components.md) for slots, props, state flow, effects and layering.
Extend existing components, containers and interactions when the capability fits. Register right-sidebar content through a slot in the existing sidebar; do not create a separate sidebar. Follow [icon reuse](references/icons.md#reuse-existing-icons-first). Before restructuring, read [client instructions](../../../packages/client/AGENTS.md) and [client defensive patterns](../../../docs/defensive-patterns/client-components.md) for component/state ownership and layering.
## Visual foundation
- **Use existing tokens for color, radius, and spacing.** Before introducing a literal value, search the target page and its nearest established sibling (the Plugins page is the usual reference for full-page surfaces) for the token or value already in use, and adopt it. The same applies to whole treatments — toasts, menus, in-message artifact previews, sidebar tab layout, colors, clearance rules, page padding: reuse the established component or rule wherever one exists instead of inventing a parallel one.
- **Verify every color in both light and dark mode.** An ink/background pair must stay readable under both themes before it ships. Dimmed tones are the standing counter-example: they suit decorative surfaces, but on text they routinely fall below readability in one theme — never put a dimmed color on text without checking both.
- **Font weight tops out at 500 in feature CSS you add or change.** Do not use 600+ for emphasis; differentiate with size or ink instead. The markdown typography tokens owned by ui-theme are the standing exception.
- **Pick font sizes from the theme typography variables when an existing role matches, otherwise from the page's existing scale.** Parallel content shares one size; never invent a size for a single element, and keep the number of distinct sizes on a page small (13px is the established row/detail size). When the page itself has no precedent, borrow the size and spacing ratios of the most similar existing page or element.
- Apply [alignment](../dsh-ui-alignment/SKILL.md) to icon/text positioning and the [same-color rule](../dsh-ui-icons/SKILL.md#placement-and-use) to associated icons and text, including value chevrons and search prompts.
- Reuse tokens, values and complete treatments from the target page or nearest established sibling before adding literals; Plugins is the usual full-page reference.
- Verify colors in light and dark themes; keep ink/background pairs readable, especially dimmed text.
- Feature CSS you add or change uses **font weight ≤500**; emphasize with size or ink. ui-theme markdown typography tokens are the exception.
- Use theme typography roles, then the page's scale, then a comparable page's size/spacing ratios. Do not invent a size for a single element. Peers share sizes; keep the scale small (13px is the established row/detail size).
- Apply [alignment](references/alignment.md) and the [same-foreground rule](references/icons.md#placement-and-use) to icon/text relationships, including value chevrons and search prompts.
## Component geometry
Choose the component's role, reuse its size variant, then identify how it relates to its container. Compare height, radius, curve, inset and visible material together. Equal radius values alone do not make neighboring controls coherent; wrapping or expansion alone does not select a larger radius. Use the [radius scale and component exceptions](../../../docs/ui-radius.md#radius-scale) for actual values.
Choose component role and size variant, then its container relationship. Compare height, radius, curve, inset and material together; equal radii alone do not establish coherence, and wrapping/expansion alone does not justify larger radii. [Radius standards](../../../docs/ui-radius.md#radius-scale) own values and exceptions.
- **Inset surface:** coordinate the inner curve with the outer curve and inset. Radius subtraction gives concentric circular arcs; for superellipses it is a nominal sizing rule, so inspect diagonal whitespace as well as the side gap.
- **Flush fill or adjoining segments:** let the enclosing surface own exposed corners and keep internal joins square. Hover fills and pseudo-elements follow that contour. Keep menus outside clipping and retain visible keyboard focus.
- **Independent child card or form group:** choose its own role and size tier. Do not subtract all parent padding or give it the enclosing dialog's radius.
- **Circles and capsules:** preserve their intended shape, including both an avatar container and its image. Follow the theme's round-curve exception; ordinary controls use the shared curve.
- **Inset:** coordinate inner/outer curves and inset. Radius subtraction is exact for concentric circular arcs; for superellipses, subtraction is only a nominal sizing rule, so inspect diagonal whitespace as well as side gaps.
- **Flush or adjoining:** the enclosure owns exposed corners; internal joins stay square. Hover fills and pseudo-elements follow that contour without clipping menus or focus.
- **Independent child card/group:** use its own role/size tier, not the dialog radius or subtraction of all parent padding.
- **Circles/capsules:** preserve shape, including avatar container and image, using the theme's round-curve exception; ordinary controls use the shared curve.
Keep geometry stable across hover, pressed, selected, loading and disabled states. Compare fills, strokes and overlays with the same silhouette. Use the existing [card and elevation materials](../../../docs/ui-radius.md#settings-cards); an elevation shadow already includes its neutral hairline, so adding another border doubles the edge. Preserve semantic state-colored borders.
Keep fills, strokes and overlays geometrically stable across hover, pressed, selected, loading and disabled states. Reuse [card/elevation materials](../../../docs/ui-radius.md#settings-cards): shadows already include neutral hairlines; retain semantic state-colored borders without doubling neutral edges.
Inspect related controls together at actual size, including small selection controls, in the affected themes and states. Check longer labels and narrow layouts when they change the composition. Existing radius, curve and elevation checks catch unsupported declarations; rendered comparison establishes whether the chosen values fit. The [geometry cases](../../../docs/ui-design-review-cases.md#geometry) illustrate this judgment. These decisions guide changes in scope; they do not call for a bulk restyling of existing components.
Compare related controls, including small selection controls, at actual size in affected themes/states and relevant long-label/narrow layouts. Static checks reject unsupported declarations; rendered comparison judges fit. Consult [geometry cases](../../../docs/ui-design-review-cases.md#geometry) when needed. Apply to scoped changes, not bulk restyling.
## Interaction and feedback
### Feedback surfaces
Apply [dsh-error-handling](../dsh-error-handling/SKILL.md#localized-actionable-visible-reports) to failure reports. Choose the surface by the lifetime of the message relative to the surface that produced it:
Follow [error handling](../dsh-error-handling/SKILL.md#localized-actionable-visible-reports). Choose feedback by message lifetime:
- **Transient operation outcomes use the app-wide Toast primitive**, not in-place notices, and the toast's state and rendering live in a host that outlives the reporting surface (a `shell.overlay` entry, as RowActionToast does) — a toast rendered by the panel itself unmounts with that panel. A deletion can close the panel or tab that requested it; only a toast held outside that surface survives the close. Report success and failure; do not report still-pending states.
- **A failed operation keeps the data visible.** A failed deletion keeps its row; the toast announces the failure. Never blank content to show an error for a transient operation.
- **In-place notices are for states tied to the surface itself**: a query failure with its Retry action, field validation on the form that owns the field. A populated panel keeps a compact notice beside its retained content; only an empty panel centers a full error state.
- **Error copy is plain language, and short.** No internal jargon or technical nouns unless an error code must be exposed for debugging. Prefer one clear sentence; anything explainable in two sentences must not grow into paragraphs. A Chinese notice of at most two sentences omits the trailing 句号(。). The notice must not break the existing layout — reserve its space or overlay it; never shift neighbouring elements.
- Transient success/failure uses the app-wide Toast, with state and rendering in a host that survives the reporting panel/tab, such as a `shell.overlay` entry. A deletion may close its source panel; a Toast owned by that panel would disappear with it. Do not toast pending states.
- Failed operations retain visible data; failed deletion keeps the row.
- Surface-owned failures use in-place notices: query failure with Retry or field validation. Keep a compact notice beside populated content; only empty panels center a full error state.
- Use short plain-language errors, preferably one sentence, without internal jargon except necessary diagnostic codes. Chinese notices of at most two sentences omit the trailing 句号(。). Reserve space or overlay notices so neighbors do not shift.
### Loading states
- Lists use their skeleton; every other page-level load centers a bare spinner. Never place a spinner in a corner of the page.
- One loading treatment per page/component — concurrent regions must not each flash their own style.
- No loading text unless the context needs it (narrow sidebars almost never do).
Lists use skeletons; other page-level loads center a bare spinner. Keep one loading treatment per page/component, including concurrent regions. Add loading text only when context requires it.
### Overlays and menus
Every menu, popover, and tooltip must be verified for all three before merge:
Before merge, verify every menu, popover and tooltip closes on outside click (and Escape when focusable), fits the viewport with an edge margin, and escapes ancestor clipping, containing blocks and neighbor coverage, using a portal to body when needed. Flip only into a side that fits; never oscillate when neither fits.
- **Dismissable**: outside click (and Escape where focusable) closes it.
- **Viewport-fitting**: it slides or flips to stay inside the window with an edge margin, and flips only into a side that actually fits (no oscillation when neither side fits).
- **Unclipped**: it escapes `overflow` ancestors and containing blocks (portal to body where needed) and is never covered by neighbouring elements.
Scrollbars stay inside their container: use the shared scrollbar styles rather than component-specific selectors, and verify the bar neither overflows the container nor gets clipped by its rounded corners or edges — keep a small inset instead of letting it sit flush against the container edge.
Use shared scrollbar styles and a small inset; bars must stay inside containers without being clipped by rounded corners or edges.
### Platform window adaptation
- Any new header element or full page must account for macOS and Windows window chrome. On macOS the titlebar clearance is `--dsh-frame-top-clearance`, consumed by Menu, Modal, and overlay primitives as their top safe margin — **never change the global variable to fix one page**. Add a scoped `[data-platform='darwin']` override on the page's own inset instead, and assert the override in the page's stylesheet spec.
- State the intended total offset (clearance + page inset) when reviewing, so two pages aligning to "the same top spacing" agree on the sum, not just one addend.
New headers/pages account for macOS and Windows chrome. Menu, Modal and overlay primitives consume `--dsh-frame-top-clearance`; fix local macOS insets with scoped `[data-platform='darwin']` overrides and stylesheet assertions, not global-variable changes. Review the total clearance + page inset.
## Check the rules together
Inspect the whole composition for context, then the affected cross-group and internal relationships, including distant peers and relevant expanded content. Match both endpoints of each shared axis. Compare complete icon boxes before optical adjustment; keep group separation clear. Geometry must preserve popup and focus visibility; spacing must retain field feedback; narrow layouts must retain actions and drafts. Inspect theme material and platform backdrop where affected. Full-interface claims require all their regions; a fixture or crop establishes only what it renders.
Inspect the composition, then affected internal/cross-group relationships, distant peers and expanded content. Match both endpoints of axes; compare complete icon boxes before optical adjustments. Preserve popup/focus visibility, field feedback, narrow-layout actions and drafts. Check affected theme materials/platform backdrops. Full-interface claims cover all regions; fixtures/crops establish only what they render.
## Maintain one owner per rule
Update the existing owner when a principle changes. Add a focused skill only when it makes a distinct implementation decision; otherwise extend an existing section or reference. Add one routing row here only for a new responsibility. Keep examples in the [case reference](../../../docs/ui-design-review-cases.md), linking to the owner instead of copying its rules. AGENTS files and PR workflows link to this loop and do not repeat its checklist.
Update the owning section or reference within this skill; do not expose its design specialties as separate skills. Keep examples in the [case reference](../../../docs/ui-design-review-cases.md); AGENTS and PR workflows link here instead of duplicating rules.
For a rule change, state applicability, decision, exceptions and observable verification in its owner; add or update a case that distinguishes a valid result from a plausible wrong fix. Search other owners for superseded statements. Declare whether existing consumers are being migrated or only future edits must comply. Rule edits do not establish that existing UI already conforms. Add a deterministic gate only for a mechanically decidable invariant; rendered judgment remains part of the development loop. Local review tools read these repository owners and retain the reviewed source and rule revisions; they do not maintain a second standards copy.
Rule changes state applicability, decisions, exceptions and observable verification; update a distinguishing case and remove superseded statements elsewhere. Declare migration versus future-edit scope without implying existing UI conforms. Automate only mechanically decidable checks. Local review tools consume repository rules and retain source/rule revisions rather than maintaining another standards copy.
## Design review escalation
Obtain designer or product review before landing new pages or interaction patterns, broad shared-component or global visual changes, and unresolved design tradeoffs. Routine local corrections use this loop without another human checkpoint. Explicit independent reviews and periodic human audits can widen scope and feed recurring misses into owning rules; neither replaces development-time decisions or creates an automatic schedule.
- A PR with extensive UI changes, or any clearly user-perceivable change to UI or interaction, must get a designer or product review. When no approver holds that role, suggest requesting one from the design/product reviewers (roster as of 2026-09: yx zhang, yifffan, zhangziya, gaokaige; update this list here when membership changes).
@@ -0,0 +1,32 @@
# UI alignment
Apply within the [UI development loop](../SKILL.md#required-review-loop). Align comparable peers, including slots for optional icons and actions.
## Layout structure first, visual calibration second
Distinguish click target, painted button, complete icon box and drawn contour. Intentional icon whitespace belongs to the layout box; do not remove it merely because painted pixels miss a guide. Enlarging a target must not move that box. Check containers, slots, columns, gaps and unintended overrides before optical corrections. Neither matching CSS boxes nor aligning every painted contour alone establishes balance.
A glyph inconsistent across uses belongs to its icon owner. A composition-specific optical correction needs a scoped justification and comparison with peers. Preserve intended hierarchy: a child icon may align with parent text, but DOM nesting alone does not determine indentation. When comparing a bare icon with a bordered control, extra hit padding is not a shared visible edge.
Inline SVG `vertical-align: middle` follows font baseline/x-height, not visible text center. Check font, size, line height and icon box across CJK, Latin, monospace and wrapping. Do not make multiline links unwrappable just to center an icon.
## Choose both the object and the axis
Name the aligned object and reference container. Equal padding need not align text starts; equal SVG dimensions need not align visible centers. For a close control beside footer actions, explicitly choose the control edge or complete icon-box edge; do not switch between them while measuring.
| Alignment | Use it for | Judge the actual relationship | Common mistake |
|---|---|---|---|
| Left edge | Navigation labels, list titles, field labels, reading content | Same-role text starts on one deliberate axis, including across groups | Every component has its own plausible but different inset |
| Horizontal center | A standalone primary button or short empty-state stack | Center the icon-plus-label or full stack in the named container | Center the label alone and attach an icon outside it |
| Vertical center | A single-line icon/label row or peer toolbar controls | Visible centers balance; the whole clickable unit keeps a stable height | Equal CSS heights hide different SVG whitespace or line boxes |
| Baseline / first line | Mixed text sizes, multiline labels with leading icons | Text baselines agree; an icon belongs to the intended first line | Center an icon beside the entire multiline paragraph |
| Two edges | Title/action rows and left/right composer groups | Left group follows the content edge; right group follows the trailing edge | Distribute every icon across the available width |
| Repeated columns | Action clusters, timestamps, file rows | Corresponding slots share centers or edges across rows | Only the last icon aligns; preceding icons drift |
For Chinese/English navigation, identify leading icon centers, text starts and trailing controls by role. Headings, avatars and expandable search may differ. Continue axes only where the composition establishes them, including shared plugin reading edges even when hover paint extends beyond them, and conversation/right-sidebar header heights and baselines.
For a trigger and its menu, or search field and result rows, compare the complete text inset: outer padding, borders, leading slot and gap. Different icon sizes can retain one text start. For adjacent statistics, check font family, size, weight and line height together before moving the icon.
Center a button within its own bounds, a welcome group within the main pane, and an empty state within the content remaining below headings/filters. A fixed top margin is not centering. When a short window cannot fit the group, preserve scroll access with a compact top-aligned layout instead of clipping.
Normalize peer control sizes and slots before any necessary small optical offsets; verify comparable uses. Preserve usable, non-overlapping hit targets and do not hide inconsistent parent layout with transforms. Transparent hit padding can exceed the painted icon slot; check neighboring target edges after tightening a cluster. Check [spacing](spacing.md) without moving the chosen axes; consult [cases](../../../../docs/ui-design-review-cases.md#alignment) for uncertain judgments.
@@ -0,0 +1,56 @@
# UI icons
Apply within the [UI development loop](../SKILL.md#required-review-loop), in the affected page or modal context.
## Reuse existing icons first
Search the library and comparable UI for the intended meaning and supported variants. Reuse the shared component; do not copy its SVG into a feature or create a near-duplicate. Size, color and placement mismatches belong to the variant or consumer layout, not a new drawing.
Draw only when existing artwork cannot express the meaning or the user requests a distinct design. Before drawing, explain the closest alternatives and the unmet meaning or requested design difference. New glyphs require designer approval before landing; requested drafts can be prepared locally. Do not redraw a shared glyph to fix one consumer.
The [primitives icon contract](../../../../packages/client/ui-primitives/README.md#controls-and-icons) and icon source own available variants, stroke scaling and menu sizes; [official artwork](../../dsh-official-plugin-artwork/SKILL.md) owns package artwork.
## System style
- Use minimal, geometric, functional glyphs with familiar meanings. Match peers in contour, endings, joins, weight, whitespace and complexity; avoid decorative, playful or illustration-like detail. A supplied reference guides the requested meaning and distinctive form within this system.
- Use simple geometry and restrained rounding. Around 1px at a 16px design size is a starting point for softened corners, not a rule for every turn. Preserve useful sharp corners.
- Default to monochrome outlines inheriting `currentColor`, without gradients, shadows, textures or 3D effects. Preserve intentional fills, status dots, selected marks and knockouts. File, site, plugin and brand artwork retain their own palettes and roles.
- Balance structure and whitespace without requiring symmetry; avoid accidental tilt or a top-heavy silhouette. Preserve meaningful direction. Use gaps, overlap, nesting and broken obscured lines to clarify complex meanings; avoid accidental tangencies, dark knots and disappearing gaps at actual size. Add contour detail only when it improves recognition; do not force every subject into a closed outline.
## Optical size and clarity before implementation
Use the owning control's supported size and weight. [Shared menu sizes and stroke scaling](../../../../packages/client/ui-primitives/README.md#controls-and-icons) belong to primitives; [permission triggers](../../../../packages/client/ui-permission-presets/README.md) and [settings navigation](../../../../packages/client/ui-settings-general/README.md) belong to their feature packages. A reviewed proposal for a larger or heavier trigger is not a statement that every existing consumer already uses it. Compare at the owning control's size, weight, colors and label, using an outlined circle and rectangular control as references. Open silhouettes may need more extent than dense fills; supporting chevrons, handles and dots keep their roles. Do not normalize by ink area or fill every view box.
A shared view-box change affects every consumer at its own CSS size. Inspect both compact menus and larger icon-only controls; a clearer small chevron can become oversized in a floating button. Adjust a consumer’s supported icon size when needed while retaining its button base and hit target.
For softness, check CSS dimensions and ancestor transforms, view box and drawing bounds, stroke versus filled contour, device-pixel placement, then color/opacity. Non-16 view boxes are valid; compare identical artwork before attributing sharpness to inline SVG versus sprites.
Use the [implemented stroke behavior](../../../../packages/client/ui-primitives/README.md#controls-and-icons): Regular line artwork retains a 1 CSS pixel stroke and Medium retains 1.3 CSS pixels as the viewport changes. Shared and inline line artwork use non-scaling strokes; intentional fills scale as geometry. Do not change that rendering behavior or convert filled contours during an ordinary placement or reuse fix. Library rendering changes require consumer validation; retain intentional silhouettes and knockouts.
Check straight-stroke edges at actual DPR after all scaling: center and width jointly determine coverage. Integer source coordinates alone do not guarantee crisp edges. Round positioned overlays in device pixels only when layout places otherwise crisp artwork between pixels; preserve anchoring and viewport containment. Keep antialiasing on curves/diagonals; do not globally round paths or use `crispEdges` to hide placement errors. Partial coverage is legitimate for 1.3px strokes.
## Draw a new icon
Establish meaning, placement, actual sizes, peers and states; ask only when missing information changes the design. Produce editable SVG; shared line icons need Regular and Medium variants sharing construction; intentional fill-only variants may share geometry. Tune silhouette, gaps, center and weight at intended size using component/theme conventions, not consumer-specific stroke or scale overrides.
Deliver editable artwork and a rendered peer comparison, including its label or control when relevant. Explain the semantic choice and unresolved alternatives. Keep drafts local; when implementing, register reusable components and update their documentation. Distinguish review-ready proposals from approved glyphs.
## Normalize user-supplied artwork
Before changing supplied artwork, establish its meaning, recognizable features and intended use. Preserve the original and recognizable form. Show an existing equivalent as a reference when available, but do not substitute it for the drawing the user asked to normalize. Separate technical fixes (canvas, scale, stroke, color inheritance, placement) from silhouette or metaphor changes; identify any required simplification.
Apply the same system style and verification criteria as new artwork. Inspect SVG paths, transforms, fills, strokes and references. Reconstruct raster references without tracing rasterization or compression artifacts; identify interpreted details and ask about unrecoverable defining features. Deliver editable SVG and original/normalized/peer comparisons under identical conditions at intended size. Keep artwork changes separate from consumer layout fixes.
## Placement and use
Distinguish click target, visible button base, icon slot and painted glyph. Equal targets or SVG dimensions do not imply equal optical size; compare silhouette, stroke, whitespace and center beside the label. Fix containers and unintended CSS overrides first. Correct shared artwork only when the imbalance follows it across uses.
An icon and its associated text for one action, value or input prompt must share foreground color, effective opacity and state changes. This includes submenu value chevrons and search placeholders; inherit the shared role instead of assigning an independent icon token. Typed text and independent clear actions may differ; status, warning and brand roles retain semantic colors. Check computed color and ancestor opacity in both themes. Apply the rule to changed consumers; updating it does not certify untouched UI. Compare native file icons and folder outlines deliberately; do not normalize logos, status dots or decorative illustrations to toolbar icons.
Use the shared Tooltip for unclear icon-only actions and HoverCard for informational content requiring hover or selection; prefer these primitives over ad-hoc `title` attributes. [Responsive UI](../../dsh-responsive-ui/SKILL.md) owns mobile tooltips and label collapse. Every right-sidebar tab needs a meaningful icon. Preserve accessible labels and focus; [alignment](alignment.md) owns positioning and [spacing](spacing.md) owns gaps.
## Verification and handoff
For ordinary icon reuse or placement changes, inspect the affected control at its actual size and relevant states; no fixed size/DPR matrix or separate raster report is required. For new or changed artwork, strokes or rendering, compare affected sizes and weights with peers; check DPR 1 and 2 when stroke scaling or pixel placement can change, and both themes when color or optical weight is affected. Keep before/after captures when needed for the change or requested deliverable. Judge recognition, clipping, center, gaps and neighboring text at actual size; enlarged views diagnose pixels only.
After a set-wide change, trace affected families, consumers and weights, including unchanged artwork whose rendering can change. Use unchanged peers for comparison. An explicitly requested full-set review inventories and compares every glyph under matching conditions. Consolidate duplicate artwork only when necessary for the current fix; record unrelated duplicates separately instead of expanding the task. Consult [cases](../../../../docs/ui-design-review-cases.md#icon-optics) for uncertain judgments.
@@ -0,0 +1,19 @@
# UI spacing and grouping
Apply within the [UI development loop](../SKILL.md#required-review-loop). Distance should explain which text, input and action belong together.
### Identify the group before choosing the gap
Group elements by one object, action or repeated unit, not DOM siblings, background or React component. State that relationship before positioning. Check each nesting level independently; larger outer gaps do not require larger inner gaps.
For example, a title and description introduce one section; three conversation actions form one operation group; member cards form a section separate from tasks. In a model form, checkbox and label form an option, options form a field, fields form a model, and models form a list. Check each relationship rather than applying one gap everywhere.
Without an explicit divider, comparable neighboring groups need visibly greater separation between groups than within them. Equality is only a lower bound against reversal. Repeated compositions share gaps, padding and alignment; label length does not justify unrelated spacing.
When wrapping, metadata, subgroups or independent actions increase complexity, increase enclosing separation enough to retain grouping. A compact icon/label pair and a section of multiline cards need different spacing levels. Do not derive gaps from card area or multiply every margin. Dividers and distinct surfaces may reinforce separation, but headings must remain closer to their own content than to preceding groups.
Judge actual whitespace at normal size, including padding, line-height, glyph whitespace and borders. CSS margin ratios alone do not establish grouping; explanatory labels need one unambiguous owner. For example, declared 16px/8px margins can still leave a heading closer to the preceding content once line-height and container padding are included; compare the rendered gaps rather than adopting that pair as a rule.
When matching two visible gaps, name both pairs of endpoints and include each container’s padding, border and text line box. Equal visible gaps may require unequal margins. A control’s painted edge and a text glyph’s edge are different endpoints; keep that choice stable through review.
Reuse page spacing and [style tokens](../../../../docs/web-styling.md), preserve [alignment](alignment.md) axes, and consult [cases](../../../../docs/ui-design-review-cases.md#grouping) for uncertain judgments. This skill defines no numeric scale.
+1 -1
View File
@@ -39,7 +39,7 @@ description: Use when reviewing a pull request in the deepseek-harness repo —
## Manual checks
- **UI review coverage:** apply the [required review loop](../dsh-client-ui-ux/SKILL.md#required-review-loop) to the cumulative visible diff. Verify scope selection, affected shared consumers, final evidence and gaps; request missing affected-state evidence rather than an unrelated full-product audit. Existing valid checks need not be repeated.
- **UI review coverage:** apply the [UI change workflow](../dsh-client-ui-ux/SKILL.md#required-review-loop) to the cumulative visible diff. Verify its [minimum checks](../dsh-client-ui-ux/SKILL.md#minimum-checks-for-affected-ui) for the changed properties and consumers. Missing required inspection remains a gap; missing optional reports does not. Do not demand full-audit records for ordinary changes. Recheck only new interactions or invalidated evidence. Existing tests, GUI GIFs and designer/product approval remain required under their original triggers.
- **Intent and interface contracts:** trace both sides of every changed interface. Confirm the implementation matches the PR and any Agent Note, including errors, cancellation, ownership, and disposal.
- **Error handling:** apply [dsh-error-handling](../dsh-error-handling/SKILL.md) to changed failure paths, including their state guarantees and final user-visible reports. Reject catch-and-continue unless the state owner establishes that subsequent work's preconditions hold, including after recovery.
- **Lifecycle and concurrency:** for async setup, callbacks, processes, or teardown, apply [defensive-patterns/general.md](../../../docs/defensive-patterns/general.md). Check races before publication, cancellation during awaits, independent error reporting, callback containment, ownership before reentry, complete detach cleanup, and quiescent disposal.
@@ -16,7 +16,7 @@ Before drawing a larger image for the top of an official bundle's detail documen
## Establish the subject
- Inspect the actual feature, its output, and its owning manifest before drawing. A badge-producing skill may need a tag, not a medal. Reuse designer-supplied assets; do not invent a brand mark or change product names, identifiers, or unrelated icons without approval.
- Read the [existing artwork](../../../packages/client/ui-primitives/src/plugin-artwork.tsx) and the nearest relevant package SVGs. Borrow one coherent treatment, not every reference's effects. Action icons remain with [the interface icon skill](../dsh-ui-icons/SKILL.md).
- Read the [existing artwork](../../../packages/client/ui-primitives/src/plugin-artwork.tsx) and the nearest relevant package SVGs. Borrow one coherent treatment, not every reference's effects. Action icons remain with [the UI design entry](../dsh-client-ui-ux/SKILL.md#select-the-rule-owners).
- Check every affected entry, list, detail, and component row. Bundle artwork and a component's name and icon can have separate metadata owners; changing one does not update the other.
## Draw and refine
+1 -1
View File
@@ -33,7 +33,7 @@ When the outgoing change adds or changes a resource-owning or asynchronous test,
- **Package or script behavior:** run the owning Vitest file or focused test name. Add adjacent package tests when a shared contract changes; leave repository-wide coverage to CI unless the change is genuinely cross-cutting or the user requests it.
- **Remote mock typing:** unbuilt `any` is an explicit local fallback, not strict evidence. Run `pnpm run typecheck` before handing off Remote/mock changes; rebuild missing, stale, or partial generated declarations before diagnosing remaining errors. Keep the exception in the [test proxy](../../../packages/test-support/remote-mock/README.md#remote-proxy), never in production Remote types, ambient flags, or copied signatures.
- **Documentation, Agent Notes, catalogs, or doc-linked comments:** run `pnpm run doc-sync`; run full lint when the documentation workflow requires it.
- **User-visible UI:** reconcile the outgoing diff with the [required review loop](../dsh-client-ui-ux/SKILL.md#required-review-loop). Check affected-page scope, final visual evidence, unresolved gaps and interactions between cumulative edits; reuse evidence that remains valid rather than restarting a full-product review. Passing tests alone do not establish visual acceptance.
- **User-visible UI:** use the [UI change workflow](../dsh-client-ui-ux/SKILL.md#required-review-loop) and its [minimum checks](../dsh-client-ui-ux/SKILL.md#minimum-checks-for-affected-ui) to verify required inspection and new cumulative effects. Disclose missing checks; optional paperwork is not a substitute for inspecting the result. Reuse valid evidence; ordinary changes do not need a separate full-audit report at push time. Keep existing test, GUI GIF and designer/product approval requirements. Tests alone do not establish visual acceptance.
- **Model-, editor-, CLI-, or terminal-visible output:** run the focused keyless snapshot or real runnable-example scenario that owns the output.
- **Expected-output placement:** a test whose selected recorded Session generation is replay input and expected persisted output belongs under top-level `snapshots/`, with `snapshot.yml` naming its shipped `dsh` profile and composition/header pin. Canonical parent files are `session[.vN].jsonl`, children are `session.<ordinal>[.vN].jsonl`, and the harness selects the highest generation per role. ARIA, geometry, generator, CLI, and unit expectations without that Session round trip stay beside their owning test under `tests/expected/`; do not place them in `snapshots/` or give them a `*.snapshot.ts` owner. Use the owning `test:expected`, `test:web`, or `test` lane.
- **Profile and configuration placement:** cross-package behavior of a shipped `dsh` profile belongs under `apps/cli/tests/profiles/`; a package-specific Loader composition belongs under that package's `tests/fixtures/`. User-facing optional overlays live under `apps/cli/config/examples/` and pair with a guide under `docs/user/`.
-44
View File
@@ -1,44 +0,0 @@
---
name: dsh-ui-alignment
description: Design or review DSH layout alignment, shared text columns, icon and label placement, tree indentation, and centering across groups. Apply before positioning elements and when checking rendered results.
---
# UI alignment
Use this decision guidance within the [UI development loop](../dsh-client-ui-ux/SKILL.md#required-review-loop). Apply it to the affected groups in their page or modal context; examples are not a coverage list.
Align elements that the reader compares as peers, including the space reserved for optional icons or actions.
### Layout structure first, visual calibration second
An icon's complete box includes intentional whitespace around its drawing and is a valid layout unit. Distinguish the interaction target, painted button surface, icon box and drawn contour: enlarging the target must not move the icon box, and internal whitespace must not be removed merely because painted pixels miss a guide. Compare shared slots, text columns and gaps first, then inspect balance at the intended size. Neither aligning every differently shaped contour from a screenshot nor accepting visibly unbalanced results solely because boxes agree is sufficient.
Trace misalignment to containers, slots and unintended overrides first. Once the structure is sound, distinguish an inconsistent library glyph from an optical adjustment needed by a particular composition. The icon owner handles the former; justify and scope the latter, then inspect comparable uses. Preserve the owning design’s hierarchy and indentation. A child icon may continue the parent text column when that is the intended tree relationship; DOM nesting alone does not establish it. When comparing a bare icon with a bordered control, do not treat extra hit padding as a common visible edge. Small contour differences caused by intentional whitespace are not automatically defects.
An inline SVG’s `vertical-align: middle` uses the baseline and font x-height; it does not establish centering with adjacent text. Identify the font, size, line height, and complete icon box before choosing a text metric as the reference, then check CJK, Latin, monospace text, and wrapping. Do not turn a multiline link into an unwrappable flex unit to center its icon; verify the adjustment across fonts.
### Choose both the object and the axis
Specify what is aligning to what. Distinguish the element's layout box, its visible glyph or text, its clickable area, and the container that defines its position. Equal padding does not guarantee equal text starts; equal SVG dimensions do not guarantee equal visible centers. An icon and label form a unit, repeated units form a column, and corresponding columns can continue across section boundaries.
| Alignment | Use it for | Judge the actual relationship | Common mistake |
|---|---|---|---|
| Left edge | Navigation labels, list titles, field labels, reading content | Same-role text starts on one deliberate axis, including across groups | Every component has its own plausible but different inset |
| Horizontal center | A standalone primary button or short empty-state stack | Center the icon-plus-label or full stack in the named container | Center the label alone and attach an icon outside it |
| Vertical center | A single-line icon/label row or peer toolbar controls | Visible centers balance; the whole clickable unit keeps a stable height | Equal CSS heights hide different SVG whitespace or line boxes |
| Baseline / first line | Mixed text sizes, multiline labels with leading icons | Text baselines agree; an icon belongs to the intended first line | Center an icon beside the entire multiline paragraph |
| Two edges | Title/action rows and left/right composer groups | Left group follows the content edge; right group follows the trailing edge | Distribute every icon across the available width |
| Repeated columns | Action clusters, timestamps, file rows | Corresponding slots share centers or edges across rows | Only the last icon aligns; preceding icons drift |
For left-to-right Chinese and English navigation, identify the leading icon center, text start and trailing controls by role. Continue an axis across groups only where the owning design establishes that relationship. Headings, account avatars and expandable search controls can use different geometry. DOM nesting alone neither requires nor forbids an indent.
Consider cross-panel relationships: plugin content shares its reading edge even when hover paint extends beyond it; conversation and right-sidebar header rows share their intended heights and horizontal baselines. Choose the relationship from the composition, not merely from similar CSS values.
Centering always has a reference rectangle. A centered button uses its own bounds; a welcome area uses the main pane; an empty state generally uses the content space remaining below the page heading and filters. A fixed top margin is not vertical centering. If a short window cannot contain that group, preserve scroll access and use a compact top-aligned layout instead of clipping it. Two-edge alignment also operates on groups: keep each group's internal gaps fixed as the space between groups grows.
Change element size when that is the coherent way to obtain alignment. Normalize peer button slots and icon containers before adding individual offsets. Then apply a small optical correction only when the drawn shape still requires it, and verify other uses. Keep click targets usable; shrinking them to force alignment or using transforms to conceal inconsistent parent layout is not an acceptable fix.
Check neighboring groups with [spacing](../dsh-ui-spacing/SKILL.md). Changing a gap must preserve the chosen reference axes.
See [worked examples](../../../docs/ui-design-review-cases.md#alignment) when the relationship is unclear.
-76
View File
@@ -1,76 +0,0 @@
---
name: dsh-ui-icons
description: Reuse existing DSH interface icons first; draw missing glyphs, normalize user-supplied artwork, or review system style, optical size, clarity, and text relationships. Use for action, navigation, file and status icons; official plugin artwork has its own skill.
---
# UI icons
Use this decision guidance within the [UI development loop](../dsh-client-ui-ux/SKILL.md#required-review-loop). Apply it to the affected groups in their page or modal context; examples are not a coverage list.
## Reuse existing icons first
Before drawing or adding an icon, search the existing library and comparable UI for the intended meaning, component, size and weight variants. If an existing glyph expresses the action or state clearly, use its shared component. A request to add an icon to a feature does not by itself call for a new drawing. Do not copy its SVG into a feature-local implementation or create a near-duplicate merely to make that feature look different.
Draw a new glyph only when existing artwork cannot express the required meaning or the user explicitly requests a distinct design. Identify the closest existing alternatives and explain the unmet meaning or requested design difference before drawing. A size, color or placement mismatch alone is a reason to inspect the supported variant and consumer layout, not to invent another glyph. Follow the authoring workflows below for requested drawing or adaptation. A new glyph requires designer approval before landing; that requirement does not prevent preparing a requested draft. Do not silently redraw an existing glyph to fix a single consumer.
The [primitives catalog](../../../packages/client/ui-primitives/README.md#component-catalog) and icon source own the available variants and stroke values. [Official plugin artwork](../dsh-official-plugin-artwork/SKILL.md) owns package artwork, not action icons.
## System style
Design interface glyphs as a coherent tool-oriented set: minimal, geometric, functional, balanced, precise and technical. Prefer familiar action, navigation and workflow meanings that read quickly in professional software. Avoid cute, playful, hand-drawn or decorative treatments and illustration-like detail. Match neighboring library glyphs in contour, line endings, joins, optical weight, whitespace, proportions and complexity; a supplied reference guides the requested meaning and distinctive form within this system.
Use simple lines, circles, rectangles and summarized curves, with consistent line weight within each variant. Follow the fixed Regular and Medium strokes defined below; the system has both weights. Use restrained corner rounding that matches the closest peers. Around 1px at a 16px design size is a starting point for a small softened corner, not a radius to impose on every turn, circle or existing glyph. Preserve useful sharp corners and avoid an overly rounded appearance.
Default to monochrome outline artwork inheriting `currentColor`, without gradients, shadows, textures or 3D effects. Retain purposeful filled silhouettes, status dots, selected-state marks and knockout shapes already supported by the library. File, site, plugin and brand artwork follow their own roles and palette rules. Do not remove meaningful fill or color merely to make these categories resemble line icons.
Balance the visible weight horizontally and vertically through structure, whitespace and line distribution; geometric symmetry is not required. Avoid accidental tilt, a top-heavy silhouette or decorative motion. Keep direction when it carries meaning, such as an arrow. Simplify redundant detail without losing recognition, and do not force every subject into a single closed geometric outline.
For complex meanings, use relationships between a few elements: open or broken contours, controlled gaps, crossings, overlap, nesting and foreground/background order. Break an obscured line where needed to clarify which element is in front. These relationships must remain legible at the intended small size, without accidental tangencies, dark knots or gaps that disappear after rasterization. Add contour detail only when it improves recognition.
## Draw a new icon
Enter this workflow only after applying the reuse rule above. Establish the intended meaning, placement, actual sizes, neighboring icons and required states from the request and available UI context. Ask only when missing information would change the meaning or design. Use the closest library artwork as references for the new design.
Produce editable SVG geometry with the system style above. Develop the silhouette at the intended size, then tune internal gaps, optical center and weight. Provide Regular and Medium variants for shared line icons, preserving the same construction; intentional fill-only variants can share geometry. Follow the owning component and theme conventions rather than introducing consumer-specific stroke or scale overrides.
Use the verification section below. Deliver the editable artwork and a rendered comparison beside the chosen library peers, including the icon with its label or control when relevant. Explain the semantic choice and any unresolved alternative. Keep concept drafts local; register reusable components and update their owning documentation when implementation is in scope. Distinguish a proposal ready for review from an approved glyph ready to land.
## Normalize user-supplied artwork
Inspect the supplied SVG or image and establish its meaning, recognizable features and intended use before changing it. Check whether an existing library glyph already serves the product need. When the user specifically asks to normalize their own drawing, preserve that task and show the existing equivalent as a reference rather than silently substituting it. Preserve the original for comparison. Separate technical corrections such as canvas whitespace, scale, stroke, color inheritance and placement from changes to silhouette, detail or visual metaphor. Preserve the recognizable form unless the requested normalization requires simplification; identify any such design change in the result.
For SVG, inspect its paths, transforms, fills, strokes and internal references. Resolve unwanted scaling and filled line contours using the clarity rules below. A raster reference may need reconstructed vector geometry; do not trace antialiasing or compression artifacts into paths, and identify details that were interpreted. If a defining detail cannot be recovered, ask about that detail rather than presenting an invented feature as part of the original.
Apply the same style and verification criteria as new artwork. Deliver the original and normalized versions under identical rendering conditions, alongside established peers and at the intended use size. Include editable SVG and briefly distinguish technical fixes from design changes. Keep source artwork changes separate from corrections to an individual consumer's layout.
## Placement and use
Review the layout box, the painted glyph, and its relationship to neighbouring text as separate properties.
Judge four layers separately: clickable target, visible button base, icon slot, and painted glyph. Peer targets and bases can be equal while different glyphs need slightly different drawing bounds. Neither equal SVG width nor equal ink area establishes equal perceived size. Compare stroke weight, internal whitespace, silhouette, and center at the size actually used, with the adjacent text present.
First fix container layout and unintended CSS overrides. Correct a library glyph only if its imbalance follows it across uses; a single consumer's wrong size belongs to that consumer. A native file icon and a monochrome folder outline require a deliberate optical relationship even when their nominal boxes agree. Status dots, logos, and decorative illustrations are different roles and must not be normalized to toolbar icons.
An icon and its associated text must render in the same foreground color and opacity when they communicate one action, value or input prompt. This includes a submenu chevron beside a value and a search icon beside placeholder text; inherit their shared foreground rather than applying an independent icon token. Keep hover, focus and disabled changes synchronized. Typed text and an independent clear action can differ; status, warning and brand roles retain their semantic colors. Verify computed color and effective opacity together, then inspect both themes. Apply this rule to changed consumers; a rule update alone does not certify untouched UI.
An icon-only action with unclear meaning gets the shared Tooltip; informational content that must be hovered or selected uses HoverCard. The [responsive skill](../dsh-responsive-ui/SKILL.md) owns mobile tooltips and when labels may collapse. Every right-sidebar tab declares a meaningful icon.
[Alignment](../dsh-ui-alignment/SKILL.md) owns icon-plus-label positioning; [spacing](../dsh-ui-spacing/SKILL.md) owns the gap. Preserve accessible labels and focus when changing presentation.
See [worked examples](../../../docs/ui-design-review-cases.md#icon-optics) when the relationship is unclear.
## Optical size and clarity before implementation
Use 14px Regular line icons with fixed 1px strokes in ordinary menus; compact menus retain their 12px treatment. Permission-selector triggers use 16px Medium artwork; settings-navigation peers use 16px slots, and permission-menu rows retain the ordinary 14px Regular treatment. Choose size for the owning control and compare candidates together at that size, weight, foreground and background, including their labels. Use a representative outlined circle and rectangular control as references. Open silhouettes can need more extent than dense filled shapes; chevrons, drag handles and status dots retain their supporting roles. Never normalize all glyphs by bounding-box area or force every path to fill its view box.
When an imbalance repeats across consumers, adjust the owning artwork once. Inspect every library glyph and both weights after a set-wide change, including unchanged glyphs, inline composites, and feature-local duplicates. Consolidate duplicate semantic artwork where an existing shared glyph serves the same role. Keep file, site, plugin and brand artwork in separate comparison groups with their own intended sizes. Preserve an inventory so an omitted family cannot be mistaken for a completed review.
Diagnose softness in this order: rendered CSS dimensions and ancestor transforms; source view box and drawing bounds; stroke versus filled contour; final placement on the device pixel grid; then color and opacity. A non-16 view box is not itself defective. Neither inline SVG nor a sprite is inherently sharper: compare the same artwork through both paths before changing the rendering architecture.
Regular strokes remain 1 CSS pixel and Medium strokes 1.3 CSS pixels when the icon is resized. Use non-scaling strokes for line artwork, including inline composites. A filled outline ignores stroke width; if it represents an ordinary line icon, convert that contour to a real stroke when consistent weight across sizes is required. Preserve intentional filled silhouettes and knockout marks rather than applying the rule indiscriminately.
For a horizontal or vertical stroke, inspect its painted edges at the actual device pixel ratio (DPR), after all view-box and CSS scaling. Integer source coordinates alone do not establish crispness; center position and stroke width jointly determine edge coverage. At DPR 2 a 1px stroke can occupy two solid device pixels; a fractional offset can add grey edge pixels. Round positioned overlays in device pixels when their layout otherwise places crisp artwork between pixels. Check that this does not change anchoring or viewport containment. Keep antialiasing on curves and diagonals; do not globally round path points or use `crispEdges` to conceal a placement error. A 1.3px stroke legitimately has partial edge coverage.
## Verification and handoff
Verify light and dark themes at DPR 1 and 2, at 14px and 16px and any larger size the changed consumer uses. Keep a working-tree baseline and compare final raster output at actual size; enlarged pixel views only diagnose edge coverage. Check semantic recognition, consistency with peers, clipping, center, internal gaps, fixed stroke weight and neighboring text. For a full-set review, deliver every final glyph side by side, label changed and unchanged entries, and make the before/after comparison use identical rendering conditions.
-26
View File
@@ -1,26 +0,0 @@
---
name: dsh-ui-spacing
description: Design or review DSH semantic grouping, internal and external spacing, repeated rhythm, and section separation. Apply before choosing gaps and when content wraps or expands.
---
# UI spacing and grouping
Use this decision guidance within the [UI development loop](../dsh-client-ui-ux/SKILL.md#required-review-loop). Apply it to the affected groups in their page or modal context; examples are not a coverage list.
Distance should explain which text, input, and action belong together before the reader needs a border.
### Identify the group before choosing the gap
Elements belong together because they describe one object, complete one action, or form one repeated unit. DOM siblings, equal backgrounds, or one React component do not establish that relationship. Write the grouping in ordinary language first: “title and description introduce this section”; “these three actions operate on this conversation”; “these cards form the members section, which is separate from the tasks section.” Then position the groups.
A group can contain smaller groups. In a model form, a checkbox and its label form an option; several options form an input-type field; that field joins other fields in one model; multiple models form the model list. Check spacing at each level. A very wide gap inside a higher-level layout does not require every lower-level gap to become larger.
For comparable neighboring groups without an explicit divider, the visible separation between groups must be greater than the gap joining elements inside each group. Equality is a lower bound against reversal, not the target when space is carrying the hierarchy. Repeated groups with the same composition share the same internal gap pattern, padding, and alignment. Different label lengths do not justify unrelated spacing rules.
As a group gains subgroups, wrapping, secondary metadata, or independent operations, its internal structure demands more separation from the next group. Increase the enclosing section gap enough to preserve that distinction. Do not compute space from card area or multiply every margin: a compact icon-and-label pair and a section of multi-line cards need different levels of spacing. A divider or distinct surface can reinforce the boundary, but it must not leave a heading visually attached to the preceding group.
Judge visible whitespace as well as CSS values. Button padding, line-height, glyph whitespace, borders, and margins all contribute. A declared 16px/8px margin pair can still produce an unclear heading relationship. At normal display size, the heading should appear closer to the content it introduces than to the previous section; an explanatory label should have one unambiguous owner.
Use existing page spacing and [style tokens](../../../docs/web-styling.md); this skill does not create a numeric scale. Check shared axes with [alignment](../dsh-ui-alignment/SKILL.md).
See [worked examples](../../../docs/ui-design-review-cases.md#grouping) when the relationship is unclear.
+1 -1
View File
@@ -156,7 +156,7 @@ Real-API tests/demos read `DEEPSEEK_API_KEY`, optional `DEEPSEEK_BASE_URL`, and
- **Create Agent Notes only for durable decision rationale;** mechanical/local edits are exempt, including local UI changes ([scope](.agents/notes/README.md#when-to-write-one)). Archived notes are frozen: never edit or treat them as current authority ([archive policy](.agents/notes/README.md#archiving-and-deletion)).
- **Official plugin artwork:** use [dsh-official-plugin-artwork](.agents/skills/dsh-official-plugin-artwork/SKILL.md) for official and official experimental plugin icons; obtain designer approval before landing new glyphs.
- **Client UI copy is locale-owned.** Route product text through typed dictionaries and `t` or localized primitive props; `verify-client-ui-i18n` rejects hardcoded copy ([decision](.agents/notes/implemented/architecture/2026-08-23-locale-owned-client-ui-copy.md)). English copy, including plugin titles, uses sentence case ([rule](.agents/skills/dsh-prose-standard/SKILL.md#required-coverage-by-prose-location)).
- **UI changes:** read the [UI development skill](.agents/skills/dsh-client-ui-ux/SKILL.md) before coding; select applicable rules and design relationships, then follow its scoped verification through handoff and PR.
- **UI changes:** use [dsh-client-ui-ux](.agents/skills/dsh-client-ui-ux/SKILL.md) as the design and review entry point; load its references only as needed.
- **Testing policy** — [docs/testing.md](docs/testing.md). Every non-trivial model- or product-user-visible change updates a keyless recorded-session snapshot; [snapshot ownership](snapshots/AGENTS.md) reserves the top-level tree for session-driven cases and keeps other expected output owner-local. Fixtures replay on macOS/Linux; fix fixtures, not normalizers.
- **Design each tool's UI presentation up front.** Host presenters stay pure; Web cards derive from raw events and persisted result metadata ([cookbook](docs/cookbook/adding-a-tool.md)).
- **Plan unit, e2e, and snapshot coverage** for capability seams, lifecycle paths, and transcript output; include missing snapshot-harness support in the same change.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

+22 -22
View File
@@ -9,44 +9,44 @@
en: d42b121ca63177aa
zh: 68b637fae3252c7b
/cookbook-review-a-ui-design/summary:
en: ca3b6e283a6095be
zh: 9024acce33ac5f85
en: 8a1ff691b28a2533
zh: 8c54ae85df6f6e12
/cookbook-review-a-ui-design/table-of-contents:
en: 84af073b2a7eca95
zh: 750633fa3c458d5b
/cookbook-review-a-ui-design/1-define-the-page-or-modal-in-scope:
en: b43b99e09f5c5c5c
zh: f95c8f7006661c1a
en: c9ee94acd903d809
zh: c8d07c75ba94531b
/cookbook-review-a-ui-design/1-define-the-page-or-modal-in-scope/select-scope-by-visual-impact:
en: 03e253193982403b
zh: 5b1e10220ffbe53d
en: ef9ad1428375f1d9
zh: 8f59cd04947c16dd
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation:
en: 33305b3aeaf47316
zh: d9fc73f001d6acca
en: 86301e7487e9cd74
zh: f13bc3da0b2ac2d3
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation/reconcile-the-baseline-across-the-whole-interface:
en: 76d008d0bac44f1f
zh: 2357d78f350b5540
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation/make-the-relationships-explicit:
en: 2a2e815b1b0e74e9
zh: 57f025943a700552
en: 4d26eca838abeb7a
zh: 30f2046b2dc70ed6
/cookbook-review-a-ui-design/2-inspect-the-task-and-its-implementation/keep-a-coverage-record:
en: 4fb9380f3ceeb4bb
zh: 4ce932dfc8ae84b2
en: 61b9e821e98b042a
zh: 9b67719f013e7c3c
/cookbook-review-a-ui-design/3-preserve-the-starting-point:
en: 193e00e7761fc560
zh: cc704fc699413de6
en: a0f8e8d720097515
zh: 4ff54f0c03bfdb48
/cookbook-review-a-ui-design/4-change-the-smallest-responsible-component:
en: 048668959e84707b
zh: 3e3478b0c313ed43
en: 8bcdb909b6825a5e
zh: e140ca3873b302b9
/cookbook-review-a-ui-design/5-verify-behavior-and-comparable-images:
en: ed5690014ab05334
zh: 3f25d7f5118dd2a6
en: 437f3a735dbfa486
zh: 7d6ccfd8da698c49
/cookbook-review-a-ui-design/6-deliver-the-complete-evidence:
en: 7cf5020be5145c13
zh: 810942039512af69
en: cea04ecd81785ca2
zh: b321ae244f050b1c
/cookbook-review-a-ui-design/6-deliver-the-complete-evidence/comparison-delivery-and-cumulative-changes:
en: a6c7ea042ef480d8
zh: f638f58639cc6888
en: c81cdec4ac3decca
zh: 9dcb16b292414fda
/cookbook-review-a-ui-design/further-exploration:
en: 98ac3512211d94ae
zh: 055418a72f29a15b
+27 -23
View File
@@ -8,11 +8,11 @@ English | [中文](reviewing-ui-design.zh.md)
## Summary
Use this workflow for impact-scoped UI changes and explicitly requested whole-interface reviews. Read the page or modal as context, compare affected relationships across and within groups, then record findings and make authorized changes. The [principles and case reference](../ui-design-review-cases.md) supplies judgment criteria; examples do not define coverage. The [required review loop](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop) owns triggers, execution timing and completion criteria.
Use this cookbook for explicitly requested comprehensive reviews and for evidence steps justified by a change's impact or regression risk. Ordinary development follows the lightweight path in the [UI change workflow](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop); it does not execute every section below. The [principles and case reference](../ui-design-review-cases.md) supplies judgment criteria, not a mandatory checklist. Existing tests, GUI PR GIFs and designer/product approval remain governed by their original owners.
Check the complete icon box, including intentional internal whitespace, text columns and gaps before judging the drawn contour. Hit targets are not icon boxes; do not align each glyph’s painted pixels independently. See the [alignment principle](../ui-design-review-cases.md#alignment).
Check associated icons and text against the [same-color rule](../../.agents/skills/dsh-ui-icons/SKILL.md#placement-and-use), including submenu values with chevrons and search placeholders with magnifiers. Compare rendered color and opacity in both themes; record semantic exceptions explicitly.
Check associated icons and text against the [same-foreground rule](../../.agents/skills/dsh-client-ui-ux/references/icons.md#placement-and-use), including submenu values with chevrons and search placeholders with magnifiers. Compare rendered color and opacity in both themes; preserve semantic exceptions.
## Table of Contents
@@ -28,16 +28,16 @@ Check associated icons and text against the [same-color rule](../../.agents/skil
<a id="proposition"></a>
## 1. Define the page or modal in scope
Name the user task and affected page or modal. Select the scope below before editing; routine changes do not default to a product-wide audit. For an explicit full review, enumerate the pages and modals and inspect every region and relevant state within that scope. State local scope and do not present its result as a whole-page conclusion.
Identify the user task and affected page or modal. Record scope when several regions, consumers or design choices need coordination; a straightforward local change needs no separate plan. For an explicitly requested comprehensive review, enumerate the requested pages/modals and relevant states. Do not present local inspection as a whole-page result.
Use the [judgment priorities](../ui-design-review-cases.md#judgment) across that scope: alignment and spatial grouping first, then density, hierarchy, states, component choice, icon optics and geometry. Express each finding as an observable relationship, such as content appearing closer to the next group than to its own label. Follow the user’s requested order and authorization; a full review can identify multiple related defects, and existing implementation authorization does not require renewed approval for routine adjustments.
Use the [judgment priorities](../ui-design-review-cases.md#judgment) across that scope: alignment and spatial grouping first, then density, hierarchy, states, component choice, icon optics and geometry. Express each finding as an observable relationship, such as content appearing closer to the next group than to its own label. Follow the user’s requested order and authorization; a full review can identify multiple related defects, and permission to implement routine adjustments does not replace the [required designer/product review](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation).
Read the [client UI skill](../../.agents/skills/dsh-client-ui-ux/SKILL.md) and the applicable architecture before editing. Use the [responsive skill](../../.agents/skills/dsh-responsive-ui/SKILL.md) for width and input changes, the [style reference](../web-styling.md) for tokens, and the [radius standard](../ui-radius.md) for corner geometry. This workflow adds review and evidence steps, not another set of visual tokens.
<a id="review-scope"></a>
### Select scope by visual impact
Record the scope in a few task-note sentences before editing: changed position → affected groups and shared axes → consumers and conditions → planned evidence. Use a table only when several pages or variants need tracking. File count and package boundaries do not determine visual reach.
Choose inspection scope from the table below. For broader changes, a few task-note sentences can track affected groups, consumers and risk conditions; use a coverage table only when it helps a multi-region review. Local changes do not need a scene inventory. File count and package boundaries do not determine visual reach.
| Change | Minimum inspection scope |
|---|---|
@@ -49,14 +49,16 @@ Record the scope in a few task-note sentences before editing: changed position
A shared consumer can reuse evidence only when the relevant implementation, size, container constraints, content behavior and states are equivalent; record the grouping and its basis. Inspect uncertain cases directly. Source inspection of all consumers is not a claim to have opened every page. Expand scope when a defect recurs beyond the initial region or a fix changes adjacent relationships. Record unrelated discoveries separately instead of silently starting a product-wide redesign.
Choose conditions that challenge the change: long or multiline content for sizing, both themes for color, constrained widths and affected breakpoints for layout, and concurrent states for interaction. Apply the owning responsive and behavior requirements; do not exhaust unrelated combinations or replace coverage reasoning with a fixed screenshot count. Reuse unchanged rules and valid evidence within the task, and recapture after a coherent batch of edits rather than every CSS adjustment. Read only the relevant principle sections and examples; an uncertain design decision is a reason to retrieve more detail.
Apply the [minimum checks](../../.agents/skills/dsh-client-ui-ux/SKILL.md#minimum-checks-for-affected-ui) to each changed property: color requires both themes; layout, spacing, typography and sizing require constrained and long-content checks; interaction requires the affected path and states. These are inspection requirements, including for local edits, not a demand for a screenshot of every condition. Apply the owning responsive and behavior requirements; do not exhaust unrelated combinations or replace coverage reasoning with a fixed screenshot count. Reuse unchanged rules and valid evidence within the task, and recapture after a coherent batch of edits rather than every CSS adjustment. Read only the relevant principle sections and examples; an uncertain design decision is a reason to retrieve more detail.
<a id="inspect"></a>
## 2. Inspect the task and its implementation
Open the actual application at the task's normal entry point. Read in the user's order: page purpose, current content or selection, relevant explanation, primary action, then secondary actions. Identify where alignment, spacing, emphasis, or a control's behavior contradicts that order. Inspect the owning component and its computed styles to distinguish a real layout defect from content, loading, or an unfinished animation.
Inspect the affected result at the normal application entry point. Reuse an instance serving the current implementation; do not restart or rebuild solely for each small edit. Follow the relevant task path and use computed styles when needed to distinguish layout defects from content, loading or unfinished animation.
Write each candidate as a short finding: scene and state, observable effect on the task, source owner, smallest proposed change, and the condition that would make the change inappropriate. Prioritize frequent or shared controls and clearly visible defects. A source search for differing numbers is evidence to inspect, not sufficient reason to standardize them.
For ordinary changes, a finding needs its location, visible problem, correction and verification. Add source ownership, alternatives and conditions that would invalidate the correction when they affect the decision. Prioritize visible or shared defects; differing source numbers alone do not justify standardization.
When diagnosing spacing, record layout boxes, margins, padding, line boxes and visible glyph edges separately. State whether a close control aligns by its button edge or icon box, and check trigger/menu text insets across their different icon sizes. An annotation of visible whitespace is not a measured CSS margin.
### Reconcile the baseline across the whole interface
@@ -66,7 +68,7 @@ Apply the [whole-page and modal principles](../ui-design-review-cases.md#whole-i
### Make the relationships explicit
Before reading CSS, name the semantic groups and draw their shared axes on a full-context screenshot or a simple diagram. Include repeated elements across component boundaries. Record the following for each region; these are review notes, not a new product configuration file.
Identify the relevant groups and alignment references. Draw axes or annotate a full-context screenshot only when the relationship is complex, disputed or needs explanation; this is not a prerequisite to reading CSS. The following prompts are optional aids for documenting a review, not fields to fill for every local change.
| Observation | Record | Example |
|---|---|---|
@@ -87,27 +89,27 @@ Use locally maintained production-component fixtures to reproduce controlled sta
### Keep a coverage record
Use the following record for multi-region reviews; a local change can keep the same facts in a short task note. Do not target a fixed case count. Inspect the selected pages, groups and relationship-changing expansions in context; associate shared-component changes with their affected consumers and any justified equivalent groups.
Use the following record for an explicitly requested comprehensive review or when several regions need tracking. Ordinary local changes need no coverage table or separate note reproducing every field. Inspect the affected relationships and preserve justified equivalence when grouping shared consumers.
| Page or dialog and entry | Semantic groups and cross-group relationships | Inspected conditions | Finding and owner | Evidence after correction | Uninspected |
|---|---|---|---|---|---|
| Name the actual entry and region | Specify both endpoints and complete boxes or text axes | Content, width, theme, state | Record the rule and responsible component | Comparison and relevant behavior results | State limits rather than an ambiguous covered status |
Write each finding as observation, compared objects and intended relationship, structural or computed-style evidence, smallest responsible correction, neighboring relationships at risk, and recheck conditions. Keep insufficiently supported candidates pending instead of applying bulk changes; trace confirmed problem classes through actual consumers until repeated occurrences within the declared scope have recorded results.
For complex findings, explain the compared objects, intended relationship, supporting evidence and risky neighboring effects. Include a plausible wrong fix or retest condition when it clarifies the decision; ordinary findings use the short form above. Keep unsupported candidates pending and investigate confirmed repeated problems within the chosen scope, without starting unrelated cleanup.
<a id="baseline"></a>
## 3. Preserve the starting point
Record the starting source and capture the relevant scenes before editing. Existing uncommitted work is part of that starting point: preserve it with a recoverable snapshot or exact file copies, and compare this round against that snapshot rather than assuming `HEAD` represents the visible application. Keep the source version, scene inputs, and capture conditions with the evidence.
Preserve a recoverable starting version and relevant captures when a comparison is requested or needed to assess a broader change or regression risk. Routine local changes do not require an extra source snapshot or before image. When retaining a baseline, include existing uncommitted work rather than assuming `HEAD` represents the visible application, and record the source identity and capture conditions.
Save the baseline captures with their source identity and conditions in a local evidence directory.
When captures are needed, save images and their conditions in `.ui-review/` at the checkout root or another explicitly selected local directory. The repository ignores `.ui-review/` for generated evidence; review tools can remain installed outside the checkout.
Map every intended visible change to a scene before implementing it. Include controls inside expanded rows, dialogs, alternate provider forms, and loading or disabled states when those positions change. One screenshot of a collapsed parent does not cover its hidden controls. Use safe fixture data for destructive or unavailable states instead of saving changes to a user's real task solely to obtain a screenshot.
Use a scene map for comprehensive reviews or multi-state comparisons that need it; simple changes can be checked directly at the affected position. Include expanded rows, dialogs and relevant loading/disabled states when they affect the claim. A collapsed parent does not cover hidden controls. Use safe fixture data for destructive or unavailable states instead of changing a user's real task just for a screenshot.
<a id="implement"></a>
## 4. Change the smallest responsible component
Fix the owner that creates the inconsistency. A page layout belongs to that page; a shared control state belongs to its primitive; a glyph’s optical viewport belongs to the icon library when the imbalance follows it across consumers. Reuse existing components and theme aliases. Keep each correction tied to a finding from the whole-interface review, recheck affected relationships, and preserve independent workspace changes.
Fix the owner responsible for the task: the page for page layout, its primitive for a shared control state, or the library for glyph imbalance repeated across consumers. Reuse components and theme aliases, verify affected relationships and preserve independent workspace changes. A development fix need not first become a formal review finding.
Check the states that can conflict with the change: for example selected with hover or keyboard focus, expanded with focus, busy with disabled, and validation with long content. Check the narrow container and the width just on each side of a changed breakpoint. Preserve input drafts, keyboard focus, dismissal, and access to the primary action when layout changes. Follow the [testing policy](../testing.md) for checks that exercise behavior; do not add assertions that merely repeat CSS declarations.
@@ -118,11 +120,11 @@ When build or hot-reload state is uncertain, create a separate application insta
<a id="verify"></a>
## 5. Verify behavior and comparable images
Verify the result in the actual application where reachable. Supplement it with production-component fixtures for precise or hard-to-reach states, clearly labeling that source. Use the same content, theme, locale, viewport, zoom, device scale, interaction state, and content anchor for each comparison. Let fonts, data, and transitions settle; a static capture mode may suppress motion in the fixture, but must retain the intended final state.
Inspect the affected result and directly affected neighbors in the actual page. If a required scene is unavailable, report the missing check, reason and next verification; labeled production-component fixtures provide partial evidence, not an actual-page pass. Extra screenshots and comparisons are required when requested or needed to explain broad changes or assess regression risk; routine edits need no separate report. This changes recordkeeping, not the minimum inspection or existing GIF rules. For a comparison, match content, theme, locale, viewport, zoom, device scale, interaction state and content anchor; let fonts, data and transitions settle.
Save final captures in a separate directory and pair them by scene identity and matching conditions.
When producing a comparison, save final captures separately and pair them with the corresponding starting scene under matching conditions.
Check matching capture IDs, dimensions and conditions against the declared scene inventory. Resolve mismatches by correcting the scene or capture conditions. Do not stretch an image, silently change its crop, or present a reconstructed fixture as an earlier application screenshot. A comparison report proves neither complete change coverage nor visual quality: reconcile the expected scenes with the final changes and inspect every image yourself.
For retained comparisons, check dimensions and capture conditions; use scene IDs when there is an inventory. Correct mismatched conditions instead of stretching images, silently changing crops or presenting a reconstructed fixture as an earlier application screenshot. Inspect the delivered images and check that they support the stated scope.
Two captures with the same rendered-source fingerprint demonstrate the capture and reporting workflow, not a UI improvement. An actual before-and-after comparison captures the starting implementation before editing and the resulting implementation afterward. Keep that distinction visible in the delivered report.
@@ -131,22 +133,24 @@ Use equal-sized paired crops with the same content origin when a full page hides
<a id="deliver"></a>
## 6. Deliver the complete evidence
Present each case as scene and problem, design judgment, then its screenshot or paired comparison immediately below. Add a caption naming what to inspect, what each side means, and the source. Do not collect unrelated cases into a detached screenshot wall. If the difference is only faintly visible or the image omits the relationship, choose stronger evidence instead of presenting it as a design exemplar.
An ordinary handoff states what changed, what was checked and any material gap; a short explanation or screenshot can suffice. For a requested detailed case report, place the scene/problem and design judgment beside its image, caption the source and explain what to inspect. Avoid detached screenshot collections or images that do not show the claimed relationship.
Present each proposition with a concise explanation and its before-and-after pairs, before on the left and after on the right, linked to the originals. Identify actual application captures and isolated production-component scenes separately. If the user requests all changes, reconcile the final diff against the scene map and cover every changed visible position, including nested controls; state any missing evidence explicitly.
When a before/after comparison is part of the deliverable, label both sides and distinguish application captures from isolated component scenes. If the user requests all changes, reconcile that scope with the final diff, including nested controls, and state missing evidence. Do not require a paired report for every ordinary correction.
For each reviewed region, report one of: no visible defect found in the stated conditions, a defect with evidence, or not inspected. A finding includes the compared objects, applicable rule owner, intended relation, visible difference, correction, plausible wrong fix, retest condition, and any justified exception. Do not average away a known alignment/grouping failure with unrelated passing checks or infer an overall pass from representative glyphs.
For comprehensive reviews, distinguish inspected-without-findings, defects and uninspected regions. For ordinary changes, report the result and material gaps without a per-region status ledger. Add rule ownership, wrong-fix examples, exceptions or retest conditions only when useful to explain a finding. Known defects cannot be canceled by unrelated passing checks.
Report the checks actually run and their outcome, and distinguish automated metadata checks, behavior tests, and human visual inspection. Include material limitations such as an unavailable application state or an untested platform. Do not describe the work as fully verified while required scenes or checks remain outstanding.
Before handoff, apply the [completion criteria](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop) to the final diff and retained evidence. A concise result with scope, comparison and relevant checks suffices for a local change; a large report is not required. Before PR or push, check cumulative interactions and evidence validity, and rerun only invalidated or missing checks. This is an agent review obligation, not automatic visual approval by CI. Human review for consequential design decisions follows the [escalation rule](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation); explicitly requested or periodic human audits supplement daily checks.
Use the [UI change workflow](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop) at handoff, review and push to check new cumulative effects or invalidated evidence, not to repeat completed inspection. No extra report is required for an unchanged result. Tests and agent inspection do not replace the existing [designer/product approval requirement](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation).
### Comparison delivery and cumulative changes
Keep before on the left and after on the right; use horizontal browsing on narrow screens rather than splitting a pair vertically. Mark regions with a few boxes, shared axes with dashed lines, and locations with arrows only on the after side; annotations must not obscure the text or icons under inspection. Keep annotations as a removable overlay and retain untouched original captures. Explain the relationship before its comparison; retain both endpoints for cross-group findings, supplementing with detail crops and complete pages when needed. Recheck a general report tool’s default presentation against this section; successful generation does not establish left/right layout or after-side annotation compliance.
For a formal comparison report, use before on the left and after on the right. Add non-obscuring annotations only when helpful, on the after image, and retain originals; a removable overlay is useful for interactive reports. Choose a readable narrow-screen presentation rather than requiring a special report interface. Ordinary handoffs may use simple labeled images or concise text; the original GIF requirements remain unchanged.
Deduplicate cumulative summaries by location: pair the earliest reliable before image with the final implementation, retaining comparable conditions. Keep intermediate rounds only as historical evidence, not separate final results; reverted proposals are not current results. List another session's retained changes separately without claiming them. Disclose missing baselines or uncertain ownership. Record actual checks without adding repeated runs as extra coverage.
For an all-changes summary, trace each claim to the cumulative diff, current owner and retained evidence. Separate net changes from behavior already in the baseline; resolve later user revisions before naming final values. Label older captures as historical when they no longer show the current result, and distinguish source-confirmed behavior from a scene inspected again. Feed reusable decisions back to their rule owner and contrasting cases, not local pixel values or an unsupported whole-product pass.
<a id="further-exploration"></a>
## Further Exploration
+27 -23
View File
@@ -8,11 +8,11 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
## 概览
本流程用于按影响范围审查 UI 改动,以及用户明确要求的完整界面审查。先以页面或弹窗为上下文,比较受影响的组间与组内关系,再记录发现并执行已授权的修改。[原则与案例参考](../ui-design-review-cases.zh.md)提供判断依据,例子不定义覆盖范围。[必需审查流程](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)统一规定触发条件、执行时机和完成标准。
本手册用于明确要求的完整审查,以及由改动影响或回归风险决定需要采用的证据步骤。普通开发按 [UI 改动流程](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)走轻量路径,不逐节执行本手册。[原则与案例参考](../ui-design-review-cases.zh.md)提供判断依据,不是必做清单。既有测试、GUI PR GIF 和设计/产品审批继续按原有规则执行。
对齐审查先核对图标完整空间(含有意保留的内部留白)、文字列和间距,再检查实际轮廓。热区不等于图标框;不逐个拉齐 glyph 的像素边缘。判断顺序见[对齐原则](../ui-design-review-cases.zh.md#alignment)。
依据[图文同色规则](../../.agents/skills/dsh-ui-icons/SKILL.md#placement-and-use)检查关联的图标与文本,包括子菜单值及其箭头、搜索占位文字及其放大镜。比较明暗主题中的实际颜色与透明度,并明确记录语义例外。
按[同前景色规则](../../.agents/skills/dsh-client-ui-ux/references/icons.md#placement-and-use)核对关联图标与文字,包括子菜单值与箭头、搜索占位文字与放大镜;检查明暗主题中的实际颜色和透明度,保留语义例外。
## 目录
@@ -28,16 +28,16 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
<a id="proposition"></a>
## 1. 确定受审页面或弹窗
写明用户任务和受影响的页面或弹窗,编辑前按下文选择范围;日常改动不默认扩大为整个产品审查。明确要求完整审查时,列出页面与弹窗,检查范围内所有区域及相关状态。局部审查要说明范围,不将结果表述为整页结论。
确定用户任务和受影响页面或弹窗。涉及多个区域、使用方或设计取舍时记录范围;明确的局部修改不需要单独写计划。用户明确要求完整审查时,列出指定页面/弹窗及相关状态。不能把局部检查表述成整页结论。
在这个范围内应用[判断优先级](../ui-design-review-cases.zh.md#judgment):先检查对齐与空间分组,再审查密度、层级、状态、组件选型、图标光学和几何。每个发现写成可观察的关系,例如内容与隔壁组的距离反而小于与自身标签的距离。遵循用户指定的顺序和授权;完整审查可以发现多个相关问题,已有实施授权不需要为常规调整重复请求批准。
在这个范围内应用[判断优先级](../ui-design-review-cases.zh.md#judgment):先检查对齐与空间分组,再审查密度、层级、状态、组件选型、图标光学和几何。每个发现写成可观察的关系,例如内容与隔壁组的距离反而小于与自身标签的距离。遵循用户指定的顺序和授权;完整审查可以发现多个相关问题,常规调整的实施授权不能替代[既有设计/产品审查要求](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation)。
编辑前阅读[客户端 UI Skill](../../.agents/skills/dsh-client-ui-ux/SKILL.md)和适用架构。宽度与输入方式变更使用[响应式 Skill](../../.agents/skills/dsh-responsive-ui/SKILL.md),令牌规则查阅[样式参考](../web-styling.zh.md),圆角几何查阅[圆角标准](../ui-radius.zh.md)。本流程补充审查和证据步骤,不另建一套视觉令牌。
<a id="review-scope"></a>
### 按视觉影响选择范围
编辑前用几句话记录:改动位置 → 受影响的组与共用轴线 → 使用方及条件 → 计划保留的证据。涉及多个页面或变体时再用表格追踪。文件数量和包边界不能决定视觉影响范围。
按下表选择检查范围。较大改动可用几句任务笔记追踪受影响的组、使用方与风险条件;多区域审查确有需要时再用覆盖表。局部修改无需场景清单。文件数量和包边界不能决定视觉影响范围。
| 改动 | 最小检查范围 |
|---|---|
@@ -49,14 +49,16 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
只有相关实现、尺寸、容器约束、内容行为和状态等价时,共享组件使用方才能复用证据;记录归类和依据。不确定的场景直接检查。源码排查全部使用方不等于逐页打开过。问题在初始区域外重复出现,或改法影响邻接关系时,扩大范围。无关发现单独记录,不静默开始整个产品重设计。
按改动选择挑战条件:尺寸检查长文案或多行内容,颜色检查明暗主题,布局检查窄容器和受影响断点,交互检查共存状态。遵守所属响应式与行为要求,不穷举无关组合,也不用固定截图数替代覆盖判断。同一任务中复用未变规则和有效证据,一组相关修改完成后再截图,不逐条 CSS 调整都重拍。只读取相关原则和案例;设计判断不明确时再补充查阅。
对每项变化执行[最低检查要求](../../.agents/skills/dsh-client-ui-ux/SKILL.md#minimum-checks-for-affected-ui):颜色必须查明暗主题;布局、间距、字体和尺寸必须查窄容器与长内容;交互必须查受影响路径和状态。局部修改也要完成这些检查,但不要求每个条件都保存截图。遵守所属响应式与行为要求,不穷举无关组合,也不用固定截图数替代覆盖判断。同一任务中复用未变规则和有效证据,一组相关修改完成后再截图,不逐条 CSS 调整都重拍。只读取相关原则和案例;设计判断不明确时再补充查阅。
<a id="inspect"></a>
## 2. 检查任务路径与实现
从正常入口打开实际应用。按用户的顺序阅读:页面用途、当前内容或选择、相关说明、主操作,再到次要操作。找出对齐、间距、强调方式或控件行为与该顺序冲突的位置。检查所属组件及其计算样式,区分真实布局缺陷与内容、加载或尚未结束的动画造成的现象。
从正常应用入口检查受影响的结果。复用正在运行且使用当前实现的实例,不为每次微调单独重启或重建。沿相关任务路径检查,必要时使用计算样式区分布局缺陷与内容、加载或未结束动画造成的现象。
将候选问题写成简短发现:场景与状态、对任务可见的影响、源码归属、最小建议改法,以及不适用该改法的条件。优先高频或共享控件和明显缺陷。搜索到源码中的数值差异,只能说明需要检查,不能直接成为统一数值的理由。
普通改动说明问题位置、可见现象、修正和验证即可。源码归属、替代方案及改法不适用的条件影响判断时再补充。优先处理可见或共享缺陷;源码数值不同本身不能成为统一数值的理由。
诊断间距时,分别记录布局框、margin、padding、文字行框和字形可见边缘。明确关闭控件按按钮边缘还是图标框对齐,并核对不同图标尺寸下入口与菜单的文本内缩。可见留白的标注不等于测得了 CSS margin。
### 在整个界面内核对适用规范
@@ -66,7 +68,7 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
### 把关系明确写出来
阅读 CSS 前,先说清语义组,并在保留上下文的截图或简图上画出共用轴线,包含跨组件的重复元素。为每个区域记录以下内容;这些是审查笔记,不是新的产品配置文件。
确定相关分组和对齐参照。关系复杂、有争议或需要解释时,才画轴线或标注保留上下文的截图;画图不是阅读 CSS 的前置条件。下表是记录审查时可选的提示,不要求每次局部修改逐项填写。
| 观察项 | 记录内容 | 示例 |
|---|---|---|
@@ -87,27 +89,27 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
### 为审查建立覆盖记录
多区域审查使用下列记录;局部改动可用简短任务笔记记录相同事实。不把固定案例数量当作目标。在上下文中检查选定页面、分组与改变关系的展开区,关联共享组件的受影响使用方及有依据的等价分组。
明确要求完整审查,或确有多个区域需要追踪时使用下表。普通局部修改不需要覆盖表,也不必另写笔记重述所有字段。检查受影响的关系,对共享使用方分组时保留有依据的等价判断。
| 页面/弹窗与入口 | 语义组及跨组关系 | 已查条件 | 发现与归属方 | 修正后证据 | 尚未检查 |
|---|---|---|---|---|---|
| 填实际入口与区域 | 指定比较两端、完整框或文字轴 | 内容、宽度、主题、状态 | 记录规则和责任组件 | 对照图与相关行为结果 | 写明限制,不留含糊的“已覆盖” |
每个发现按“现象 → 比较对象与预期关系 → 结构或计算样式证据 → 最小责任改法 → 可能破坏的邻接关系 → 复查条件”书写。证据不足的候选保留为待核实,不先批量修改;已确认的同类问题则沿实际使用方继续查找,直到本次声明范围内的重复位置均有结果。
复杂问题再说明比较对象、预期关系、支持证据和可能受损的邻接关系。错误修法或复查条件有助于判断时再写;普通发现采用前面的简短形式。证据不足的候选保留为待核实,在选定范围内排查已确认的重复问题,不顺带开展无关清理。
<a id="baseline"></a>
## 3. 保留起点
编辑前记录起始源码并拍摄相关场景。已有未提交改动也是起点的一部分:用可恢复快照或精确文件副本保留它,并以该快照比较本轮变化,不能假定 `HEAD` 就是当前可见应用。证据同时保留源码版本、场景输入和截图条件。
明确要求对照,或较大改动及回归风险需要对照时,保留可恢复的起始版本与相关截图。普通局部修改不要求额外源码快照或修改前截图。保留基线时需包含已有未提交改动,不能假定 `HEAD` 就是当前可见应用,并记录源码身份与截图条件。
把基线截图及其源码身份、截图条件保存在本地证据目录。
需要截图时,把图像及其条件保存在工作树根目录的 `.ui-review/`,或另行明确选择的本地目录。仓库忽略 `.ui-review/` 中的生成证据;审查工具仍可安装在工作树之外。
实施前,为每处计划中的可见修改对应一个场景。展开行、对话框、不同提供商表单,以及加载或禁用状态中的位置发生变化时,也要纳入。折叠父组件的一张截图不能覆盖隐藏控件。破坏性或暂不可达的状态使用安全 fixture 数据,不要仅为截图而保存对用户真实任务的修改。
完整审查或需要追踪多个状态的对照使用场景映射;简单改动可直接检查受影响位置。展开行、弹窗及相关加载/禁用状态影响结论时应纳入,折叠父组件不能覆盖隐藏控件。破坏性或暂不可达状态使用安全 fixture 数据,不为截图而修改用户的真实任务。
<a id="implement"></a>
## 4. 修改最小责任组件
修改产生不一致的归属方。页面布局由该页面负责,共享控件状态由基础组件负责;若一个 glyph 在多个使用位置都失衡,则由图标库负责它的光学视口。复用现有组件和主题别名。每处修正对应整体审查中的一个发现,复查受到影响的关系,并保留工作区已有的独立改动。
修改负责该任务的归属方:页面布局由页面负责,共享控件状态由基础组件负责,跨使用方重复的 glyph 失衡由图标库负责。复用组件与主题别名,验证受影响关系并保留工作区已有独立改动。开发修正无需先写成一条正式审查发现。
检查可能与本次修改冲突的状态,例如选中与悬停或键盘焦点叠加、展开与焦点叠加、忙碌与禁用叠加,以及校验信息与长内容共存。检查窄容器和变更断点两侧的临界宽度。布局变化时保留输入草稿、键盘焦点、关闭方式及主操作的可达性。按[测试策略](../testing.zh.md)验证行为,不添加只复述 CSS 声明的断言。
@@ -118,11 +120,11 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
<a id="verify"></a>
## 5. 验证行为与可比较的截图
能够到达时,在实际应用中验证结果。精确或难以到达的状态可补充生产组件 fixture,并明确标注来源。每组对照保持相同内容、主题、语言、视口、缩放、设备像素比、交互状态和内容锚点。等待字体、数据和过渡稳定;fixture 的静态截图模式可以停用动画,但必须保留预期终态。
在实际页面中检查受影响结果及直接相关的邻接元素。必要场景不可用时,说明缺了哪项检查、原因和下一步验证方法;标明来源的生产组件 fixture 可提供部分证据,不能算作实际页面通过。用户要求对照,或解释较大改动、评估回归风险需要时,才额外保存截图和对照;常规修改无需独立报告。这里简化的是留档,不是最低检查或既有 GIF 要求。制作对照时保持内容、主题、语言、视口、缩放、设备像素比、交互状态和内容锚点一致,并等待字体、数据和过渡稳定。
把最终截图保存到独立目录,并按场景身份及相同条件配对。
制作对照时,将最终截图单独保存,并按对应的起始场景和相同条件配对。
按声明的场景清单检查两侧截图 ID、尺寸和条件是否一致。条件不符时修正场景或截图条件。不要拉伸图像、默默改变裁剪范围,或把重建 fixture 当作更早的应用截图。对比报告不能证明改动覆盖完整,也不能证明视觉质量;仍需将预期场景与最终改动核对,并亲自检查每张图。
保留对照时检查尺寸和截图条件;有场景清单时再核对场景 ID。修正不匹配的条件,不拉伸图片、默默改变裁剪,或把重建 fixture 当作更早的应用截图。检查交付图片,确认它们支持所声明的范围。
两次截图的渲染源码指纹相同时,只能演示截图与报告流程,不能证明 UI 改进。真正的前后对照应当在编辑前拍摄起始实现,编辑后拍摄结果实现。交付报告中也要清楚保留这一区别。
@@ -131,22 +133,24 @@ description: "把 DSH 页面或弹窗作为整体审查,按设计原则说明
<a id="deliver"></a>
## 6. 交付完整证据
每个案例按“场景与问题 → 设计判断 → 紧接下方的截图或成对对照”呈现。图注说明看哪里、两侧分别表示什么及来源。不要把无关案例集中成脱离正文的截图墙。差异只有勉强可辨、或图片没有包含所讨论关系时,应选择更有解释力的证据,不能将其当作设计范例。
普通交付说明改了什么、检查结果和重要缺口,简短解释或截图即可。明确要求详细案例报告时,将场景/问题、设计判断与图片放在一起,图注说明来源及关注位置。避免脱离正文的截图集合或无法展示所述关系的图片。
每个命题附简短说明与前后对照,左侧为修改前,右侧为修改后,并链接原图。分别标明实际应用截图与生产组件隔离场景。用户要求全部修改时,将最终 diff 与场景映射逐项核对,覆盖每个发生变化的可见位置,包括嵌套控件;缺少的证据明确说明。
交付需要前后对照时,标明两侧含义并区分真实应用截图与隔离组件场景。用户要求全部修改时,将该范围与最终 diff 核对,包含嵌套控件,并说明缺少的证据。普通修正不要求每项制作成对报告。
每个受审区域分别报告:在所述条件下未发现可见缺陷、有证据的缺陷、或尚未检查。发现包含比较对象、适用规则所有方、预期关系、可见差异、修正、看似合理的误修、复查条件及合理例外。不能用无关检查通过来抵消已知的对齐/分组失败,也不能由代表 glyph 推断整体通过。
完整审查区分已查无发现、有缺陷和尚未检查的区域。普通修改报告结果和重要缺口,无需逐区域状态账目。规则归属、错误修法、例外或复查条件有助于解释发现时再补充。无关检查通过不能抵消已知缺陷。
报告实际运行的检查及结果,区分自动元数据校验、行为测试与人工读图。说明重要限制,例如应用状态暂不可达或某个平台尚未测试。必需场景或检查未完成时,不要声称已经完整验证。
交付前,按[完成标准](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)核对最终 diff 与保留证据。局部改动提供简短范围、对照和相关检查结果即可,不要求大型报告。推 PR 或推送前检查累计影响与证据有效性,只补做失效或缺失的检查。这是 agent 的执行要求,不代表 CI 自动批准视觉质量。重要设计决策按[人工审查条件](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation)处理;明确要求或定期开展的人工审查补充日常检查。
交付、评审和推送时按 [UI 改动流程](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop)检查新增累计影响或失效证据,不重复已经完成的检查。结果未变时无需额外报告。测试和 agent 检查不能替代既有[设计/产品审批要求](../../.agents/skills/dsh-client-ui-ux/SKILL.md#design-review-escalation)。
### 对比交付与累计改动
对照固定为左前右后;窄屏保持成对横向浏览,不自动拆成上下两张。右图用少量框标区域、虚线标共同轴、箭头指位置;标注不能遮住待检查的文字或图标。标注作为可关闭的叠加层,保留未修改的原始截图。每个案例先解释关系,再紧接对照;涉及跨组关系时保留两端,必要时另附局部放大和完整页面。 通用报告工具的默认排版仍需按本节复查;生成成功不表示已经满足左右布局和右图标注要求。
正式对照报告采用左前右后。有助于解释时才在修改后图片上添加不遮挡内容的标注,并保留原图;交互报告可使用可关闭的叠加层。窄屏选择可读的呈现方式,不强制制作专门的报告界面。普通交付可用简单标明含义的图片或简短文字;既有 GIF 要求保持不变。
累计汇总按位置去重:在条件可比的前提下,将最早可靠的修改前截图与最终实现配对。中间轮次只保留为历史证据,不作为独立最终成果;撤销方案不计入现存成果。另一会话的保留改动单列,不归为本次成果。缺少起点或归属不确定时明确说明。记录实际检查,不将重复执行数量当作新增覆盖。
汇总全部修改时,将每项结论追溯到累计 diff、当前实现所有方及保留证据。区分净改动与基线已有行为,先消解用户后续修订,再给出最终数值。旧截图不再代表当前结果时标为历史证据,并区分源码核验与重新打开场景检查。将可复用的判断回写规则所有方及正反案例,不把局部像素值或缺乏依据的全产品通过结论变成规范。
<a id="further-exploration"></a>
## 延伸阅读
+33 -24
View File
@@ -9,14 +9,14 @@
en: 4be954bceeeb7940
zh: d91f6595cd3e85f0
/ui-design-principles-and-review-cases/summary:
en: 1f22942d484be109
zh: 0b0ac297328aa0f2
en: 75120a3fd02294c9
zh: 498343d7b9b30e46
/ui-design-principles-and-review-cases/table-of-contents:
en: 683b785991a7952d
zh: e0a9f88db5cf9c45
en: c5680dfc600a7495
zh: c76ec05c69f1e93c
/ui-design-principles-and-review-cases/what-a-review-must-judge:
en: e51c9f121c18c998
zh: 93b35a247216be09
en: eeff4a5f5e487908
zh: 51eab38ccd10190b
/ui-design-principles-and-review-cases/review-the-entire-page-or-modal-as-one-unit:
en: 324c8d9a0ff36ebb
zh: 3a4c64e15b59f98f
@@ -36,11 +36,11 @@
en: f8b0f72251aa044f
zh: a8b05ce5f3da4221
/ui-design-principles-and-review-cases/principle-examples:
en: 1ff7bb879b274363
zh: 4659578bcdea82a3
en: 7b8a8bdc5acc11d6
zh: 96820c11d2e61787
/ui-design-principles-and-review-cases/1-alignment:
en: 31d18363696173e9
zh: d2bbca62e7ea0120
en: 0cc9d24851a11497
zh: f05bda4fcdf5deac
/ui-design-principles-and-review-cases/1-alignment/text-metrics-and-unequal-content:
en: 14558eb00e9b4902
zh: 333b28dabfccbd6c
@@ -51,17 +51,23 @@
en: 81d165cc1c5c1f7e
zh: 4aef022e141ced64
/ui-design-principles-and-review-cases/1-alignment/example-a3-alignment-between-rows-and-compound-controls:
en: 0f387b953c8c3e34
zh: 5362d3467a65ec59
en: 9e7fae1a4e649ffd
zh: c3992d7dbedbb247
/ui-design-principles-and-review-cases/1-alignment/example-a4-centering-a-content-group-within-its-container:
en: 478771b47daf2cba
zh: 0eee64751cff6c94
/ui-design-principles-and-review-cases/1-alignment/example-a5-visible-size-and-center-of-peer-controls:
en: dbbb588cbae149f0
zh: 1352a6eb01d8340f
en: 376359e2a1de44e9
zh: 2a0b0e4472efefb7
/ui-design-principles-and-review-cases/1-alignment/example-a6-text-starts-across-triggers-and-menus:
en: 1afbbce3f4908bf2
zh: aaf54b32b90a2c82
/ui-design-principles-and-review-cases/1-alignment/example-a7-choosing-the-close-control-edge:
en: c5e9a409c13637bc
zh: 37c915f187d6e9f7
/ui-design-principles-and-review-cases/2-spatial-grouping:
en: f50b8851f4ee2ac3
zh: 63076543756c294e
en: 5a2aebab7e8ab498
zh: 46a18d4ddde7fccc
/ui-design-principles-and-review-cases/2-spatial-grouping/example-g1-separating-content-from-its-action-group:
en: a4c0b1f1ad441155
zh: 360ed71994a101a8
@@ -87,11 +93,11 @@
en: 10fb29eddaac1951
zh: e05636b47e860966
/ui-design-principles-and-review-cases/4-information-hierarchy:
en: 56ecb557d54c1c2e
zh: ede48f8451af4111
en: 7e86e6ff5cd55742
zh: 852a1bb0361134a6
/ui-design-principles-and-review-cases/4-information-hierarchy/example-c1-color-emphasis-within-one-information-unit:
en: a43042a829d82c52
zh: 1609a1cdfe0bbe39
en: f64d746a9106c340
zh: ce3fa91dad4d9ae2
/ui-design-principles-and-review-cases/5-control-states:
en: d247699132b484a0
zh: b71e25d834ce2633
@@ -102,11 +108,14 @@
en: 7a49fdd5a601aa48
zh: e2f9de0d5628a878
/ui-design-principles-and-review-cases/7-icon-optics:
en: 21c39c7bbfd87382
zh: e30f9a6593b32265
en: ff60eb03e9724e71
zh: 8df625c33f3fc3aa
/ui-design-principles-and-review-cases/7-icon-optics/example-o1-optical-alignment-of-different-icon-types:
en: 3301d847dac58dc9
zh: 1eba9e56df9a39f2
en: 3858a85bdf6ee111
zh: 9c8242a594df069f
/ui-design-principles-and-review-cases/7-icon-optics/example-o2-shared-artwork-at-different-consumer-sizes:
en: 6f29eb80bfe3baf4
zh: eb3161af01dd752e
/ui-design-principles-and-review-cases/8-control-geometry-and-corner-relationships:
en: 262cfa8e7dfb969f
zh: 4987ad06db795885
+34 -12
View File
@@ -8,14 +8,14 @@ English | [中文](ui-design-review-cases.zh.md)
## Summary
Use this reference to review an entire page or modal as one visual unit. Judge alignment and spatial grouping across all regions, together with hierarchy, states, color, size and corner geometry. The examples illustrate transferable relationships; they do not define the set of screens to review. Images appear below their corresponding analysis. See the [review cookbook](cookbook/reviewing-ui-design.md) for the workflow and evidence requirements.
Consult the relevant cases when a design relationship is unclear. Ordinary changes inspect affected relationships in page/modal context; they do not require every case, an inventory or a full-page audit. The whole-interface review sections apply when a comprehensive review is explicitly requested. Examples explain transferable principles rather than coverage. See the [review cookbook](cookbook/reviewing-ui-design.md) for optional detailed methods and the owning workflow for effort levels.
## Table of Contents
- [What a review must judge](#judgment)
- [Review the entire page or modal](#whole-interface-review)
- [Applicable DSH standards](#review-baseline)
- [How to use examples](#case-selection)
- [Review the entire page or modal as one unit](#whole-interface-review)
- [Combine the applicable standards first](#review-baseline)
- [Choose cases that expose a design decision](#case-selection)
- [Principle examples](#case-index)
- [1. Alignment](#alignment)
- [2. Spatial grouping](#grouping)
@@ -40,8 +40,6 @@ The page or modal provides the reference for composition; the [impact scope](coo
The reference diagrams explain relationships; they are not implementation captures or accepted before-and-after results. The examples below explain particular principles and do not establish coverage of the page or modal under review.
<a id="combined-cases"></a>
<a id="whole-interface-review"></a>
## Review the entire page or modal as one unit
@@ -119,6 +117,8 @@ Use these examples to understand a relationship that is unclear. Apply the same
| [A3](#case-preview-toolbar) | Alignment between rows and compound controls |
| [A4](#case-empty-center) | Centering a content group within its container |
| [A5](#case-composer-controls) | Visible size and center of peer controls |
| [A6](#case-trigger-menu-text) | Text starts across triggers and menus |
| [A7](#case-close-control-edge) | Choosing the close-control edge |
| [G1](#case-title-actions) | Separating content from its action group |
| [G2](#case-team-sections) | Spacing between complex sections |
| [G3](#case-plugin-groups) | Nested groups along the reading order |
@@ -126,6 +126,7 @@ Use these examples to understand a relationship that is unclear. Apply the same
| [C1](#case-search-color) | Color emphasis within one information unit |
| [S1](#case-sidebar-state) | Persistent selection beside temporary hover |
| [O1](#case-file-optics) | Optical alignment of different icon types |
| [O2](#case-chevron-consumers) | Shared artwork at different consumer sizes |
| [R1](#case-model-radius) | Radii across container and control roles |
| [R2](#case-checkbox-radius) | Small selection controls within a form |
| [R3](#case-automation-radius) | Justified geometry differences between roles |
@@ -133,7 +134,7 @@ Use these examples to understand a relationship that is unclear. Apply the same
<a id="alignment"></a>
## 1. Alignment
The [alignment skill](../.agents/skills/dsh-ui-alignment/SKILL.md) owns shared axes, complete layout boxes, indentation and text metrics. Use the examples below to apply those decisions.
The [alignment reference](../.agents/skills/dsh-client-ui-ux/references/alignment.md) owns shared axes, complete layout boxes, indentation and text metrics. Use the examples below to apply those decisions.
![Alignment diagram: peer rows share axes while account and header controls retain their own geometry](assets/ui-design-review/principles-alignment.svg)
@@ -176,7 +177,7 @@ The comparison below shows actual preset cards with unequal descriptions. On the
**Scene and relationship.** Panel controls sit above file-display controls and an “Open in app” split button. The two rows belong to one preview header, while each row contains operations with different scopes.
**Failure and correction.** Each component may be internally centered while the assembled header has unrelated right insets, heights, and group gaps. Relate the upper icon boxes to the complete lower control, preserving internal icon whitespace rather than aligning extra hit padding or an individual glyph’s painted pixels. Align peer control centers; keep display controls together and separate the external-open action. Treat the split button as one unit. Do not force its arrow onto a column intended for an unrelated panel action.
**Failure and correction.** Each component may be internally centered while the assembled header has unrelated right insets, heights, and group gaps. Relate the upper icon boxes to the complete lower control, preserving internal icon whitespace rather than aligning extra hit padding or an individual glyph’s painted pixels. Align peer control centers; keep display controls together and separate the external-open action. Treat the split button as one unit. Reducing its outer width can equalize visible gaps while retaining the preceding icon columns; verify both segment targets and the frame’s contribution to layout. Do not force its arrow onto a column intended for an unrelated panel action.
**Acceptance.** Inspect both rows with the path, tabs, and content edge visible. Repeat with a long path and a narrow pane. A row of standalone icons is not a substitute for the actual split control.
@@ -198,10 +199,24 @@ The comparison below shows actual preset cards with unequal descriptions. On the
**Acceptance.** Compare both bases and centers in empty, enabled, busy/stop, and narrow layouts. Review the toolbar alongside the composer outline, not as two isolated button screenshots. A reference product's unequal controls do not override an explicit DSH requirement for equal bases.
<a id="case-trigger-menu-text"></a>
### Example A6: Text starts across triggers and menus
**Scene and relationship.** A permission trigger uses a larger, heavier icon than its menu rows, but their corresponding labels should start on one axis. A search prompt, result heading and option label can share a similar reading edge.
**Correction and acceptance.** Sum each surface’s border, padding, leading slot and gap before adjusting it. Matching only icon sizes or outer card edges leaves different text starts. Check the assembled open menu, longer labels and narrow layouts; distinguish device-pixel rounding of portal coordinates from a whole inset mismatch.
<a id="case-close-control-edge"></a>
### Example A7: Choosing the close-control edge
**Scene and relationship.** A modal has a close glyph inside a larger button and a footer action at the content edge. An icon-box edge and a button edge imply different header insets.
**Correction and acceptance.** Name the intended edge before changing the shared header. If the full button aligns with the footer action, retain the icon’s internal centering instead of pulling it to that edge. An explicitly icon-aligned composition remains a distinct variant. Check short and wrapping titles, description/body combinations and footer actions, and preserve the target size.
<a id="grouping"></a>
## 2. Spatial grouping
The [spacing skill](../.agents/skills/dsh-ui-spacing/SKILL.md) owns semantic groups, internal/external gap relationships and visible whitespace. The cases below explain how to apply it.
The [spacing reference](../.agents/skills/dsh-client-ui-ux/references/spacing.md) owns semantic groups, internal/external gap relationships and visible whitespace. The cases below explain how to apply it.
![Grouping diagram: equally spaced blocks versus a nested section with smaller inner gaps and larger section separation](assets/ui-design-review/principles-grouping.svg)
@@ -283,7 +298,7 @@ Make the next reading or decision step visible without turning every text elemen
Use emphasis to express a task-relevant difference. A current selection, an actionable error, and the data needed for a decision deserve stable recognition. Labels and supporting metadata can be quieter, but making useful text difficult to read is not hierarchy. Inspect size, weight, color, position, and surrounding whitespace together; piling all five onto every heading removes meaningful contrast.
Use the [icon owner](../.agents/skills/dsh-ui-icons/SKILL.md) for icon/label foreground roles and their semantic exceptions; example C1 applies that rule to search fields.
Use the [icon owner](../.agents/skills/dsh-client-ui-ux/references/icons.md) for icon/label foreground roles and their semantic exceptions; example C1 applies that rule to search fields.
Typography participates in geometry: compare text starts, baselines and line boxes with the intended font, long translations and relevant font preferences. Pair size with line height and use the weight limits from [visual foundation](../.agents/skills/dsh-client-ui-ux/SKILL.md#visual-foundation). Content, code, terminal and fixed interface roles need not scale identically; check the [font-setting owner](../packages/client/ui-theme/README.md) before treating a deliberate difference as a defect. Correct the container allocation before shrinking useful text to force alignment.
@@ -292,7 +307,7 @@ Typography participates in geometry: compare text starts, baselines and line box
**Scene and relationship.** Compare the empty automation search with the expanded sidebar search. Both pair a magnifier with a prompt, but one makes the icon darker and the other makes the text darker. A model submenu can make the same mistake by pairing a tertiary value with a primary-colored chevron.
**Correction and acceptance.** Give each prompt or value one foreground role, including its associated magnifier or chevron; darkening only the text or only the icon leaves the mismatch. Compare computed color, opacity, disabled styling, and the background together; two identical color tokens can still differ after an ancestor fades one child. Test empty, typed, focused, disabled, light, and dark variants. Typed query text and an independently actionable clear button need not use the placeholder's weaker role.
**Correction and acceptance.** Give the empty-field prompt one foreground role, including the leading icon. Compare computed color, opacity, disabled styling, and the background together; two identical color tokens can still differ after an ancestor fades one child. Test empty, typed, focused, disabled, light, and dark variants. Typed query text and an independently actionable clear button need not use the placeholder's weaker role. A submenu value and its trailing chevron also form one value: a muted model name with a darker chevron fails that relationship even when their geometry is correct.
<a id="states"></a>
## 5. Control states
@@ -328,7 +343,7 @@ Keep the control's label, visible bounds, focus behavior, and click target consi
<a id="icon-optics"></a>
## 7. Icon optics
The [icon skill](../.agents/skills/dsh-ui-icons/SKILL.md) owns interface icon roles, slots, color and optical balance. [Official artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md) retains its separate role.
The [icon reference](../.agents/skills/dsh-client-ui-ux/references/icons.md) owns interface icon roles, slots, color and optical balance. [Official artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md) retains its separate role.
<a id="case-file-optics"></a>
### Example O1: Optical alignment of different icon types
@@ -337,6 +352,13 @@ The [icon skill](../.agents/skills/dsh-ui-icons/SKILL.md) owns interface icon ro
**Correction and acceptance.** Preserve the depth indent and common text start. Normalize the placement slots, then compare visible centers and perceived weight within them. Do not move the label to compensate for one glyph, or align all depths to one edge. Inspect at normal size and magnification, with selected backgrounds and long names; the magnified view diagnoses the drawing, while normal size determines whether the result balances.
<a id="case-chevron-consumers"></a>
### Example O2: Shared artwork at different consumer sizes
**Scene and relationship.** A chevron appears beside a menu label and inside a larger floating button. Enlarging its drawing within the same view box changes both appearances.
**Correction and acceptance.** Compare the directional family, both weights and actual consumer sizes. Keep a modest supporting glyph beside text; reduce the floating control’s icon size if needed without shrinking its button. A large glyph sheet alone does not establish balance in either composition.
<a id="geometry"></a>
## 8. Control geometry and corner relationships
+32 -10
View File
@@ -8,13 +8,13 @@ description: "DSH 设计判断参考:对齐、空间分组、信息层级、
## 概览
用本参考把整页或整个弹窗作为一个视觉整体审查。在所有区域之间统一判断对齐与空间分组,同时比较层级、状态、颜色、尺寸和圆角。下文例子解释可以迁移的关系,不限定要审查哪些页面;参考图紧接对应分析展示。执行流程与证据要求见[审查 cookbook](cookbook/reviewing-ui-design.zh.md)。
设计关系不明确时查阅相关案例。普通修改以页面/弹窗为上下文检查受影响关系,不要求遍历全部案例、建立清单或完整审查整页。下文整界面审查章节用于明确要求的完整审查。案例解释可迁移的原则,不定义覆盖范围。详细方法按需查阅[审查手册](cookbook/reviewing-ui-design.zh.md),执行深度以所属流程为准。
## 目录
- [审查究竟要判断什么](#judgment)
- [以整页或整个弹窗作为审查单位](#whole-interface-review)
- [适用的 DSH 规范](#review-baseline)
- [先综合适用规范](#review-baseline)
- [如何用例子理解原则](#case-selection)
- [原则示例索引](#case-index)
- [1. 对齐](#alignment)
@@ -40,8 +40,6 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
本文原理图解释元素关系,不是实现截图或已验收的修改前后对照。下文例子用于讲清具体原则,不代表已覆盖当前要审查的页面或弹窗。
<a id="combined-cases"></a>
<a id="whole-interface-review"></a>
## 以整页或整个弹窗作为审查单位
@@ -119,6 +117,8 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
| [A3](#case-preview-toolbar) | 多排控件与复合控件的对齐 |
| [A4](#case-empty-center) | 内容组相对所属容器居中 |
| [A5](#case-composer-controls) | 并列控件的可见尺寸与中心 |
| [A6](#case-trigger-menu-text) | 入口与菜单之间的文本起点 |
| [A7](#case-close-control-edge) | 明确关闭控件的对齐边缘 |
| [G1](#case-title-actions) | 内容与操作组的分隔 |
| [G2](#case-team-sections) | 复杂分区之间的间距 |
| [G3](#case-plugin-groups) | 阅读顺序中的多层分组 |
@@ -126,6 +126,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
| [C1](#case-search-color) | 同一信息单元的图文强调 |
| [S1](#case-sidebar-state) | 持续选中与临时悬停共存 |
| [O1](#case-file-optics) | 不同类型图标的光学对齐 |
| [O2](#case-chevron-consumers) | 共享图形在不同使用尺寸下的表现 |
| [R1](#case-model-radius) | 不同层级容器与控件的圆角 |
| [R2](#case-checkbox-radius) | 表单中小型选择控件的轮廓 |
| [R3](#case-automation-radius) | 不同角色之间有依据的几何差异 |
@@ -133,7 +134,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
<a id="alignment"></a>
## 1. 对齐
[对齐 skill](../.agents/skills/dsh-ui-alignment/SKILL.md)负责共享轴线、完整布局框、层级缩进和文字度量;以下案例用于说明这些判断。
[对齐参考](../.agents/skills/dsh-client-ui-ux/references/alignment.md)负责共享轴线、完整布局框、层级缩进和文字度量;以下案例用于说明这些判断。
![对齐示意:同类行共享轴线,账号和标题操作保留各自几何关系](assets/ui-design-review/principles-alignment.svg)
@@ -176,7 +177,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**场景与关系。**面板控制位于上排,文件显示控制与“在应用中打开”分段按钮位于下排。两排属于同一个预览页头,每排又包含作用范围不同的操作。
**错误与修正。**各组件内部可能已经居中,组装后仍出现无关的右边距、高度和分组间距。先按上排图标框与下排完整控件建立尾端关系,保留图标内部留白;不能直接对齐额外热区,也不能追齐单个 glyph 的像素边缘。再对齐并列控件中心,把显示控制收成一组,与外部打开操作分开。分段按钮按完整单元处理,不强迫其箭头与无关的面板操作共用列轴。
**错误与修正。**各组件内部可能已经居中,组装后仍出现无关的右边距、高度和分组间距。先按上排图标框与下排完整控件建立尾端关系,保留图标内部留白;不能直接对齐额外热区,也不能追齐单个 glyph 的像素边缘。再对齐并列控件中心,把显示控制收成一组,与外部打开操作分开。分段按钮按完整单元处理。缩小其外部宽度可以在保留前方图标列轴的同时,使可见间距相等;应检查两个分段的点击区域,以及边框对布局尺寸的贡献。不强迫其箭头与无关的面板操作共用列轴。
**验收。**保留路径、标签页与内容边缘,一并观察两排;再检查长路径和窄面板。用一排独立图标代替实际分段控件,不能验证这个关系。
@@ -198,10 +199,24 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**验收。**检查空输入、可发送、忙碌/停止和窄布局中的底板与中心。保留输入框外轮廓一起观察,不能只看两张独立按钮截图。参考产品里不同大小的操作控件,不能覆盖 DSH 已明确的等大底板要求。
<a id="case-trigger-menu-text"></a>
### 示例 A6:入口与菜单之间的文本起点
**场景与关系。**权限入口使用比菜单行更大、更重的图标,但对应文字应从同一轴线开始。搜索提示、结果分组标题和选项文字也可能共享类似的阅读边缘。
**修正与验收。**先合计各表面的 border、padding、前导槽和 gap,再调整实现。只统一图标大小或卡片外缘,仍可能留下不同的文字起点。检查组装后的展开菜单、长标签和窄布局;区分浮层坐标按设备像素取整的微差与整段内缩错误。
<a id="case-close-control-edge"></a>
### 示例 A7:明确关闭控件的对齐边缘
**场景与关系。**弹窗的关闭图形位于较大的按钮内,底部操作靠内容边缘。图标框边缘与按钮边缘对应不同的标题栏内缩。
**修正与验收。**修改共享标题栏前先明确目标边缘。如果完整按钮与底部操作对齐,就保留图标在按钮内居中,不再把图标拉到该边缘。明确采用图标对齐的构图仍是独立变体。检查短标题、换行标题、说明/正文组合与底部操作,并保留点击区域大小。
<a id="grouping"></a>
## 2. 空间分组
[间距分组 skill](../.agents/skills/dsh-ui-spacing/SKILL.md)负责语义组、组内外间距关系和可见留白;以下案例说明如何应用。
[间距分组参考](../.agents/skills/dsh-client-ui-ux/references/spacing.md)负责语义组、组内外间距关系和可见留白;以下案例说明如何应用。
![分组示意:等间距堆叠与分层分组的区别,组内较近,分区之间更远](assets/ui-design-review/principles-grouping.svg)
@@ -283,7 +298,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
强调必须表达与任务有关的差异。当前选择、可处理的错误和决策依据,需要稳定可辨;标签和补充信息可以更弱,但让有用的文字难以阅读不是层级设计。联合观察字号、字重、颜色、位置和周围留白;每个标题都把五种强调用满,反而失去有意义的区别。
图标与文字的前景角色及语义例外由[图标专项](../.agents/skills/dsh-ui-icons/SKILL.md)负责;案例 C1 将该规则用于搜索框。
图标与文字的前景角色及语义例外由[图标参考](../.agents/skills/dsh-client-ui-ux/references/icons.md)负责;案例 C1 将该规则用于搜索框。
字体也是几何的一部分:结合预期字体、长翻译与相关字体设置,比较文字起点、基线和行框。字号配套行高,并遵循[视觉基础](../.agents/skills/dsh-client-ui-ux/SKILL.md#visual-foundation)的字重限制。正文、代码、终端与固定界面角色不必同幅缩放;把差异判为缺陷前,核对[字体设置所有方](../packages/client/ui-theme/README.zh.md)。先修容器分配,不用缩小有用文字来强行对齐。
@@ -292,7 +307,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**场景与关系。**比较空的自动化搜索框与展开的侧栏搜索框。二者都是放大镜配合提示文字,但一处图标更深,另一处文字更深。模型子菜单把三级色的值与主色箭头搭配时,也会产生同样的问题。
**修正与验收。**为每个提示或值指定一个前景色角色,包含其关联的放大镜或箭头;只加深文字或只加深图标仍然不一致。联合检查计算后的颜色、透明度、禁用样式与背景;祖先单独淡化某个子元素时,相同 token 仍可能产生不同结果。检查空值、输入文字、焦点、禁用及明暗主题。已输入的查询文字和具有独立操作的清除按钮,不必使用较弱的占位提示色。
**修正与验收。**为空输入提示指定一个前景色角色,包含前导图标。联合检查计算后的颜色、透明度、禁用样式与背景;祖先单独淡化某个子元素时,相同 token 仍可能产生不同结果。检查空值、输入文字、焦点、禁用及明暗主题。已输入的查询文字和具有独立操作的清除按钮,不必使用较弱的占位提示色。子菜单的值与尾部 chevron 也构成同一个值;即使几何正确,弱化的模型名称配更深的箭头仍不符合该关系。
<a id="states"></a>
## 5. 控件状态
@@ -328,7 +343,7 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
<a id="icon-optics"></a>
## 7. 图标光学
[图标 skill](../.agents/skills/dsh-ui-icons/SKILL.md)负责界面图标的角色、槽位、颜色和视觉平衡;[官方 artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md)保留独立职责。
[图标参考](../.agents/skills/dsh-client-ui-ux/references/icons.md)负责界面图标的角色、槽位、颜色和视觉平衡;[官方 artwork](../.agents/skills/dsh-official-plugin-artwork/SKILL.md)保留独立职责。
<a id="case-file-optics"></a>
### 示例 O1:不同类型图标的光学对齐
@@ -337,6 +352,13 @@ DSH 的视觉审查优先关注对齐与空间分组。先识别任务和语义
**修正与验收。**保留层级缩进和共同文字起点,先统一放置槽,再比较槽内可见中心与视觉重量。不能移动文字去补偿单个 glyph,也不能把所有深度压到同一边缘。检查正常尺寸和放大图,包含选中底色与长文件名;放大图用于诊断绘制,正常尺寸决定结果是否平衡。
<a id="case-chevron-consumers"></a>
### 示例 O2:共享图形在不同使用尺寸下的表现
**场景与关系。**同一个 chevron 既出现在菜单文字旁,也出现在较大的悬浮按钮中。在同一 viewBox 内放大绘制范围,会同时改变两处表现。
**修正与验收。**对比各方向、两种字重及实际使用尺寸。文字旁保留适度的辅助图形;必要时缩小悬浮控件里的图标,但不缩小按钮。只看放大的图标总表,不能证明这两种构图都平衡。
<a id="geometry"></a>
## 8. 控件几何与圆角关系
+1 -1
View File
@@ -115,7 +115,7 @@ One UI feature = one plugin package (`src/client/` browser half). A multi-domain
## Styling and localization
For the required UI review, trace affected assembled pages and shared-component consumers; file ownership does not bound visual impact. Use the [scope selection](../../docs/cookbook/reviewing-ui-design.md#review-scope) before editing, and the [completion criteria](../../.agents/skills/dsh-client-ui-ux/SKILL.md#required-review-loop) before handoff.
Use [dsh-client-ui-ux](../../.agents/skills/dsh-client-ui-ux/SKILL.md) for UI design rules and review requirements. The client test ladder below still applies.
[docs/web-styling.md](../../docs/web-styling.md) is authoritative. Shared `--dsw-*` tokens and global sheets live in `ui-theme/src/styles/`; feature components consume semantic aliases through CSS Modules and `clsx`, with no literal colors, component library, or Tailwind. Code comments are English. Design judgment beyond those rules — feedback surfaces, loading states, overlay safety, platform window adaptation — follows [dsh-client-ui-ux](../../.agents/skills/dsh-client-ui-ux/SKILL.md); responsive layout and telling a mobile or touch client from a desktop one follow [dsh-responsive-ui](../../.agents/skills/dsh-responsive-ui/SKILL.md).