Repository navigation
feat(ui): ship every package's styles as comark-ui/style.css - #383
Conversation
A server-rendered page had no single stylesheet to import, and adding each package's style.css to an app's CSS broke its build: - Vite 8 minifies CSS with lightningcss 1.33, which throws on comark-time's `@container anchored(...)` query. - Nuxt runs autoprefixer 10.6, which throws "Unknown node type in node creation" on `@supports (prop:value) and selector(...)`. The package build now writes comark-ui/style.css: every dependency's style.css and the Mermaid wrapper's styles, all in the comark layer. The disclosure motion tests `selector(::details-content)` first, and comark-time's style.css leaves out the anchored query, which the components and the HTML renderer still inline.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Important
The new aggregate stylesheet makes comark-ui's direct build depend on pre-existing dependency artifacts, so clean package builds fail and incremental ones can publish stale CSS.
Reviewed changes in 769db17, covering the aggregate stylesheet export, dependency CSS discovery, compatibility changes for lightningcss and autoprefixer, public documentation, and artifact-level tests.
- Aggregate stylesheet — emits every workspace dependency's exported
style.cssplus the Mermaid wrapper CSS ascomark-ui/style.css. - CSS compatibility — keeps comark-time's anchored query in inline component/HTML styles while omitting it from the published sheet, and reorders disclosure feature tests for autoprefixer 10.6.
- Public contract and tests — adds the package export and side-effect-safe SSR guidance, then verifies CSS inclusion, layering, and parser compatibility through public exports.
gpt-5.6-sol | 𝕏
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for GitHub merge request 81d81926-4cc4-4b25-ab46-9e3ebb7f897f. Pushed d59d0ad, resolving README and lockfile conflicts. Frozen dependency refresh, direct comark-ui build, focused lint, stylesheet tests (3), time tests (34), and the previously failing rail Playwright case passed. Base-CI comparison was unavailable because main moved. Pullfrog: no valid findings. Awaiting hosted checks. Network error; retrying the pass. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. No repair warranted. Docs CI failed on GitHub avatar HTTP 504s; all three URLs now return 200. Focused vp lint passed. Stylesheet/time tests require missing dist artifacts; pnpm build setup failed because prepare writes protected .git/config. Pullfrog’s dependency-freshness finding is fixed in a63e25a and its thread is resolved. Checkout remains clean; awaiting successful required checks. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review, covering the fix for dependency stylesheet freshness in direct comark-ui builds.
- Refreshed dependency styles — changed the package build to rebuild all workspace dependencies before loading the tsdown config, eliminating clean-build failures and stale aggregate CSS.
- Verified the direct path — confirmed the dependency filter excludes
comark-uiitself, the direct package build completes, and the aggregate stylesheet tests pass.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
✅ No new P0 or P1 issues found.
Reviewed changes since the last reviewed version, covering the latest reconciliation with main.
- Preserved CSS compatibility — kept the selector-first disclosure feature query while reconciling its explanatory comment with the updated base.
- Reconciled dependency catalogs — adopted
main’sautoprefixer10.6.2catalog entry while retaining the aggregate stylesheet’slightningcssdependency and generated lockfile state. - Maintained the stylesheet contract — confirmed the merge does not change the previously reviewed
comark-ui/style.cssgeneration or direct-build behavior.
gpt-5.6-sol | 𝕏
|
No configured credential can serve this run. Your ChatGPT subscription has hit its usage limit, which resets at 2026-11-13 17:11 UTC. Re-trigger after it resets, or add an API key for this provider, which Pullfrog falls back to automatically. The providers' responses
|

A server-rendered page that uses comark-ui has no single stylesheet to import, and importing each package's
style.cssinto the app's CSS fails the build.@vite-hub/docsworks around it by concatenating the sheets itself and serving them as a hashed public file.The build fails in two tools, neither of them because of the
@supportsrule alone:Unexpected token Function("anchored")on comark-time's@container anchored(fallback:--ctm-below)query. Minimal input:@container anchored(fallback:--b){.p{color:red}}.Unknown node type in node creationon a property test followed byselector(). Minimal input:@supports (display:grid) and selector(:has(a)){a{color:red}}. The same tests the other way round,@supports selector(:has(a)) and (display:grid), parse. The disclosure motion in 7 packages starts with(interpolate-size:allow-keywords) and selector(::details-content).This PR adds
comark-ui/style.css, written by the package build: every dependency'sstyle.cssand the Mermaid wrapper's styles, each in thecomarklayer. The disclosure motion now testsselector(::details-content)first, which browsers read the same way. comark-time'sstyle.cssleaves out the anchored query. The components and the HTML renderer still inline it, so only a page that has nothing but the stylesheet loses the flipped grow direction when the tooltip opens below the text.I checked it with a minimal Vite 8.3.6 app that imports the sheets:
maincomark-ui/style.cssanchored(@tailwindcss/vite4.3.4anchored(packages/ui/test/style.test.tsreads the file through the package's exports, checks it holds each package's sheet, and runs it through lightningcss and autoprefixer. A fixture rendered withcomark-ui/htmlmatches main pixel for pixel in light,.dark, and system dark.pnpm readypasses.cssnano still prints postcss-calc warnings for the sheet; #381 fixes those.