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. Source: https://upstream.codes/coline/liquid-glass. Playground: https://liquid-glass.coline.space. |
| 6 |
| 7 | ### appearance |
| 8 |
| 9 | - Type: `"system" | "class" | "dark" | "light"` |
| 10 | - Default: `"system"` |
| 11 | - Group: Glass options |
| 12 |
| 13 | `system` follows prefers-color-scheme. `class` is dark while `<html>` has the `dark` class (Tailwind's class strategy, next-themes). `dark` and `light` fix it. |
| 14 |
| 15 | ```tsx |
| 16 | <LiquidGlass appearance="class" /> |
| 17 | ``` |
| 18 |