Images Examples

Interactive demonstrations

Images

The Responsive Slot Layout includes a comprehensive set of image utility classes for controlling size, shape, styling, and responsive behavior. These classes make it easy to create consistent, well-styled images throughout your application without writing custom CSS.

Image Utility Classes
.responsive-img — Makes image scale to 100% of container width
.max-width-{size} — Sets maximum width (100, 200, 300, 400, 500px)
.min-width-{size} — Sets minimum width (100, 200, 300px)
.rounded — Adds rounded corners (8px border-radius)
.rounded-sm — Small rounded corners (4px)
.rounded-lg — Large rounded corners (16px)
.circle — Makes image circular (50% border-radius)
.bordered — Adds border with padding
.shadow — Adds subtle shadow effect
.center — Centers image horizontally
.thumbnail — Sets max-width to 150px for thumbnail size
.full-width — Forces image to 100% width
.aspect-square — Forces 1:1 aspect ratio
.aspect-video — Forces 16:9 aspect ratio
.grayscale — Applies grayscale filter (color on hover)

New to Image Utilities?

Get up and running in 2 minutes with our Quick Start Guide!

View Quick Start Guide

Download RSL Example Pack

Responsive Images

Responsive images scale to fit their container width while maintaining aspect ratio. Perfect for fluid layouts.

Sample Image 1

100% Container Width

Sample Image 2

Scales Automatically

Sample Image 3

Maintains Aspect Ratio

Code • HTML

                        Description
                    
Use Case: The .responsive-img class is perfect for hero images, content images, and any image that should scale with its container. It sets width: 100% and height: auto to maintain proportions.

Rounded & Circle Images

Add rounded corners or make images completely circular for profile pictures, avatars, and decorative elements.

Default

Default (Square)

Rounded Small

Rounded Small

Rounded

Rounded

Rounded Large

Rounded Large

Circle

Circle

Circle with Border

Circle + Border

Circle with Shadow

Circle + Shadow

Code • HTML

                        
                        Rounded Small
                        Rounded
                        Rounded Large

                        
                        Circle

                        
                        Circle with effects
                    
Tip: Circle images work best with square aspect ratio images. For non-square images, combine with .aspect-square class to crop to a perfect circle.

Image Sizes

Control image dimensions with max-width and min-width utilities.

100px

Max 100px

200px

Max 200px

300px

Max 300px

400px

Max 400px

Thumbnail

Thumbnail (150px)

Code • HTML

                        
                        Small
                        Medium
                        Large
                        Extra Large
                        Huge

                        
                        Thumbnail

                        
                        Min width
                    

Borders & Shadows

Add visual depth and definition to images with borders and shadow effects.

No effects

No Effects

Border

With Border

Shadow

With Shadow

Border and Shadow

Border + Shadow

Code • HTML

                        
                        Border
                        Thick Border

                        
                        Shadow
                        Large Shadow

                        
                        Combined
                    
Design Tip: Shadows add depth and make images stand out from the background. Use .shadow for subtle elevation or .shadow-lg for more prominent effects. Combine with rounded corners for modern card-style designs.

Aspect Ratios

Force images into specific aspect ratios, useful for galleries and grids where consistent sizing is important.

Square aspect

Square (1:1)

Video aspect

Video (16:9)

Portrait aspect

Portrait (3:4)

Code • HTML

                        
                        Square

                        
                        Video

                        
                        Portrait
                    
Note: Aspect ratio classes use object-fit: cover which may crop the image. This ensures consistent sizing in galleries and grids while maintaining the specified aspect ratio.

Centered Images

Center images horizontally within their container using the .center class.

Centered Image

This image is centered horizontally

Code • HTML

                        Centered
                    

Grayscale Effect

Apply grayscale filter to images that becomes full color on hover. Great for image galleries and team pages.

Grayscale 1

Hover for Color

Grayscale 2

Hover for Color

Grayscale 3

Hover for Color

Grayscale 4

Hover for Color

Code • HTML

                        
                        Team member

                        
                        Gallery item
                    
Use Case: The grayscale effect is commonly used for team member photos, partner logos, or image galleries to create a cohesive, professional look. The color transition on hover adds interactivity.

♿ Accessibility Quick Notes