Repository navigation
feat: adopt anfra-cloud's design system - #30
Merged
Merged
Conversation
Port anfra-cloud web's tokens (HDS tiers, Inter and Geist Mono, type roles in place of stock text sizes, 6/10/14 radii, e1/e2 elevation) and restyle the shadcn primitives, the shell and the side panels to match it. The Ask AI card takes anfra's violet and tokens through the plugin theme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Truncate long endorsed app names in the sidebar, and put the logo back in the home link - Keep disabled toolbar and panel commands still on hover and press - Drop the focus outline on menu items, which show focus by their highlight - Go home in place from the missing-app screen - Share one ErrorAlert between the shell and the stage - Take the Ask AI card's hover and pressed colours from the SDK's tokens - Remove AppIcon's unused overlay Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Show keyboard focus on panel tabs and sidebar items, which their containers clipped - One isPlainClick check for in-place links, now also skipping alt-clicks - Home's URL is `/`, so Go home lands where its href says - aria-disabled styling lives in buttonVariants, not in each caller - Single spacing in the About popover - Clear data-pressing when the rail loses pointer capture - Restore the Endorsed tooltip on the check mark - Ask AI card radii follow the SDK's radius; drop fallbacks for tokens the SDK always sets - Drop SidebarRail classes the primitive already has Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Layer the global focus offset under the utilities, so inset focus rings on panel tabs and sidebar items apply - Hand plugins the SDK's designTheme(), reading the anfra-design properties the page now defines: 10px control radius, and the hover, active, selected, sunken, warning and success tokens - Draw the Ask AI menu's elevation as a 1px ring in dark mode - Set data-pressing only once the rail holds the pointer, so it can't stick - Drop the sidebar's own 0ms tooltip delay, so the app's applies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Makes the host look like the anfra-cloud web app by porting its design system and restyling the UI to match.
Tokens:
src/index.cssis a port of anfra-cloud'sweb/src/main.css:text-title,body,heading,label,caption). Tailwind's stock text sizes are switched off.cn()now knows the type roles, so tailwind-merge keeps them.UI primitives: all of
src/components/ui/*takes its classes from the anfra-cloud components. Their APIs still work, but:Shell: the sidebar, top bar, Home page, status line and theme toggle now use anfra-cloud's layout and nav styles:
Panels: the prompt, versions and plugin panels and the command palette are restyled. The plugin panel and the palette are copied from their anfra-cloud counterparts. The Ask AI card gets anfra's violet and the HDS colors through
setPluginTheme.biome.jsonnow ignores.claude/. A worktree's ownbiome.jsonthere was breakingpnpm lint.Deliberate differences
Testing
pnpm typecheck,pnpm lint,pnpm test(48/48) andpnpm buildpass.pnpm dev:anfra.🤖 Generated with Claude Code