Skip to content

feat: close 0.4.0 consumer gaps for controls, tokens, and preset-base - #82

Merged
ROBJkE merged 1 commit into
masterfrom
cursor/consumer-control-gaps-35c8
Oct 31, 2026
Merged

ROBJkE merged 1 commit into
masterfrom
cursor/consumer-control-gaps-35c8

Conversation

@ROBJkE

@ROBJkE ROBJkE commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Minor release for apps already on 0.3.0 (designSystem: '@fyrst/ui', Panda 2.4). No prop was removed or renamed. This does not publish or tag a release.

  • Button and form controls set font-family: inherit, so with preflight off they follow the app font instead of the user-agent face. The same inherit is set on the prompt textarea, the flyout trigger, and the carousel's default prev/next buttons.
  • Button fullWidth (default false) sets width: 100% and box-sizing: border-box.
  • AlertRoot hideIcon (default false) omits the icon slot, including a custom #icon, so the flex gap collapses.
  • Font tokens: fonts.sans (Figtree, then the system sans), fonts.serif, fonts.mono, and semantic fonts.body. The package does not ship font files. Load the face in the app (root README). Preflight does not apply fonts.sans on its own.
  • Color tokens: restored brand.pale.lucid and primary / danger / success / warning / info .lucid.700 and .lucid.900 with the values from before the muted *.subtle mixes. Added primary.subtle, primary.subtle.light, and primary.text. *.subtle stays the preferred muted fill; it is a grey mix, not the same wash.
  • Required asterisk uses color: 'danger' again (solid red). It had been danger.subtle.
  • @pandacss/preset-base is a dependency of @fyrst/ui, and panda lib inlines that module into dist/panda/preset.mjs. Apps on designSystem: '@fyrst/ui' no longer add it themselves. @pandacss/dev stays a peer. A string preset name is still resolved from the app, which is why 0.3.0 apps had to install it.

Breaking / visual

  • No removed or renamed props. fullWidth and hideIcon default to false.
  • With preflight off, buttons and text fields paint in the inherited face instead of the user-agent face.
  • fonts.sans now starts with Figtree. That changes paint only when the face is loaded; otherwise it falls through to the system sans.
  • primary and brand.pale gained DEFAULT plus children. color: 'primary' and brand.pale still resolve.
  • The required asterisk is solid danger again.
  • Drop a direct @pandacss/preset-base dependency that existed only so designSystem could resolve. Token-only configs can use presets: [preset]. A leftover string '@pandacss/preset-base' still has to be installed in the app.

Test plan

  • bun run lint
  • bun run build (panda lib inlines preset-base; no runtime import in dist/panda/preset.mjs)
  • bun run test (component tests and Nuxt tests, including the consumer contract and preset tokens)
  • Playground with preflight off: user-agent button stays Arial, Button and the field input inherit the parent face, default vs fullWidth, alert with icon vs hideIcon, required asterisk is danger red in dark and light

Button font, full width, alert icon, and required asterisk before and after
User-agent button in Arial
Button label inheriting Cascadia Mono
Alert with the default icon
Alert with hideIcon and no leftover gap

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Controls inherit the app font when preflight is off, Button gains fullWidth,
and AlertRoot can omit its icon. Restored the status lucid washes plus
primary.subtle, and the required asterisk uses danger again. The design-system
preset inlines @pandacss/preset-base so apps no longer install it themselves.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@ROBJkE
ROBJkE merged commit a5ed02b into master Oct 31, 2026
1 check passed
@ROBJkE
ROBJkE deleted the cursor/consumer-control-gaps-35c8 branch October 31, 2026 13:43
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.

2 participants