正在加载视频...

视频加载失败

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 次观看 • 10 天前 •via X (Twitter)

17 条评论

Haz 的头像
Haz10 天前

Related:

Ariakit 的头像
Ariakit10 天前

👀

Haz 的头像
Haz10 天前

Back to work.

Andrey Antoshkin 的头像
Andrey Antoshkin10 天前

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 的头像
Haz10 天前

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 的头像
Andrey Antoshkin10 天前

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?

Джуніор Спеціаліст 的头像
Джуніор Спеціаліст10 天前

Nice demo. Underrate principle in Form's design

JA 的头像
JA10 天前

Why not stack the labels?

Haz 的头像
Haz10 天前

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 的头像
JA10 天前

I guess container query to the rescue

Haz 的头像
Haz10 天前

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

Horacio Herrera 的头像
Horacio Herrera9 天前

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

Haz 的头像
Haz9 天前

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 的头像
Horacio Herrera9 天前

nice. Opus or another model?

Haz 的头像
Haz9 天前

Always Opus

Chris Henning 的头像
Chris Henning9 天前

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 的头像
Haz9 天前

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.

相关视频