Add compact desktop UI foundations#3
Merged
Merged
Conversation
brxs
marked this pull request as ready for review
July 18, 2026 23:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@protocol-works/design-tokens@0.2.0with shared compact/default control sizing tokens and Tailwind aliases@protocol-works/ui@0.3.0withsize="sm"support across buttons and form controls plus a labelled squareIconButtonWhy
Rabbithole needs dense desktop controls without creating local variants of shared primitives. The existing shared overlays also implemented focus, portals, positioning, and dismissal behavior by hand, making them harder to reuse safely across Rabbithole and the website.
This establishes the reusable foundation before migrating either consumer, while leaving domain-specific instrument controls in Rabbithole.
Consumer impact
mdby default; compact surfaces opt intosize="sm"Popovernow uses the Radix compound API (Popover,PopoverTrigger,PopoverContent)Modalretains its controlled API and adds busy-state dismissal guards, initial focus, backdrop control, and presentation slotsPublish order
@protocol-works/design-tokens@0.2.0@protocol-works/ui@0.3.0Verification
npm cinpm run checknpm pack --dry-runnpm pack --dry-run --workspace @protocol-works/ui