Repository navigation
fix(admin): pin @cloudflare/kumo so prebuilt CSS matches runtime - #1630
Conversation
The admin ships a prebuilt dist/styles.css generated by scanning Kumo's dist at build time, but declared @cloudflare/kumo: ^2.4.0. Consumers resolved a newer Kumo whose primary Button paints via a gradient span (bg-linear-to-b + --kumo-button-emphasis-gradient-*) absent from that prebuilt CSS, rendering the button transparent (white text on a white card) and leaving passkey login unreachable. Pin Kumo to an exact version in the catalog so build-time and runtime Kumo are always identical, and rebuild admin. Closes #1607
🦋 Changeset detectedLatest commit: 0e25460 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-playground | 0e25460 | Jun 26 2026, 12:19 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-do | 0e25460 | Jun 26 2026, 12:19 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | 0e25460 | Jun 26 2026, 12:19 PM |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/auth-atproto
@emdash-cms/blocks
@emdash-cms/cloudflare
@emdash-cms/contentful-to-portable-text
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/plugin-cli
@emdash-cms/plugin-types
@emdash-cms/registry-client
@emdash-cms/registry-lexicons
@emdash-cms/sandbox-workerd
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-field-kit
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
There was a problem hiding this comment.
This is a focused, correct packaging fix for the root cause described in #1607. The admin package ships a prebuilt dist/styles.css generated by scanning Kumo at build time, so a floating ^2.4.0 catalog range lets consumers resolve a different Kumo version than the one Tailwind saw. Pinning @cloudflare/kumo to an exact catalog version guarantees build-time and runtime Kumo match, which is the only real fix for invisible components caused by missing scanned classes.
What I checked:
- Read the full diff and all changed files (changeset,
pnpm-workspace.yaml,pnpm-lock.yaml). - Confirmed only
@emdash-cms/adminbuilds a prebuiltdist/styles.cssvia itsbuildscript that calls@tailwindcss/cli; other workspace packages using Kumo (blocks, plugin packages) either don't ship CSS or export source files, so the catalog pin is appropriate. - Verified
dist/is gitignored, so the "rebuild admin" step correctly does not appear in the diff as committed output. - Confirmed the changeset is scoped to
@emdash-cms/adminas a patch, which matches the user-visible bug fix.
No issues found. The approach is right, the change is minimal, and the comment in pnpm-workspace.yaml documents the coupling so future maintainers don't reintroduce a floating range.
What does this PR do?
Fixes invisible primary buttons in the admin (notably Sign in with Passkey on the login page and Register Passkey in the add-passkey flow), which render as white text on a transparent/white background and leave passkey login unreachable.
Root cause is version skew, not the Tailwind scanner (contrary to the issue's diagnosis). The admin package ships a prebuilt
dist/styles.cssgenerated by scanning whatever@cloudflare/kumois resolved at admin build time. It declared@cloudflare/kumo: ^2.4.0, so:Buttonuses a solidbg-kumo-brandbackground.^2.4.0lets a consumer resolve 2.6.0, whose primaryButtonpaints its background through anaria-hiddengradient span usingbg-linear-to-b+from-(--kumo-button-emphasis-gradient-start)/to-(--kumo-button-emphasis-gradient-end).!text-whitelands on a white card.The fix pins
@cloudflare/kumoto an exact version in the catalog so build-time and runtime Kumo are always identical (a floating range fundamentally can't work for a package that ships prebuilt, scanned CSS), and rebuilds admin. A comment inpnpm-workspace.yamldocuments the coupling so the range isn't reintroduced.No breaking changes across 2.4.1 -> 2.6.0: the only breaking Kumo changes in that span were in 2.4.0 (Sidebar API removals), which predate our locked baseline. Everything else is additive (new Toolbar, opt-in chart prop) plus the Button gradient treatment.
Closes #1607
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (or targeted tests for my change) — full admin suite (1014 tests) green on Kumo 2.6.0pnpm formathas been runAI-generated code disclosure
Screenshots / test output
Verified in a browser against the
simpledemo dev server (which serves the rebuilt prebuiltdist/styles.csswith Kumo 2.6.0 component markup):background-image: linear-gradient(oklch(...), rgb(34, ...))— the issue reportednone.