Skip to content

Drag the logo to see each element's classes - #92

Merged
adamXbot merged 1 commit into
websitefrom
feat/website-logo-picker
Oct 31, 2026
Merged

adamXbot merged 1 commit into
websitefrom
feat/website-logo-picker

Conversation

@adamXbot

Copy link
Copy Markdown
Collaborator

Drag the fxcss logo in the header or footer and it becomes fxcss pick for the website: the element under it gets the picker's pink outline, with its classes labelled underneath (above it when the element reaches the bottom of the window). It labels the nearest element that has a class. When some of those classes come from the site's own stylesheet rather than Tailwind's utility layer, only they are shown, so the 41-class "Zoom into the tab" button reads .detail-toggle; utility-only lists are shortened.

Releasing or pressing Escape returns the logo, instantly with reduced motion, and Escape no longer reaches the time machine or search while the logo is held. The click that ends a drag is swallowed, so dropping the logo on a link activates nothing, while plain clicks still go home and modified clicks still open new tabs. Touch input is unchanged. The logo link can no longer be dragged natively, for example to the bookmarks bar.

Validation:

  • 58 browser tests passed in Chromium and Firefox, including 8 new logo picker tests. Removing the click suppression makes three of them fail across both browsers.
  • Typecheck, lint, 37 unit tests (3 new), the installer tests, build, deploy dry run and production checks for 52 pages passed locally.
  • Checked by hand in both browsers: header and footer logos, retro mode, the landing flight, touch taps and touch drags.

Expected CI failure: npm run check:audit reports GHSA-g3hv-75wg-m249 (moderate; minimatch before 11.0.1, reached only through the shadcn CLI dev dependency). This branch leaves the lockfile unchanged from website, so the audit step should fail there too, and CI will skip the build and browser steps that follow it. Those pass locally.

🤖 Generated with Claude Code

Press the header or footer logo and drag it: the mark lifts off and outlines the element under the pointer in the colours of `fxcss pick`, with its classes labelled underneath. Classes from the site's own stylesheet are preferred over Tailwind's layered utilities, and long utility lists are shortened.

Releasing or pressing Escape flies the logo home. The click that ends a drag is swallowed, so neither the logo nor whatever it was dropped on activates, while plain clicks, modified clicks and touch input behave as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamXbot
adamXbot merged commit b9479c8 into website Oct 31, 2026
1 of 3 checks passed
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.

1 participant