Skip to content

Justify Items

Utilities for applying justify-items property an element.

Quick reference

ClassProperty
justify-items-startjustify-items: flex-start;
justify-items-endjustify-items: flex-end;
justify-items-centerjustify-items: center;
justify-items-stretchjustify-items: stretch;

Usage

Use the justify-items-{key} class for set up the justify-items type.


<div class="justify-items-center">
    <!-- ... -->
</div>

Applying conditionally

Breakpoints and media queries

You can also control the responsive breakpoint with variant class modifiers. For example lg:justify-items-start will be only apply on large screens size and above.


<div class="justify-items-center lg:justify-items-start">
    <!-- ... -->
</div>

Customization

Extend your theme

By default, the configuration provides a handful of general purpose justify-items type utilities. You can easily filter the default scales using the Sass configuration.

@use "lasco" with (
    $extend: (
        "justify-items": (
            center
        )
    )
);

Disabled

You can easily disable the properties you don't need to use.

@use "lasco" with (
    $extend: (
        "justify-items": false
    )
);

Released under the MIT License.