Loading video...

Video Failed to Load

Go Home

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 views • 10 days ago •via X (Twitter)

17 Comments

Haz's profile picture
Haz10 days ago

Related:

Ariakit's profile picture
Ariakit10 days ago

👀

Haz's profile picture
Haz10 days ago

Back to work.

Andrey Antoshkin's profile picture
Andrey Antoshkin10 days ago

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?

Haz's profile picture
Haz10 days ago

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

Andrey Antoshkin's profile picture
Andrey Antoshkin10 days ago

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?

Джуніор Спеціаліст's profile picture
Джуніор Спеціаліст10 days ago

Nice demo. Underrate principle in Form's design

JA's profile picture
JA10 days ago

Why not stack the labels?

Haz's profile picture
Haz10 days ago

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.

JA's profile picture
JA10 days ago

I guess container query to the rescue

Haz's profile picture
Haz10 days ago

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

Horacio Herrera's profile picture
Horacio Herrera9 days ago

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

Haz's profile picture
Haz9 days ago

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.

Horacio Herrera's profile picture
Horacio Herrera9 days ago

nice. Opus or another model?

Haz's profile picture
Haz9 days ago

Always Opus

Chris Henning's profile picture
Chris Henning9 days ago

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?

Haz's profile picture
Haz9 days ago

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.

Related Videos