Загрузка видео...

Не удалось загрузить видео

На главную

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.

Похожие видео