Skip to content
PixiKit

Tint Grid

A grid of image cards drained of color: a spotlight that trails the cursor brings the color back and lights each card's border and glow in its accent.

pixikit.com/docs/components/tint-grid

Customize

Reveal
Columns3
Min card width180px
Gap12px
Radius260px
Softness0.60
Damping0.45
Fade out0.60s
Grayscale1.00
Dim0.12
Glow0.50
Border glow1.00
Aspect ratio
Card radius22px
Show info
Frame
Theme

Props

19
NameTypeDefaultDescription
itemsChromaItem[]DEFAULT_ITEMSThe cards. Each takes image, title, subtitle, accent and url; with a url the whole card is a link.
reveal"spotlight" | "card""spotlight"Reveals color in a soft spotlight that follows the cursor, or one whole card at a time on hover.
columnsnumber3The most columns the grid shows.
minCardWidthnumber180The narrowest a card can get, in pixels; the grid drops columns to keep cards this wide.
gapnumber12Space between cards, in pixels.
radiusnumber260Size of the color spotlight, in pixels.
softnessnumber0.6How gradually the spotlight fades at its edge, from 0 for a crisp circle to 1 for a soft glow.
dampingnumber0.45How smoothly the spotlight trails the cursor; 0 follows it exactly.
fadeOutnumber0.6How long the colors take to fade back after the cursor leaves, in seconds.
grayscalenumber1How much color is drained outside the spotlight, from 0 to 1.
dimnumber0.12How much the images darken outside the spotlight.
glownumber0.5Strength of each card's accent color glowing up from the bottom as it is revealed.
borderGlownumber1Strength of each card's border lighting up in its accent color near the cursor.
aspectRatiostring"3 / 2"Aspect ratio of the images, as a CSS aspect-ratio value.
cardRadiusnumber22Corner radius of the cards, in pixels.
showInfobooleantrueShows the title and subtitle under each image.
framebooleanfalseWraps the grid in a frosted panel.
theme"dark" | "light""dark"Color theme of the cards.
classNamestringNone

More media components in Pro

View all

Related