Skip to content

Redesign site to match dprint.dev style#64

Merged
dsherret merged 8 commits into
mainfrom
redesign-site-dprint-dev-style
Jun 28, 2026
Merged

Redesign site to match dprint.dev style#64
dsherret merged 8 commits into
mainfrom
redesign-site-dprint-dev-style

Conversation

@dsherret

Copy link
Copy Markdown
Member

Reworks plugins.dprint.dev to share the redesigned dprint.dev design system.

Changes

  • Design system matched to dprint.dev: IBM Plex Mono, #1e1e1e background, #8b93a1 accent, sticky blurred nav + matching footer, glow hero title, // eyebrow labels, shared button styles.
  • Hero — eyebrow kicker + glowing "Plugins" title + intro.
  • Plugin registry — styled table with a color swatch, name, version pill, monospace URL, right-aligned 30-day download count, and a copy button. Collapses to stacked cards under 820px.
  • Commands — helpful CLI commands as a card grid.
  • CTA — glowing "dprint fmt" card linking to plugin docs / publishing.
  • Copy button now uses navigator.clipboard (with execCommand fallback) and shows "copied ✓" feedback.
  • Split the markup into homeView.tsx (type-only imports) so the page can be rendered without the server data layer, keeping home.tsx to just the data fetch.

Verification

  • tsc --noEmit passes.
  • Rendered the page with mock data in Chrome and confirmed hero, table, command cards, CTA, and footer all match dprint.dev.
  • Existing routing tests pass; the only failures are pre-existing external-GitHub-API tests failing on an expired local token, unrelated to this change.

Reworks plugins.dprint.dev to share the redesigned dprint.dev design
system: IBM Plex Mono, dark theme with the #8b93a1 accent, sticky blurred
nav and footer, glow hero title, and card-based sections.

- Hero with eyebrow + glowing "Plugins" title
- Plugin registry as a styled table (swatch, version pill, monospace URL,
  right-aligned download counts, copy button) that collapses to cards on
  mobile
- Helpful CLI commands as a card grid, plus a glowing CTA card
- Copy button now uses navigator.clipboard with execCommand fallback and
  shows feedback
- Split the markup into homeView.tsx (type-only imports) so the page can be
  rendered without the server data layer
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 28, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
dprint-plugins ed7e809 Commit Preview URL

Branch Preview URL
Jun 28 2026, 08:07 PM

@dsherret

Copy link
Copy Markdown
Member Author

This made me realize that we should move this to the main website. Going to close.

@dsherret dsherret closed this Jun 28, 2026
dsherret added 2 commits June 28, 2026 15:30
The plugin registry now lives on the dprint.dev docs site, so strip
plugins.dprint.dev down to just the registry table plus a link to the
docs — no hero, nav, command cards, or CTA.
Size the plugin name column to its content so long names like
dprint-plugin-typescript aren't truncated, widen the page, and add the
helpful CLI commands list back below the table.
@dsherret

Copy link
Copy Markdown
Member Author

Actually, it made the docs too cluttered.

@dsherret dsherret reopened this Jun 28, 2026
dsherret added 5 commits June 28, 2026 15:34
A slim filter input in the top bar narrows the table client-side as you
type (matching plugin name and URL), with a "no matches" empty state.
Build the search string from each plugin's description, config key, file
extensions/names, and — for exec-style plugins — the extensions and
commands under configItems. So "scss", "python", or "zig" now find the
right plugin, not just its name or URL.
Add a curated "keywords" array to each plugin in info.json (e.g. exec
gets "rust", pretty_yaml gets "kubernetes", biome gets "rome") and fold
them into the search index so plugins surface by related terms, not just
their name, description, or file extensions.
gofumpt (jakebailey/gofumpt) has docs and is a known repo but was never
added to info.json's latest array, so it didn't show in the registry.
@dsherret dsherret added this pull request to the merge queue Jun 28, 2026
Merged via the queue into main with commit 1e5c255 Jun 28, 2026
2 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