But what exactly happens under the hood when you use a class like subtitle sm ? 1. The Anatomy of the Class
According to documentation on responsive behavior , using sm:text-xl on a card__subtitle allows the text to scale dynamically based on the user's device. 2. Why "Small" Subtitles Matter for UX subtitle Sm
The "subtitle sm" convention is more than just a label—it's a tool for creating balanced, responsive interfaces. Whether you're using it to style a card component or to create a skeleton placeholder while your app loads, understanding the "sm" modifier is key to professional front-end development. But what exactly happens under the hood when
It ensures the subtitle is smaller than the primary heading ( h1 or h2 ) but distinct from the main body text. It ensures the subtitle is smaller than the
User experience research often highlights the "Skeleton" effect—where users perceive a page as loading faster if the layout structure is visible before the content.
By using a "small" subtitle, you create a clear that doesn't compete with the main title for the user's attention. 4. Common Pitfalls to Avoid