Hacker News new | ask | show | jobs
by illiarian 1175 days ago
Any UI beyond trivial lists will couple style and content.

You have a card? Boom, you need to couple styles for the title, for the content, for the footer etc.

You have a form? Boom, you need to couple styles with the form.

The idea that styles are somehow decoupled from content is funny idea that very rarely works out in practice.

1 comments

You missed the point.

Would you copy paste around:

<form class="asd fasdf e4rwe sfdg sdfgbbv cxvbxcs asdf asdf wer wer gfdghdfgh fgh">

20x around your static website and keep it updated manually when someone "from design" wants to change the "form" look?

Or would you just <form class="classic-form"> and describe the style of that class of form in a single place?

I know what I'd do. :)