You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Tailwind in pretty much all my web projects these days. Writing CSS directly now feels a bit like writing Assembly code directly when you can use a programming language. Classes like px-3 or mx-auto or relative are so ubiquitous and unambiguous that I sometimes wonder why they don't just work in HTML without needing any CSS at this point.
With JavaScript engines moving towards adding support for running TypeScript directly, I wondered if there are proposals to integrate Tailwind directly into HTML itself. This can be done by making a set of common CSS Classes available in HTML by default. A different attribute, perhaps tailwind or tw can be used so it doesn't clash with existing non-tailwind code using similar classNames.
<div tailwind="px-4 py-5 text-center">
<h2 tw="text-xl font-bold">This is Tailwind</h2>
</div>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I use Tailwind in pretty much all my web projects these days. Writing CSS directly now feels a bit like writing Assembly code directly when you can use a programming language. Classes like
px-3
ormx-auto
orrelative
are so ubiquitous and unambiguous that I sometimes wonder why they don't just work in HTML without needing any CSS at this point.With JavaScript engines moving towards adding support for running TypeScript directly, I wondered if there are proposals to integrate Tailwind directly into HTML itself. This can be done by making a set of common CSS Classes available in HTML by default. A different attribute, perhaps
tailwind
ortw
can be used so it doesn't clash with existing non-tailwind code using similar classNames.Beta Was this translation helpful? Give feedback.
All reactions