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.
| 4 |
| 5 | Version 0.1.0. Install: `npm install @colineapp/liquid-glass`. npm: https://www.npmjs.com/package/@colineapp/liquid-glass. Playground: https://liquid-glass-e55033.coline.space. |
| 6 |
| 7 | ### tint |
| 8 |
| 9 | - Type: `string` |
| 10 | - Default: near-black in dark, white in light |
| 11 | - Group: Glass options |
| 12 |
| 13 | Colour washed over the body by the tone's `tint` share (50% on dark regular glass, 40% on light). Any CSS colour, including `var()`. |
| 14 |
| 15 | ```tsx |
| 16 | <LiquidGlass tint="var(--background)" /> |
| 17 | ``` |
| 18 |