Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Use CSS subgrid to fix your forms based on established design principles. Tip: send this to your AI agent so it can apply it to your forms or turn it into a skill.

10,237 Aufrufe • vor 10 Tagen •via X (Twitter)

17 Kommentare

Profilbild von Haz
Hazvor 10 Tagen

Related:

Profilbild von Ariakit
Ariakitvor 10 Tagen

👀

Profilbild von Haz
Hazvor 10 Tagen

Back to work.

Profilbild von Andrey Antoshkin
Andrey Antoshkinvor 10 Tagen

Turning tips like this into a skill is how I work now too. I keep collecting Skill.md and DESIGN.md files so the agent follows rules instead of guessing. Does the subgrid version hold up when labels get really long?

Profilbild von Haz
Hazvor 10 Tagen

Long labels aren't helpful. If you need more info, add a description below the input, as shown at the end of the video.

Profilbild von Andrey Antoshkin
Andrey Antoshkinvor 10 Tagen

Fair point, a short label plus a description below feels cleaner anyway. Do you put those descriptions in the skill too, so the agent does it by default?

Profilbild von Джуніор Спеціаліст
Джуніор Спеціалістvor 10 Tagen

Nice demo. Underrate principle in Form's design

Profilbild von JA
JAvor 10 Tagen

Why not stack the labels?

Profilbild von Haz
Hazvor 10 Tagen

This is specifically for those who want horizontal fields. I prefer horizontal fields for forms in wide desktop containers. Vertical fields look better in narrow containers, dialogs, cards, mobile screens, etc.

Profilbild von JA
JAvor 10 Tagen

I guess container query to the rescue

Profilbild von Haz
Hazvor 10 Tagen

Oh, sure, you'll want it to be responsive.

Profilbild von Horacio Herrera
Horacio Herreravor 9 Tagen

Love this videos!! how hard was it to describe them? or did you do it manually?

Profilbild von Haz
Hazvor 9 Tagen

I built a skill with several assets, references, and instructions, and I've made several videos with it. For each video, I make some adjustments and then ask the agent to update the skill with what it learned. This is the result of a few weeks of doing that, and it keeps evolving.

Profilbild von Horacio Herrera
Horacio Herreravor 9 Tagen

nice. Opus or another model?

Profilbild von Haz
Hazvor 9 Tagen

Always Opus

Profilbild von Chris Henning
Chris Henningvor 9 Tagen

Forms are where my booking pages always looked slightly off, with labels never lining up across rows. Passing this straight to my agent. Does subgrid hold up on narrow phone screens, or do you switch to a single column there?

Profilbild von Haz
Hazvor 9 Tagen

You'll want to switch to a single column in narrow containers (not just phones, but also cards, narrow modals, etc.). I'd suggest using container queries instead of media queries.

Ähnliche Videos