













Galleries, cards and interactive pieces for pages that need more than the basics.
items | ChromaItem[] | Sample photos | The cards to show. Each item takes image, title, subtitle, accent and url. With a url the whole card becomes a link. |
reveal | 'spotlight' | 'card' | 'spotlight' | Reveal color in a soft spotlight that follows the cursor, or one whole card at a time on hover. |
columns | 3 | The most columns the grid shows. | |
minCardWidth | 180 | Narrowest a card can get, in px. The grid drops columns to keep cards at least this wide. | |
gap | 12 | Space between cards, in px. | |
radius | 260 | Size of the color spotlight, in px. | |
softness | 0.6 | How gradually the spotlight fades at its edge, from 0 for a crisp circle to 1 for a soft glow. | |
damping | 0.45 | How smoothly the spotlight trails the cursor. 0 follows it exactly. | |
fadeOut | 0.6 | How long the colors take to fade back to gray after the cursor leaves, in seconds. | |
grayscale | How much color is drained outside the spotlight, from 0 to 1. | ||
dim | 0.12 | How much images darken outside the spotlight. | |
glow | 0.5 | Strength of each card's accent color glowing up from the bottom as it is revealed. | |
borderGlow | Strength of each card's border lighting up in its accent color near the cursor. | ||
aspectRatio | '3 / 2' | Aspect ratio of the images, as a CSS aspect-ratio value. | |
cardRadius | 22 | Corner radius of the cards, in px. | |
showInfo | Shows the title and subtitle under each image. | ||
frame | Wraps the grid in a frosted glass panel. | ||
theme | 'dark' | 'light' | 'dark' | Color theme of the cards. |
| Extra class names for the grid. |
itemsChromaItem[]The cards to show. Each item takes image, title, subtitle, accent and url. With a url the whole card becomes a link.
Sample photosreveal'spotlight' | 'card'Reveal color in a soft spotlight that follows the cursor, or one whole card at a time on hover.
'spotlight'columnsnumberThe most columns the grid shows.
3minCardWidthnumberNarrowest a card can get, in px. The grid drops columns to keep cards at least this wide.
180gapnumberSpace between cards, in px.
12radiusnumberSize of the color spotlight, in px.
260softnessnumberHow gradually the spotlight fades at its edge, from 0 for a crisp circle to 1 for a soft glow.
0.6dampingnumberHow smoothly the spotlight trails the cursor. 0 follows it exactly.
0.45fadeOutnumberHow long the colors take to fade back to gray after the cursor leaves, in seconds.
0.6grayscalenumberHow much color is drained outside the spotlight, from 0 to 1.
dimnumberHow much images darken outside the spotlight.
0.12glownumberStrength of each card's accent color glowing up from the bottom as it is revealed.
0.5borderGlownumberStrength of each card's border lighting up in its accent color near the cursor.
aspectRatiostringAspect ratio of the images, as a CSS aspect-ratio value.
'3 / 2'cardRadiusnumberCorner radius of the cards, in px.
22showInfobooleanShows the title and subtitle under each image.
framebooleanWraps the grid in a frosted glass panel.
theme'dark' | 'light'Color theme of the cards.
'dark'Extra class names for the grid.