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| Name | Type | Default | Description |
|---|---|---|---|
items | ChromaItem[] | DEFAULT_ITEMS | The 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. |
columns | number | 3 | The most columns the grid shows. |
minCardWidth | number | 180 | The narrowest a card can get, in pixels; the grid drops columns to keep cards this wide. |
gap | number | 12 | Space between cards, in pixels. |
radius | number | 260 | Size of the color spotlight, in pixels. |
softness | number | 0.6 | How gradually the spotlight fades at its edge, from 0 for a crisp circle to 1 for a soft glow. |
damping | number | 0.45 | How smoothly the spotlight trails the cursor; 0 follows it exactly. |
fadeOut | number | 0.6 | How long the colors take to fade back after the cursor leaves, in seconds. |
grayscale | number | 1 | How much color is drained outside the spotlight, from 0 to 1. |
dim | number | 0.12 | How much the images darken outside the spotlight. |
glow | number | 0.5 | Strength of each card's accent color glowing up from the bottom as it is revealed. |
borderGlow | number | 1 | Strength of each card's border lighting up in its accent color near the cursor. |
aspectRatio | string | "3 / 2" | Aspect ratio of the images, as a CSS aspect-ratio value. |
cardRadius | number | 22 | Corner radius of the cards, in pixels. |
showInfo | boolean | true | Shows the title and subtitle under each image. |
frame | boolean | false | Wraps the grid in a frosted panel. |
theme | "dark" | "light" | "dark" | Color theme of the cards. |
className | string | None |