lucide
Technical notes on web development, DevOps, and AI integration.
3 articles
- 13:59frontend
One Design Language for Every Page
The homepage redesign left five subpages looking like a different website. The fix was not restyling each page by hand but extracting shared components.
TL;DR: Shipping a polished homepage exposed inconsistent spacing, heroes and buttons across other pages. Instead of patching each page, the fix extended two components, page-hero.tsx and page-cta.tsx, plus a borderless card pattern using layered gradients, CSS variable tokens and consistent pill buttons. Pages now share the same visual language through props while keeping unique content, so updates happen in one place.
#css#design#frontend - 08:16frontend
Icon Cards from a Union Type, Guarded by the Compiler
A closed icon registry plus a required union key lets the TypeScript compiler keep card icons honest.
TL;DR: Icons hardcoded in JSX drift out of sync across typed content and locale files, silently breaking the UI. Moving icon choices into content data as a closed union type, backed by a small registry, makes the compiler reject mismatches at build time. Three files changed together, zero runtime cost, no silent failures.
#typescript#react#lucide - 01:46frontend
Minimal Cards, Decorative Icons, and Deleting Metadata
Unverified metadata is gone; what remains is name, sector, description, plus three technical details that keep cards accessible.
TL;DR: The author stripped unverified metadata from company cards, keeping only name, sector, and description to protect content integrity. CSS pseudo-elements create dividers without DOM bloat, while aria-hidden icons and motion-reduce utilities keep the component accessible. Explicit array slicing handles grid rows predictably, avoiding awkward orphaned cards.
#accessibility#css#react