Repository navigation
Commit 3ae62ac
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuYadPn6DUd9mNCVDjwzayER)_
repo:objectstack#1 · os-sales · session_01L6bhgVDwx4yqxWdY3Rurnk
Part of #36047 (slice 1 of 2: theme tokens and shared controls; slice 2,
the per-site text sizes and weights, lands last and carries `Fixes`).
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 所有控件的圆角统一成 8:按钮、输入框、下拉、工具栏控件、菜单、页签条(原来 12);列表单元格里的关联小块(原来
4)、表单里选中的人员和关联小块、列表的「排序」「筛选」和已设条件小块(原来全圆)也都是 8。页签条里面的页签按钮、菜单里的一行是
6,和外框同心。
- 卡片仍是 14,弹出框、点击弹出的浮层(选择器等,仍是 20)、抽屉的圆角都不变。鼠标悬停出现的提示框和悬停卡片、下拉列表跟着控件从 12
变 8;弹框和抽屉右上角关闭按钮的小圆角从 10 变 6。单选/多选的彩色标签保持全圆(标签形状未改)。
-
内容区改成白底:列表页、记录页、看板、顶栏都是白的;侧边栏是唯一的浅灰面,和内容区之间有一条细线。深色主题下内容区是最深的一档,侧边栏亮一档。白底范围按
Sales 13:11 的选择:整个控制台都变白(裁定记录
7063106408),不只是列表页和记录页。首页、仪表盘、报表、搜索、通知、文档页、设置和
Studio、登录注册页、公开表单页(`/f/:slug`)、公开分享的记录页(`/s/:token`)的底色也一起变白(它们的布局不动);设备授权页和首次安装设置页自己用另一种灰,仍是灰底;卡片、弹框本来就是白的,靠描边分开。
- 彩色标签的字重从 600 降到 500(字号、形状、颜色不变)。
- 字号 13→14/12、其他 600→500 不在这个 PR,在片 2,最后落地。
## What changes
**Theme tokens** (`ui/apps/console/src/index.css`, the iOS theme layer)
- `--radius-md: 0.5rem` and `--radius-sm: 0.375rem` are set on `:root`,
instead of being derived from `--radius` (`calc(var(--radius) - 2px)` /
`- 4px`, which gave 12px and 10px). `--radius` stays 0.875rem, so
`rounded-lg` cards keep their 14px corner. The checkbox's own
`--radius-sm` override is unchanged.
- What follows the two tokens beyond the controls: tooltips
(`TooltipContent`) and hover cards (`HoverCardContent`) are
`rounded-md`, so they go 12 → 8px; select and command lists and their
rows follow `rounded-md` / `rounded-sm`; the dialog and sheet close
buttons (`rounded-sm`) go 10 → 6px. `Popover` content keeps 20px through
the console's popper-wrapper rule, so the combobox and lookup pickers
are unchanged.
- `--background` is white (`0 0% 100%`, was `240 24% 97%`). The sidebar
is `240 12% 96%` (was `240 24% 98%`), drawn at 70% by the frosted rule,
so it reads as a light grey beside white; its existing 1px border is the
hairline. Dark: `--background` stays `240 6% 6%`, the sidebar is `240 6%
11%` (was 8%), one step lighter.
**Every page whose content background changes** (Sales chose the whole
console, ruling of record 7063106408 on #36047, over list and record
pages only). `--background` is the console's page canvas, so every page
drawn on it goes from the grouped grey to white:
- the top bar (its frosted fill is `--background` at 72%);
- an app's pages: object lists (grid, kanban, calendar, gantt and the
other list views), record pages and record drawers, dashboards, reports,
the app home;
- the console home, search results, notifications / inbox, the docs
pages;
- Setup and Studio pages (their layout is not changed; only the canvas
behind them);
- the sign-in, sign-up, password, e-mail-verification and OAuth-consent
pages (`AuthShell` / `OAuthConsentPage` draw on `bg-background`); the
device-authorization and first-run setup pages draw on `bg-muted` (`240
18% 94%`, unchanged) and stay grey;
- the public form page (`/f/:slug`, `FormPage mode="public"`, which
draws no canvas of its own) and the shared-record page (`/s/:token`,
`SharedRecordPage` on `bg-background`); the internal `/forms/:name` is
an app page;
- inputs, outline buttons and the in-cell editor layer, which were
already drawn on `bg-background` and now match the page they sit on.
Cards (`--card`), popovers and dialogs were white already and are
unchanged; they are told apart from the page by their border. The
sidebar is the one surface that stays grey. In the dark theme the canvas
value is unchanged (`240 6% 6%`); only the sidebar moves one step
lighter.
**Shared controls**
- `Badge` (`@object-ui/components`, Shadcn-synced) is `font-medium`
instead of `font-semibold`, through a declared local patch
`badge-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`. The
upstream registry file is vendored as
`scripts/__tests__/fixtures/shadcn-registry/badge.registry.txt` (pinned
sha256, captured at the same shadcn-ui/ui commit as the other fixtures).
Round-trip equality is pinned unavailable with its reason: the file
already ships the undeclared `whitespace-nowrap` edit.
`shadcn-components.json` names the patch.
- Lookup chips in a list cell (`OBJECT_GRID_TABLE_DENSITY` in
`@object-ui/plugin-grid`): `rounded` → `rounded-md`.
- The people chip in `LookupField` and the selection tray chip
(`@object-ui/fields`): `rounded-full` → `rounded-md`.
- The list's empty Sort / Filter buttons and its condition chips
(`ListConditionControls`, `@object-ui/plugin-list`): `rounded-full` →
`rounded-md`.
## Why
#36047 items 3 and 4 (maintainer-approved Attio comparison): one corner
value for controls, and a white content area with the grey left only to
the sidebar, changed on theme variables and shared components rather
than page by page. Items 1 and 2 (two text sizes, two weights) are slice
2.
## Verification
Measured in a real browser (CRM example, console dev server against it)
before and after, 1440 and 375, light and dark: list (account), record
page (opportunity), kanban (opportunity pipeline), create dialog.
Computed values, screenshots and the script:
`/mnt/project-files/build-seat1/36047/` (`before/`, `after/`,
`measure.json`, `shots.cjs`).
| | before | after |
|---|---|---|
| buttons, inputs, comboboxes in the content area | 12px (sort/filter
pills 9999px) | 8px |
| record page tab triggers | 10px | 6px |
| cards (kanban card, record side card) | 14px / 16px | 14px / 16px |
| create dialog | 20px | 20px (unchanged here; #35980 sets its own) |
| content background, light | rgb(246,246,249) | rgb(255,255,255) |
| sidebar, light | rgba(249,249,251,0.7) | rgba(244,244,246,0.7) |
| content / sidebar, dark | rgb(14,14,16) / rgba(19,19,22,0.7) |
rgb(14,14,16) / rgba(26,26,30,0.7) |
| sidebar right border | 1px | 1px |
| badge weight | 600 | 500 |
Tests: `scripts/__tests__/shadcn-local-patches.test.ts` (the new `badge`
family: fixture present, hash, anchors apply to registry bytes, marker,
round-trip pinned), and every test file that mentions the changed
classes or tokens, plus `packages/plugin-list/src` (192 files, 2180
tests, all pass). eslint on the changed files: 0 errors.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes (eslint on every changed
file locally; CI's Lint UI is the full reading).
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English (the 维护者速读 block is the
maintainer's summary, in the maintainer's language).
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgVDwx4yqxWdY3Rurnk)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgVDwx4yqxWdY3Rurnk
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgVDwx4yqxWdY3Rurnk -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 13d1e95 commit 3ae62ac
11 files changed
Lines changed: 117 additions & 15 deletions
File tree
- .changeset
- ui
- apps/console/src
- packages
- components
- src/ui
- fields/src/widgets
- plugin-grid/src
- plugin-list/src/conditions
- scripts
- __tests__
- fixtures/shadcn-registry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
409 | | - | |
410 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
411 | 419 | | |
412 | 420 | | |
413 | 421 | | |
414 | 422 | | |
415 | 423 | | |
416 | 424 | | |
417 | 425 | | |
418 | | - | |
| 426 | + | |
| 427 | + | |
419 | 428 | | |
420 | 429 | | |
421 | 430 | | |
| |||
490 | 499 | | |
491 | 500 | | |
492 | 501 | | |
493 | | - | |
494 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
495 | 505 | | |
496 | 506 | | |
497 | 507 | | |
498 | 508 | | |
499 | 509 | | |
500 | 510 | | |
501 | 511 | | |
502 | | - | |
| 512 | + | |
| 513 | + | |
503 | 514 | | |
504 | 515 | | |
505 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2238 | 2238 | | |
2239 | 2239 | | |
2240 | 2240 | | |
2241 | | - | |
| 2241 | + | |
2242 | 2242 | | |
2243 | 2243 | | |
2244 | 2244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
234 | 245 | | |
235 | 246 | | |
236 | 247 | | |
| |||
0 commit comments