Image
Set sizes and aspect-ratios for your images.
Basic Usage



PUI
<div class="is-flex is-gap-4">
<figure class="image is-size-128">
<img src="/pucoui/img/pucoui-img-1.png" alt="" />
</figure>
<figure class="image is-size-128 is-rounded">
<img src="/pucoui/img/pucoui-img-2.png" alt="" />
</figure>
<figure class="image is-size-128 is-rounded-4">
<img src="/pucoui/img/pucoui-img-3.png" alt="" />
</figure>
<figure class="image is-size-128 is-rounded-4">
<div class="fallback">PUI</div>
</figure>
</div>
Sizes
Available sizes:
Class | Size | Preview |
---|---|---|
| 16px x 16px | ![]() |
| 24px x 24px | ![]() |
| 32px x 32px | ![]() |
| 48px x 48px | ![]() |
| 64px x 64px | ![]() |
| 96px x 96px | ![]() |
| 128px x 128px | ![]() |
Rounded
To round images, you can use the dimension helpers with the is-rounded-*
classes.
Where *
can be from 0 to 6.
If you need the image to be completely rounded, you can use the is-rounded
class.
- Preview
- Code




<div class="is-flex is-gap-4">
<figure class="image is-size-128 is-rounded">
<img src="/pucoui/img/pucoui-img-1.png" alt="" />
</figure>
<figure class="image is-size-128 is-rounded-2">
<img src="/pucoui/img/pucoui-img-2.png" alt="" />
</figure>
<figure class="image is-size-128 is-rounded-4">
<img src="/pucoui/img/pucoui-img-3.png" alt="" />
</figure>
<figure class="image is-size-128 is-rounded-6">
<img src="/pucoui/img/pucoui-img-1.png" alt="" />
</figure>
</div>
Fallback
Displays text below your image while it loads. For example, you can use it to place the user's initials.
- Preview
- Code
PUI

PUI

<div class="is-flex is-gap-4">
<figure class="image is-size-64 is-rounded">
<div class="fallback">PUI</div>
<img src="not-found-img.png" alt="" />
</figure>
<figure class="image is-size-64 is-rounded-3">
<div class="fallback">PUI</div>
<img src="not-found-img.png" alt="" />
</figure>
</div>
Aspect Ratio
Use these classes to set the aspect ratio of an image. These classes are responsive, meaning they will always maintain the aspect ratio even if the screen is small or large.
Class | Size | Preview |
---|---|---|
| 1 / 1 | ![]() |
| 5 / 4 | ![]() |
| 4 / 3 | ![]() |
| 3 / 2 | ![]() |
| 5 / 3 | ![]() |
| 16 / 9 | ![]() |
| 2 / 1 | ![]() |
| 3 / 1 | ![]() |
| 4 / 5 | ![]() |
| 3 / 4 | ![]() |
| 2 / 3 | ![]() |
| 3 / 5 | ![]() |
| 9 / 16 | ![]() |
| 1 / 2 | ![]() |
| 1 / 3 | ![]() |