|
|
|
|
|
by mohsen1
332 days ago
|
|
I used to be against Tailwind. Now that I've used long enough I can tell you that code is perfectly fine. I can read it and easily modify it. You can comment it out if you care <button
class={cn(
// layout & positioning
"relative cursor-pointer overflow-hidden rounded-md",
// border & background
"border border-neutral-950 bg-neutral-900",
// padding & text color
"px-3 py-1.5 text-neutral-100",
// shadows
"shadow-md inset-shadow-2xs inset-shadow-neutral-600",
// transition
"transition-all",
// background gradient positioning
"before:absolute before:inset-0",
// background gradient
"bg-linear-to-b from-white/20 to-transparent",
// hover
"hover:bg-neutral-800"
// active
"active:bg-neutral-950 active:shadow-none active:inset-shadow-neutral-800"
// disabled
"disabled:opacity-50 disabled:cursor-not-allowed"
)}
>
After
</button>
|
|