Utilities for setting the width of an element

Work in progress!

More detailed documentation is coming soon, but in the meantime here's a quick class reference.

Class reference

Class Properties
.w-1 width: 0.25rem;
.w-2 width: 0.5rem;
.w-3 width: 0.75rem;
.w-4 width: 1rem;
.w-6 width: 1.5rem;
.w-8 width: 2rem;
.w-10 width: 2.5rem;
.w-12 width: 3rem;
.w-16 width: 4rem;
.w-24 width: 6rem;
.w-32 width: 8rem;
.w-48 width: 12rem;
.w-64 width: 16rem;
.w-auto width: auto;
.w-px width: 1px;
.w-1/2 width: 50%;
.w-1/3 width: 33.33333%;
.w-2/3 width: 66.66667%;
.w-1/4 width: 25%;
.w-3/4 width: 75%;
.w-1/5 width: 20%;
.w-2/5 width: 40%;
.w-3/5 width: 60%;
.w-4/5 width: 80%;
.w-1/6 width: 16.66667%;
.w-5/6 width: 83.33333%;
.w-full width: 100%;
.w-screen width: 100vw;


Responsive and State Variants

By default, only responsive variants are generated for width utilities.

You can control which variants are generated for the width utilities by modifying the width property in the modules section of your Tailwind config file.

For example, this config will also generate hover and focus variants:

// ...
modules: {
    // ...
-   width: ['responsive'],
+   width: ['responsive', 'hover', 'focus'],


If you don't plan to use the width utilities in your project, you can disable them entirely by setting the width property to false in the modules section of your config file:

// ...
modules: {
    // ...
-   width: ['responsive'],
+   width: false,