- Docs
- Components
- Backgrounds
- Glass & Chrome
- Spectral Tiles
Frosted glass tiles lit from below by drifting light
| Name | Type | Default | Description |
|---|---|---|---|
color | string | "#375A9C" | Colour of the glass. Lit areas brighten from it and shadows deepen from it. |
glowColor | string | "#E1EBFD" | Colour of the hottest edges and highlights. |
backgroundColor | string | "#000000" | Colour behind the tiles and the haze the far tiles fade into. Light backgrounds switch to a frosted white look. |
grid | number | 16 | Tiles along each side of the floor. |
gap | number | 0.06 | Space between tiles, as a fraction of a tile. |
thickness | number | 0.12 | How thick each glass slab is. |
radius | number | 0.07 | Corner radius of each tile. |
bevel | number | 0.025 | How rounded the top edges are. Wider bevels catch more light. |
density | number | 0.94 | Share of the floor that has a tile. Lower values leave more gaps. |
scatter | number | 0.9 | How unevenly the tiles sit, from 0 for a perfect grid to 1 for as uneven as the gap allows. |
heightVariance | number | 0.08 | How much tile heights vary, so some sit a little lower and show their glowing sides. |
angle | number | 45 | Rotation of the floor in degrees. 45 shows the tiles as diamonds. |
tilt | number | 44 | How far the camera looks down on the floor, in degrees. |
perspective | number | 24 | Field of view in degrees. Higher values exaggerate depth. |
zoom | number | 1 | Frames the tiles closer or further away. |
lights | number | 4 | Number of light sources drifting under the glass, from 1 to 4. |
lightIntensity | number | 1 | How bright the lights are. |
lightSize | number | 1 | How far each light reaches across the tiles. |
edgeGlow | number | 1 | How much light spreads in from the edges across the tops. |
rim | number | 1 | Brightness of the bevels and sides where the light leaks out. |
frost | number | 0.5 | Soft smudges and a fine etched texture inside the glass. 0 is perfectly clear and even. |
grain | number | 0.3 | Soft film grain on the lit glass. Dark areas stay clean. |
fog | number | 0.7 | How quickly distant tiles fade into the background. |
speed | number | 1 | Speed of the drifting lights. 0 holds them still. |
interactive | boolean | true | Tiles near the pointer rise and lean toward it, letting more light out. |
lift | number | 1 | How high tiles rise under the pointer and in a ripple. |
lean | number | 1 | How far tiles tilt toward the pointer. |
ripple | boolean | true | Clicking sends a wave of rising tiles across the floor. |
intro | boolean | true | Tiles rise into place from front to back as the light fades up. |
seed | number | 7 | Changes which tiles are missing and how heights vary. |
ref | { replay } | — | Plays the intro again from your own code. |
className | string | — | Classes for the root element. |
style | CSSProperties | — | Inline styles for the root element. |
colorstringColour of the glass. Lit areas brighten from it and shadows deepen from it.
"#375A9C"glowColorstringColour of the hottest edges and highlights.
"#E1EBFD"backgroundColorstringColour behind the tiles and the haze the far tiles fade into. Light backgrounds switch to a frosted white look.
"#000000"gridnumberTiles along each side of the floor.
16gapnumberSpace between tiles, as a fraction of a tile.
0.06thicknessnumberHow thick each glass slab is.
0.12radiusnumberCorner radius of each tile.
0.07bevelnumberHow rounded the top edges are. Wider bevels catch more light.
0.025densitynumberShare of the floor that has a tile. Lower values leave more gaps.
0.94scatternumberHow unevenly the tiles sit, from 0 for a perfect grid to 1 for as uneven as the gap allows.
0.9heightVariancenumberHow much tile heights vary, so some sit a little lower and show their glowing sides.
0.08anglenumberRotation of the floor in degrees. 45 shows the tiles as diamonds.
45tiltnumberHow far the camera looks down on the floor, in degrees.
44perspectivenumberField of view in degrees. Higher values exaggerate depth.
24zoomnumberFrames the tiles closer or further away.
1lightsnumberNumber of light sources drifting under the glass, from 1 to 4.
4lightIntensitynumberHow bright the lights are.
1lightSizenumberHow far each light reaches across the tiles.
1edgeGlownumberHow much light spreads in from the edges across the tops.
1rimnumberBrightness of the bevels and sides where the light leaks out.
1frostnumberSoft smudges and a fine etched texture inside the glass. 0 is perfectly clear and even.
0.5grainnumberSoft film grain on the lit glass. Dark areas stay clean.
0.3fognumberHow quickly distant tiles fade into the background.
0.7speednumberSpeed of the drifting lights. 0 holds them still.
1interactivebooleanTiles near the pointer rise and lean toward it, letting more light out.
trueliftnumberHow high tiles rise under the pointer and in a ripple.
1leannumberHow far tiles tilt toward the pointer.
1ripplebooleanClicking sends a wave of rising tiles across the floor.
trueintrobooleanTiles rise into place from front to back as the light fades up.
trueseednumberChanges which tiles are missing and how heights vary.
7ref{ replay }Plays the intro again from your own code.
—classNamestringClasses for the root element.
—styleCSSPropertiesInline styles for the root element.
—