|
|
|
|
|
by bphogan
3734 days ago
|
|
Just a nitpick. I hate, hate, hate having to alter my HTML to apply styles. The idea of <h1 class="primaryColor"> totally creeps me out. I do it because other people refuse to use preprocessors and think that altering the HTML to include presentational details is fine (see Bootstrap.) But it still feels gross to me. |
|
To be fair HTML is the presentation. I can understand not wanting to mix business logic from JavaScript into a page but CSS is just the other half of HTML.
If it makes it nicer you could use more generic class terms (such as page information or HTML structure location, etc).