What was observed
objectui run's temporary app (packages/cli/src/utils/app-generator.ts, the @theme block around line 335 and the @source list documented just above it) declares the ObjectUI theme token for token — the in-source comment says so outright, "Token-for-token the set packages/components/src/index.css declares" — and then scans ../node_modules/@object-ui/*/dist/**/*.js to recover the library's utilities.
That is the one place in this repository that implements published-state rendering for plugins, and it is the shape the guides deliberately do not teach (objectui#4858 retired exactly this advice for hand-written consumers).
Why it is worth a card now
Follow-up to #4929 / PR #6403, which gave @object-ui/plugin-grid and @object-ui/plugin-kanban a published style.css built in the @object-ui/fields subtraction shape. With those two sheets, the restatement is partly replaceable by imports:
@import 'tailwindcss';
@import '@object-ui/components/style.css';
@import '@object-ui/fields/style.css';
@import '@object-ui/plugin-grid/style.css';
@import '@object-ui/plugin-kanban/style.css';
It is not fully replaceable, and that is the whole question. The temporary app is generated for whatever the user's app uses, and the other @object-ui/plugin-* packages (charts, gantt, calendar, map, editor, view, form, …) still publish no stylesheet. Drop the @theme restatement and the scan today and those plugins lose their themed utilities in objectui run — the same defect #4929 fixed, moved.
So the options are a judgement call, not a mechanical edit:
- leave it as is until every plugin ships a sheet;
- import the sheets that exist and keep the restatement + scan as the fallback for the ones that do not (largest sheet, but correct everywhere);
- give the remaining plugins the same build step first, then remove the restatement in one stroke.
Deliberately not touched in PR #6403, whose ruling scoped it to two packages.
Evidence
Filed unassigned, as an observation from the #4929 implementation. No change is proposed here.
Generated by Claude Code
Generated by Claude Code
What was observed
objectui run's temporary app (packages/cli/src/utils/app-generator.ts, the@themeblock around line 335 and the@sourcelist documented just above it) declares the ObjectUI theme token for token — the in-source comment says so outright, "Token-for-token the setpackages/components/src/index.cssdeclares" — and then scans../node_modules/@object-ui/*/dist/**/*.jsto recover the library's utilities.That is the one place in this repository that implements published-state rendering for plugins, and it is the shape the guides deliberately do not teach (objectui#4858 retired exactly this advice for hand-written consumers).
Why it is worth a card now
Follow-up to #4929 / PR #6403, which gave
@object-ui/plugin-gridand@object-ui/plugin-kanbana publishedstyle.cssbuilt in the@object-ui/fieldssubtraction shape. With those two sheets, the restatement is partly replaceable by imports:It is not fully replaceable, and that is the whole question. The temporary app is generated for whatever the user's app uses, and the other
@object-ui/plugin-*packages (charts, gantt, calendar, map, editor, view, form, …) still publish no stylesheet. Drop the@themerestatement and the scan today and those plugins lose their themed utilities inobjectui run— the same defect #4929 fixed, moved.So the options are a judgement call, not a mechanical edit:
Deliberately not touched in PR #6403, whose ruling scoped it to two packages.
Evidence
packages/cli/src/utils/app-generator.ts— the@themeblock and the@sourcelist, with their own comments explaining why both exist.packages/plugin-grid/package.json/packages/plugin-kanban/package.jsonafter PR fix(plugin-grid,plugin-kanban): publish the stylesheet their themed utilities need #6403 —"./style.css": "./dist/index.css", built byscripts/build-css.mjs.packages/plugin-*/package.jsondeclares that export.Filed unassigned, as an observation from the #4929 implementation. No change is proposed here.
Generated by Claude Code
Generated by Claude Code