johnphamous
@phamous.dev
π€ 1200
π₯ 64
π 280
a webmaster apprentice
structural diffs
3 days ago
0
3
0
horizontal sticky header to maintain context
loading . . .
4 days ago
0
8
0
prediction cone/safe triangle - horizontal buffer increases as pointer approaches nested menu - caches bounding boxes to prevent reflows
loading . . .
5 days ago
1
8
1
guidelines for building interfaces on the web interactions, animations, layout, content, forms, performance, design & copywriting includes an AGENTSβ.md
loading . . .
6 days ago
1
23
5
nbsp wrapping behavior for non-inline elements
loading . . .
7 days ago
1
10
0
wig
loading . . .
10 days ago
0
5
0
in-product empty state with personalized example username is derived from logged in user this way the user can feel it
x.com/vercel_chan...
x.com/vercel_chan...
loading . . .
10 days ago
0
1
0
set `scroll-margin-top` on headers for spacing between the header and the top of the viewport
loading . . .
12 days ago
0
3
0
every section is deep-linkable
loading . . .
13 days ago
0
2
0
an iteration on @rauno's prior - reduced motion variant - preserves text selection - accessibility tools announce the sentence instead of letter-by-letter - no enter animation on mount
x.com/raunofreibe...
loading . . .
14 days ago
0
3
0
set `theme-color` to make the web page seamless with ios safari
loading . . .
17 days ago
0
2
0
emphasize deep-linked section on load - css-only, uses `:target` and `:has`
loading . . .
18 days ago
1
6
0
set html/body background color to match website color so overscroll area blends in
loading . . .
19 days ago
1
14
2
optically align icon
20 days ago
1
2
0
subpixel rendering bugs uses the `transform: translateZ(0)` spell to fix with bug
loading . . .
21 days ago
1
0
0
some of the things that we subconsciously think about when building interfaces
24 days ago
1
5
0
it's easier to fix environment variable-related build errors - emphasizes missing variable name - shows solution in-context - minimizes the work the user has to do ty @alanaagoyal for suggestion
loading . . .
25 days ago
1
0
0
hit targets scale based on the size - prevents overlapping hit targets
x.com/JohnPhamous...
loading . . .
26 days ago
0
1
0
status transitions
loading . . .
27 days ago
0
5
0
sometimes hit targets need to be larger than the visual the line is 2px wide and 10px tall green is the target area, shown here as a visualization, not rendered in prod
loading . . .
28 days ago
1
7
0
chart annotations progressively disclosed in the tooltip - stroke on the annotations to avoid bars looking fuzzy
loading . . .
about 1 month ago
0
2
0
chart for showing changes between 2 different time periods - uses css subgrid
loading . . .
about 1 month ago
1
8
0
a personal readme kinda like llms.txt but for humans
about 1 month ago
1
2
0
borders and shadows without the fuzziness - automatically doesn't draw shadows in dark mode, only border
about 1 month ago
2
2
0
inspired by @colebemis, gonna fix a papercut a day to get familiar with the codebase day 1
about 1 month ago
0
2
0
day 1
loading . . .
about 1 month ago
0
5
0
pie progress transitions
loading . . .
about 1 month ago
0
6
0
flickering dots grid pattern - canvas - custom layout engine for perfect tiling no matter the dot/gap/container size
loading . . .
about 1 month ago
2
12
0
buttons designed by @bradleyziffer
loading . . .
about 1 month ago
1
5
1
better typescript dx for components that need to accept colors from your design system - type checking - suggestions
about 1 month ago
0
4
0
animated console.log message - svg with <animate> - doesn't play looping animation when `prefers-reduced-motion`
loading . . .
about 1 month ago
1
8
0
weightlifter a terminal-inspired progressive web app to track weightlifting - tells you what plates to rack - optimizes warmup -> working set plates to minimize re-racks - progressive overloading for reps and weight - dynamic rest times based on heart rate during exercise
loading . . .
about 1 month ago
1
6
0
xmcp fan art
loading . . .
about 1 month ago
0
2
0
responsive change chart if there's not enough room - x-axis labels staggers - y-axis labels truncates all css
loading . . .
about 2 months ago
0
5
0
bar list - hovering over a row de-emphasizes other rows - no dead gaps between rows to prevent flickering
loading . . .
about 2 months ago
0
6
0
selection color depends on the content
loading . . .
about 2 months ago
0
3
0
adding a stroke on the text to increase legibility can use `-webkit-text-stroke` to add stroke use `paint-order: stroke` so the stroke is drawn behind the text left is with `paint-order`, right is without
loading . . .
about 2 months ago
0
4
0
searching logs - active search result always show up in same y-position on screen, minimizes eye travel distance when going through results - keyboard controls to move to next and previous search results
loading . . .
about 2 months ago
0
4
0
call to action
loading . . .
about 2 months ago
0
3
0
histogram chart - tooltip shows absolute/%s for left and right
loading . . .
about 2 months ago
0
1
0
date times - always show in local timezone - show in your coworker's timezones - for devtools context, show UTC and ISO - uses <time> - relative as a shorthand so the reader doesn't have to math
loading . . .
about 2 months ago
0
6
0
gm ny
loading . . .
about 2 months ago
0
3
0
search input - modifier keys are os-aware e.g. β/Ctrl - modifier keys are hidden when there's no keyboard attached, reduces noise - hides the modifier keys when focused, gets out of the way of the user - optional prop `captureFocus` will focus and forward any key events on the page to the input
loading . . .
about 2 months ago
0
1
0
service map connection lines represent the state - healthy, green, flowing well - degraded, amber, flow slowed - offline, red, no flow, blinking - unknown, gray, no flow
loading . . .
about 2 months ago
0
4
0
line chart - y-axis shows min, mid, max - x-axis shows relative to now - tooltip shows "in progress" to educate reader
loading . . .
about 2 months ago
0
2
0
durations shows local, utc, and iso date times in tooltip - tabular nums for alignment making comparing local & utc easier - iso shown cause devtools commonly use this - year shown in local/utc only if they're diff years between each other or the current year
loading . . .
2 months ago
1
7
0
grouping and collapsing log lines based on type
loading . . .
2 months ago
1
4
0
add to calendar
loading . . .
2 months ago
0
2
1
perceptually uniform color maps useful in heat maps where value differences are equal to the differences in colors
2 months ago
0
5
0
testing against different vision deficiencies
loading . . .
2 months ago
1
1
0
Load more
feeds!
log in