Files
mcn-short-video/.workbuddy/skills/impeccable/reference/operate.md
T
maogeigei 5f5b4f1cb7 feat(MCN工作台): 数据功能页+图标扁平化+多项UI优化
- 工作台大版本升级:hash 路由 + 6 数据功能页(周榜/热门账号/账号详情/视频详情/AI写脚本/AI写作复盘),只读复用 dsh 库副本 + 抖音榜单 JSON
- 数据库隔离:复制 dsh 库到 mcn-work-shop/,与 dsh 原库各访问各的(已 gitignore)
- 图标全面扁平化:Lucide 线性 SVG,功能图标亮色区分,文字标题去图标
- 首页重构:功能入口卡 + AI写剧本快捷卡片(2列/8个/5行预览) + 独立帮助页 + header 精简
- 新增设计技能 impeccable + taste-skill(生成网页时参考)
- 修复:fmtTime 跨 script 全局冲突(P0)、弹窗关闭、外链新标签打开等
2026-08-27 12:33:57 +08:00

5.1 KiB
Raw Blame History

Operate mode depth (and Read notes)

When design SERVES the product: app UIs, admin dashboards, settings panels, data tables, tools, authenticated surfaces, anything where the user is in a task. The essentials live in SKILL.md's modes and craft-floor.md; this file is extended depth, written for Operate surfaces. Read surfaces (docs, guides, long-form) take SKILL.md's Read mode plus this file's typography and consistency rules; their prose measure and navigation matter more than component density.

The product slop test

Familiarity is often a feature here. The test is whether a category-fluent user can trust the interface immediately or must pause at every subtly-off component.

Product UI's failure mode isn't flatness, it's strangeness without purpose: over-decorated buttons, mismatched form controls, gratuitous motion, display fonts where labels should be, invented affordances for standard tasks. The bar is earned familiarity. The tool should disappear into the task.

Typography

  • One family is often right. Product UIs don't need display/body pairing. A well-tuned sans carries headings, buttons, labels, body, data.
  • Fixed rem scale, not fluid. Clamp-sized headings don't serve product UI. Users view at consistent DPI, and a fluid h1 that shrinks in a sidebar looks worse, not better.
  • Tighter scale ratio. 1.125–1.2 between steps is typical. More type elements here than on brand surfaces; exaggerated contrast creates noise.
  • Line length still applies for prose (65–75ch). Data and compact UI can run denser; tables at 120ch+ are fine.

Color

Product defaults to Restrained. A single surface can earn Committed (a dashboard where one category color carries a report, an onboarding flow with a drenched welcome screen), but Restrained is the floor.

  • State-rich semantic vocabulary: hover, focus, active, disabled, selected, loading, error, warning, success, info. Standardize these.
  • Accent color used for primary actions, current selection, and state indicators only, not decoration.
  • A second neutral layer for sidebars, toolbars, and panels (slightly cooler or warmer than the content surface).

Layout

  • Responsive behavior is structural (collapse sidebar, responsive table, breakpoint-driven columns), not fluid typography.

Components

Every interactive component has: default, hover, focus, active, disabled, loading, error. Don't ship with half of these.

  • Skeleton states for loading, not spinners in the middle of content.
  • Empty states that teach the interface, not "nothing here."
  • Consistent affordances across the surface. Same button shape. Same form-control vocabulary. Same icon style.
  • Overlays escape their container. An absolutely positioned dropdown inside an overflow: hidden or overflow: auto ancestor gets clipped; reach for <dialog>, the popover API, position: fixed, or a portal.

Motion

  • 150–250 ms on most transitions. Users are in flow; don't make them wait for choreography.
  • Motion conveys state, not decoration. State change, feedback, loading, reveal: nothing else.
  • No orchestrated page-load sequences. Product loads into a task; users don't want to watch it load.

Product constraints

  • Decorative motion that doesn't convey state.
  • Inconsistent component vocabulary across screens. If the "save" button looks different in two places, one is wrong.
  • Display fonts in UI labels, buttons, data.
  • Reinventing standard affordances for flavor (custom scrollbars, weird form controls, non-standard modals).
  • Heavy color or full-saturation accents on inactive states.
  • Modal as first thought. Modals are usually laziness. Exhaust inline / progressive alternatives first.

Product permissions

Product can afford things brand surfaces can't.

  • System fonts and familiar sans defaults.
  • Standard navigation patterns: top bar + side nav, breadcrumbs, tabs, command palettes.
  • Density. Tables with many rows, panels with many labels, dense information when users need it.
  • Consistency over surprise. The same visual vocabulary screen to screen is a virtue; delight is saved for moments, not pages.