Skip to content

OpenBitFun 设计系统与组件库(含 Web 端 + 移动端 - #4034

Open
Cinnnnnnndy wants to merge 4 commits into
openBitFun:mainfrom
Cinnnnnnndy:main
Open

Cinnnnnnndy wants to merge 4 commits into
openBitFun:mainfrom
Cinnnnnnndy:main

Conversation

@Cinnnnnnndy

Copy link
Copy Markdown
Contributor

OpenBitFun 设计系统与组件库(含 Web 端 + 移动端)已整理并推送,完整内容入口如下:

1. 离线快速预览(免部署)
附件中的 openbitfun-design-lab.html 是独立单文件版 Design Lab,直接用浏览器打开即可查看所有组件、深浅色主题、图标、移动端典型场景、Demo 像素对比以及 AI Skill 文档。

2. 代码仓库与分支

  • 仓库地址:https://github.com/Cinnnnnnndy/OpenBitFun.git
  • 分支:feat/mobile-design-lab-fusion(最新提交 67272ebf)

3. 核心目录位置(均在 design-system/ 下)

  • packages/design-tokens:系统基础 Token 与触控密度 Token(density-touch.tokens.json)
  • packages/theme-openbitfun:浅色 / 深色主题配色 Token
  • packages/ui:组件库源码(Web 组件在 src/components / src/flow-chat / src/brand,移动端组件在 src/mobile,完整组件清单在 src/registry.ts)
  • apps/design-lab:本地交互式组件实验室源码
  • skills/openbitfun-design-system/SKILL.md:供 AI 编程助手(OpenBitFun / Claude / Codex 等)约束调用该组件库的规范文件(在 Design Lab 的 Skill 页面也可直接下载和复制安装命令)

4. 本地运行与校验

  • 安装依赖后在 design-system/ 目录执行 pnpm dev(无全局 pnpm 时用 corepack pnpm dev)即可启动本地 Design Lab。
  • 执行 pnpm test 可跑完 Token、UI 与 Design Lab 的全部校验和类型检查。

5. 当前进度与交接备注

  • Web 与移动端核心规范(图标、聚焦、悬停、按钮比例、提示卡片高度、输入框、Card)已完成对齐,MobileSelect 示例总览遮罩问题已修复。
  • MobileCard 圆角(16 → 12)与默认内边距(16 → 20)已对齐 Web 卡片,涉及 src/mobile-web 的页面建议合入前核对一次实际效果。
  • 后续待办:将移动端组件里写死的尺寸(如 52 / 56 / 64)收口进触控密度 Token。

Cinnnnnnndy and others added 4 commits October 13, 2026 20:40
Give the top of the page a background: a soft, full-bleed gradient that
starts under the topbar (which is opaque and sticky, so the wash cannot run
behind it), peaks behind the headline and the figure, and is gone before
the picture — the picture keeps the bare canvas it was designed on. The
tint is the page's own ink rather than a colour of its own: a mix toward
content primary greys down in light mode and lifts in dark, so one
expression covers both schemes, and both ends of the gradient are
transparent, so the wash shows no edge anywhere.

The layer needs a stacking context on the hero: the shell paints an opaque
canvas behind the page, and a negative-z layer without one is painted under
that canvas and never seen.

Co-authored-by: OpenBitFun <318544290+bitfun-ai@users.noreply.github.com>
Co-authored-by: Cindy_wxd <209322477+Cinnnnnnndy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant