4 ms·
Tachyons needs this for a button: <a class="f6 link dim ph3 pv2 mb2 dib white bg-black" /> Anyone so quick to show the same in Tailwind to have a comparison
by desmap 6y ago
Tachyons needs this for a button:
<a class="f6 link dim ph3 pv2 mb2 dib white bg-black" />
Anyone so quick to show the same in Tailwind to have a comparison?
You can see the button rendered here (the first at the top): https://tachyons.io/components/buttons/basic/index.html#0 https://tachyons.io/components/buttons/basic/index.html#0
- jozzy-james 6y agonot exact, but from one of my buttons flex bg-black text-white px-8 py-4 font-bold cursor-pointer items-center justify-center edit: more characters needed, but IMO makes more sense as to what it's doing.
- dsissitka 6y ago<a class="active:opacity-80 bg-black hover:opacity-50 inline-block mb-2 px-4 py-2 text-sm text-white transition-opacity"> Button Text </a> https://play.tailwindcss.com/rNUrXntEZQ https://play.tailwindcss.com/rNUrXntEZQ Edit: That should be `focus:opacity-80` instead of `active:opacity-80`.