Skip to content

Justify Self

Utilities for applying justify-self property an element.

Quick reference

ClassProperty
justify-self-autojustify-self: auto;
justify-self-startjustify-self: start;
justify-self-endjustify-self: end;
justify-self-centerjustify-self: center;
justify-self-stretchjustify-self: stretch;

Usage

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


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

Applying conditionally

Breakpoints and media queries

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


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

Customization

Extend your theme

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

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

Disabled

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

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

Released under the MIT License.