Liquid Glass for the web: the rim refraction, light and motion of iOS 27 glass on any rounded element. React bindings and pill tabs. MIT.
| 1 | # @colineapp/liquid-glass |
| 2 | |
| 3 | > Liquid Glass for the web: the rim refraction, light and motion of iOS 27's glass on any rounded element, with React bindings, menus that pour out of their button, and segmented tabs whose thumb clears into a lens. MIT. |
| 4 | |
| 5 | Version 0.3.0. Install: `npm install @colineapp/liquid-glass` |
| 6 |
| 7 | ### level |
| 8 |
| 9 | - Type: `number (0–1)` |
| 10 | - Default: `0.5` |
| 11 | - Group: Glass options |
| 12 |
| 13 | How clear or tinted regular glass is, as iOS 27's Liquid Glass slider sets it: 0 is More Clear, 0.5 a light frost and a faint wash, 1 More Tinted (iOS 27's own default), anything in between. Light glass washes and frosts the page; dark glass takes iOS 27's dark tone, lifting what's behind it from black and holding its brights down, so a black page shows through dark grey and white as a light grey, keeping its colour. Both frost as iOS 27 does: a blurred copy of the page lightened into light glass and darkened into dark, so text beneath fades while colour holds (the tone and frost need Chromium; elsewhere the body's own filters stand in). Floating glass keeps enough frost to read at every level. The rim doesn't change with it. |
| 14 |
| 15 | ```tsx |
| 16 | <LiquidGlass level={0.8} /> |
| 17 | ``` |
| 18 |