🌐
Tailwind CSS
tailwindcss.com › docs › scale
scale - Transforms - Tailwind CSS
Use the scale-x-<number> utilities like scale-x-75 and -scale-x-150 to scale an element on the x-axis by a percentage of its original width:
🌐
Tailwind CSS
v1.tailwindcss.com › docs › scale
Scale - Tailwind CSS
<img class="transform scale-75 ..."> <img class="transform scale-100 ..."> <img class="transform scale-125 ..."> <img class="transform scale-150 ..."> Note that because Tailwind implements transforms using CSS custom properties, the transform utilities are not supported in older browsers like IE11.
🌐
ByteofDev
byteofdev.com › posts › scale-tailwindcss
Tailwind has a scalability problem. How can we solve that?
November 29, 2023 - With variants and other CSS-in-JS tools, you can structure your styles as an object containing specific styles for one or a combination of props passed. With plain Tailwind, you can only structure your styles by constructing a string with template literals, which can quickly become unmanageable. That is not the only problem impacting scalability
🌐
GeeksforGeeks
geeksforgeeks.org › css › tailwind-css-scale
Tailwind CSS Scale - GeeksforGeeks
July 23, 2025 - In CSS, we can do that by using the CSS scale() function. ... <!DOCTYPE html> <html> <head> <link href= "https://unpkg.com/[email protected]/dist/tailwind.min.css" rel="stylesheet"> </head> <body class="text-center"> <h1 class="text-green-600 text-5xl font-bold"> GeeksforGeeks </h1> <b>Tailwind CSS Scale Class</b> <div class="bg-green-300 mx-16 p-4 justify-between grid grid-flow-col"> <div class="bg-no-repeat w-16 h-16 transform scale-50" style= "background-image:url( https://media.geeksforgeeks.org/wp-content/uploads/20210222211217/Screenshot20210222211207.png)"> </div> <div class="bg-no-repe
🌐
Tailwind CSS
v3.tailwindcss.com › docs › scale
Scale - Tailwind CSS
Use the scale-*, scale-x-*, and scale-y-* utilities to scale an element.
🌐
GitHub
github.com › tailwindlabs › tailwindcss › discussions › 13634
Transition scale property is not working on a live site but working perfectly locally · tailwindlabs/tailwindcss · Discussion #13634
This is my website which I have made using tailwind css. www.designmonsters.io · I am facing a weird problem. On a projects section, I have used a following property on each project: "transition duration-500 ease-in-out hover:scale-110" It works perfectly fine locally but on a live site the scaling property is not ...
Author   tailwindlabs
🌐
Kombai
kombai.com › tailwind › scale
Tailwind CSS Scale
For instance, combining hover:scale-105 with hover:rotate-3 can lead to complex output behaviors if other transform-related utilities like skew are erroneously applied. Debugging tools like browser inspection panels can quickly identify these issues. Incremental testing with smaller component units helps ensure the scalability of the overall layout while avoiding cascading conflicts across the UI. ... Kombai writes clean React + Tailwind code that adheres to your design system and fits naturally into your codebase.
🌐
Tailwind CSS
tailwind.build › classes › transform › scale-x-0
.scale-x-0 - Tailwind CSS class
← Tailwind CSS classes list · <div class="scale-x-0 transform bg-teal-400 p-4 m-6 inline-flex">0</div> 0 · .scale-x-0 { --transform-scale-x: 0; } .transform / .transform-none · .origin-center / .origin-* .translate-x-0 · .translate-x-1 · .translate-x-2 ·
Find elsewhere
🌐
GitHub
github.com › benface › tailwindcss-transforms › issues › 14
Combining rotate and scale on hover does not seem to work · Issue #14 · benface/tailwindcss-transforms
August 9, 2019 - I have classes like these: scale-100 hover:scale-110 rotate-180 hover:rotate-90 If I remove the hover: rotate-90, the scale works, if I leave it, it does not. But: Having no rotate class on hover makes the item spin back to its original ...
Published   Dec 09, 2019
🌐
GitHub
github.com › tailwindlabs › tailwindcss › issues › 2457
Scale vs group-hover · Issue #2457 · tailwindlabs/tailwindcss
September 27, 2020 - Describe the problem: Scale property doesn't work in group-hover. Config: // tailwind.config.js module.exports = { variants: { // ... scale: ['responsive', 'hover', 'focus', 'active', 'group-hover'], } } Simple code example:
Published   Sep 27, 2020
🌐
Tailwind
windframe.dev › tailwind › classes › tailwind-scale
The scale utility class in Tailwind CSS allows you to apply scaling transformations to elements.
To apply a scale transformation to an element, you can use the scale-{value} utility class, where {value} represents the desired scaling factor. The available values range from 0 to 100, allowing you to scale elements up or down. ... Tailwind CSS allows you to apply scale transformations responsively at different breakpoints.
🌐
Reddit
reddit.com › r/programming › tailwind has a scalability problem. how can we solve that?
r/programming on Reddit: Tailwind has a scalability problem. How can we solve that?
October 22, 2023 - I wish it went into the first-party docs too. ... That was interesting. I have never run in such problems, so I like the perspective. ... Tailwind doesn't scale because it doesn't need to.
🌐
GitHub
github.com › tailwindlabs › tailwindcss.com › issues › 1636
Transition class seems irrelevant when creating scale transitions · Issue #1636 · tailwindlabs/tailwindcss.com
June 2, 2023 - My class was: "transition duration-500 hover:scale-105". The problem is that the duration property was not being applied because the duration property inside the transitions was overriding it.
Published   Jul 13, 2023
🌐
CodePen
codepen.io › muratbenli › pen › jOWJaZy
Card hover scale animation Tailwind CSS
Note: your code becomes un-folded during formatting. ... Visit your global Editor Settings. ... <section class="text-gray-700 body-font"> <div class="container px-5 py-24 mx-auto"> <div class="flex flex-wrap -m-4 text-center"> <div class="p-4 md:w-1/4 sm:w-1/2 w-full"> <div class="border-2 border-gray-600 px-4 py-6 rounded-lg transform transition duration-500 hover:scale-110"> <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="text-indigo-500 w-12 h-12 mb-3 inline-block" viewBox="0 0 24 24"> <path d="M8 17l4 4 4-4m-4-5v9"></path> <path
🌐
Reddit
reddit.com › r/tailwindcss › need help in scaling design on larger displays
r/tailwindcss on Reddit: Need help in scaling design on larger displays
July 21, 2023 -

I'm using TailwindCSS since past 6 months or so and have developed some designs in it. Recently I ran into a problem where my site was looking great till 1536px viewport size but began to shrink on 1080p and was barely readable on 4K resolution. I use Tailwind response design prefix like md, lg, 2xl etc. I thought the browser will scale up my site to adjust with the display but it's not doing it. I've even set the viewport value to width=device-width, initial-scale=1.0, user-scalable=no, shrink-to-fit=no, am I missing something?

Top answer
1 of 1
1
When I first ran into this problem I came up with the following solution. I can imagine there's a cleaner way, but it hasn't failed me so far and it's easy to implement. Tailwind CSS uses rem as its unit of choice, which is always based on the root element's font size . Increase the root element's font size and everything will increase in size. The goal here is to increase the root element's font size on screens wider than 1536px (2xl:*) so that everything else scales accordingly. // tailwind.config.js ... module.exports = { ... theme: { extend: { screens: { '3xl': '1920px', '4xl': '2560px', '5xl': '3840px' } } }, ... }; This will generate classes (3xl:*, 4xl:*, 5xl:*), that are only applied if the screen is wider than the specified amount of pixels. Docs: https://tailwindcss.com/docs/screens // styles.css @tailwind base; @layer base { html { @apply 2xl:text-xl 3xl:text-2xl 4xl:text-3xl 5xl:text-5xl; } } Using these generated classes you can now change the root element's font size for specific screen sizes. I recommend playing around with the values a little. The above combination of screen-sizes and font-sizes is what worked best for the application I'm currently working on (note that I've also adjusted the font-size of screens with a min-width of 1536px (2xl:*). It could also look something like this: @apply 2xl:text-xl 3xl:text-2xl 4xl:text-3xl 5xl:text-4xl; or @apply 3xl:text-xl 4xl:text-2xl 5xl:text-3xl; Side note: Try to avoid using the unit px in your code as anything using it will not scale using this solution. Even the Tailwind CSS docs make use of px, but I'd recommend using rem even in these cases. Though one good reason to use px is when you want to optimize the size of an image you want to display.
🌐
Tailwind CSS
v2.tailwindcss.com › docs › scale
Scale - Tailwind CSS
Control the scale of an element by first enabling transforms with the transform utility, then specifying the scale using the scale-{percentage}, scale-x-{percentage}, and scale-y-{percentage} utilities.