liquent 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +23 -0
- package/README.fa.md +176 -0
- package/README.md +163 -2
- package/dist/index.cjs +9234 -0
- package/dist/index.d.cts +602 -0
- package/dist/index.d.ts +602 -0
- package/dist/index.js +9181 -0
- package/dist/styles.css +4242 -0
- package/package.json +87 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sshayanz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Liquent includes code from Glisse (https://github.com/0kzh/glisse), used under the MIT License:
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2026 Kelvin Zhang
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
package/README.fa.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<div dir="rtl" align="right">
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src=".github/assets/hero-fa.jpg" alt="Liquent، Liquid Glass برای React" width="100%" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">Liquent</h1>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<b>Liquid Glass برای React</b><br />
|
|
11
|
+
کامپوننتهایی که از اول با فارسی و راستبهچپ هم درست کار میکنند.
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="https://liquent.billx.ir"><b>مستندات و نمونههای زنده</b></a>
|
|
16
|
+
·
|
|
17
|
+
<a href="https://www.npmjs.com/package/liquent">npm</a>
|
|
18
|
+
·
|
|
19
|
+
<a href="README.md">English</a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<br />
|
|
23
|
+
|
|
24
|
+
## شیشهای که واقعی به نظر میرسد
|
|
25
|
+
|
|
26
|
+
شیشهی Liquent مثل یک شیشهی واقعی رفتار میکند: پشت خودش را در لبهها کج میکند، وسطش کمی مات است و لبههایش برق میزند. وقتی انگشتتان را روی یک کنترل نگه دارید، به یک عدسی کوچک تبدیل میشود و وقتی رها کنید، نرم سر جایش برمیگردد. در Chrome و Safari هم یکسان دیده میشود.
|
|
27
|
+
|
|
28
|
+
## با فارسی مشکلی ندارد
|
|
29
|
+
|
|
30
|
+
راستبهچپ از اول در خود کتابخانه در نظر گرفته شده. همهی کامپوننتها در صفحهی فارسی درست چیده میشوند، درست حرکت میکنند و با کلیدهای جهتنما هم درست کار میکنند. حروف فارسی حتی زیر شیشه هم به هم چسبیده میمانند.
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<img src=".github/assets/rtl-fa.jpg" alt="مقایسهی کنترلها در صفحهی راستبهچپ" width="100%" />
|
|
34
|
+
</p>
|
|
35
|
+
|
|
36
|
+
## کامپوننتها
|
|
37
|
+
|
|
38
|
+
<table>
|
|
39
|
+
<tr>
|
|
40
|
+
<td align="center" width="50%">
|
|
41
|
+
<img src=".github/assets/components/tabbar-fa.jpg" alt="نوار تب" width="100%" /><br />
|
|
42
|
+
<b>نوار تب</b><br /><code>TabBar</code>
|
|
43
|
+
</td>
|
|
44
|
+
<td align="center" width="50%">
|
|
45
|
+
<img src=".github/assets/components/segmented-fa.jpg" alt="کنترل چندگزینهای" width="100%" /><br />
|
|
46
|
+
<b>کنترل چندگزینهای</b><br /><code>SegmentedControl</code>
|
|
47
|
+
</td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td align="center" width="50%">
|
|
51
|
+
<img src=".github/assets/components/switches-fa.jpg" alt="کلید و شمارنده" width="100%" /><br />
|
|
52
|
+
<b>کلید و شمارنده</b><br /><code>Switch · Stepper</code>
|
|
53
|
+
</td>
|
|
54
|
+
<td align="center" width="50%">
|
|
55
|
+
<img src=".github/assets/components/slider-fa.jpg" alt="لغزنده" width="100%" /><br />
|
|
56
|
+
<b>لغزنده</b><br /><code>Slider</code>
|
|
57
|
+
</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td align="center" width="50%">
|
|
61
|
+
<img src=".github/assets/components/toolbar-fa.jpg" alt="نوار ابزار و جستجو" width="100%" /><br />
|
|
62
|
+
<b>نوار ابزار و جستجو</b><br /><code>Toolbar · SearchField</code>
|
|
63
|
+
</td>
|
|
64
|
+
<td align="center" width="50%">
|
|
65
|
+
<img src=".github/assets/components/menu-fa.jpg" alt="منو" width="100%" /><br />
|
|
66
|
+
<b>منو</b><br /><code>Menu</code>
|
|
67
|
+
</td>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td align="center" width="50%">
|
|
71
|
+
<img src=".github/assets/components/sheet-fa.jpg" alt="برگه" width="100%" /><br />
|
|
72
|
+
<b>برگه</b><br /><code>Sheet</code>
|
|
73
|
+
</td>
|
|
74
|
+
<td align="center" width="50%">
|
|
75
|
+
<img src=".github/assets/components/dialog-fa.jpg" alt="هشدار" width="100%" /><br />
|
|
76
|
+
<b>هشدار</b><br /><code>Dialog</code>
|
|
77
|
+
</td>
|
|
78
|
+
</tr>
|
|
79
|
+
</table>
|
|
80
|
+
|
|
81
|
+
<br />
|
|
82
|
+
|
|
83
|
+
| دسته | کامپوننتها |
|
|
84
|
+
| --: | --: |
|
|
85
|
+
| **پنلها** | <code>Glass</code> · <code>Sheet</code> · <code>Dialog</code> · <code>Modal</code> · <code>ScrollArea</code> |
|
|
86
|
+
| **ناوبری** | <code>TabBar</code> · <code>Toolbar</code> · <code>Sidebar</code> · <code>SegmentedControl</code> |
|
|
87
|
+
| **دکمهها و منوها** | <code>Button</code> · <code>Menu</code> · <code>ContextMenu</code> |
|
|
88
|
+
| **ورودی** | <code>Input</code> · <code>SearchField</code> · <code>Combobox</code> · <code>Select</code> |
|
|
89
|
+
| **انتخاب** | <code>Switch</code> · <code>Checkbox</code> · <code>RadioGroup</code> · <code>Slider</code> · <code>Stepper</code> |
|
|
90
|
+
| **وضعیت** | <code>Progress</code> · <code>Spinner</code> |
|
|
91
|
+
|
|
92
|
+
## نصب و شروع
|
|
93
|
+
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npm install liquent
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
```tsx
|
|
101
|
+
import { Button, Switch } from "liquent";
|
|
102
|
+
|
|
103
|
+
export function Settings() {
|
|
104
|
+
return (
|
|
105
|
+
<>
|
|
106
|
+
<Switch aria-label="Wi-Fi" defaultChecked />
|
|
107
|
+
<Button variant="filled">Continue</Button>
|
|
108
|
+
</>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
<div dir="rtl" align="right">
|
|
114
|
+
|
|
115
|
+
استایلها خودشان همراه کامپوننتها میآیند و لازم نیست کار دیگری بکنید. فقط اگر پروژهتان رندر سمت سرور (SSR) دارد، فایل `liquent/styles.css` را هم در layout اصلی import کنید.
|
|
116
|
+
|
|
117
|
+
### فارسی و راستبهچپ
|
|
118
|
+
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
```tsx
|
|
122
|
+
import { LiquentProvider } from "liquent";
|
|
123
|
+
|
|
124
|
+
// <html lang="fa" dir="rtl">
|
|
125
|
+
export default function Root({ children }) {
|
|
126
|
+
return <LiquentProvider locale="fa">{children}</LiquentProvider>;
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
<div dir="rtl" align="right">
|
|
131
|
+
|
|
132
|
+
با `LiquentProvider` متنهایی که خود کامپوننتها دارند فارسی میشوند؛ مثل دکمهی پاک کردن، کلمهی «جستجو» در فیلد جستجو و پیام «نتیجهای پیدا نشد». اگر خودتان متنی بدهید، همان نمایش داده میشود.
|
|
133
|
+
|
|
134
|
+
### شفاف یا مات
|
|
135
|
+
|
|
136
|
+
مثل تنظیم Liquid Glass در iOS، خودتان انتخاب میکنید شیشه چقدر شفاف باشد:
|
|
137
|
+
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
```tsx
|
|
141
|
+
<LiquentProvider glass="clear">…</LiquentProvider> // "clear"، "tinted" یا عددی از 0 تا 1
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
<div dir="rtl" align="right">
|
|
145
|
+
|
|
146
|
+
یا در CSS مقدار `--lq-glass-tint` را بدهید: `0` شفاف، `0.5` حالت پیشفرض iOS و `1` مات.
|
|
147
|
+
|
|
148
|
+
## ویژگیها
|
|
149
|
+
|
|
150
|
+
- **تببار iOS 27، اندازهگیریشده:** انگشت را روی تب نگه دارید تا لنز بالا بیاید و زیرش را بزرگتر نشان دهد. نوار پشت لنز با همان منحنی، نوارهای تیره و هالهی iOS باریکتر دیده میشود. همه از روی اسکرینشاتهای iOS 27.2 اندازه گرفته شدهاند.
|
|
151
|
+
- **فرم:** به `Switch` و `SegmentedControl` یک `name` بدهید تا مقدارشان با فرم ارسال شود.
|
|
152
|
+
- **جستجوی فارسی:** در `Combobox` فرقی نمیکند کاربر «ي» تایپ کند یا «ی»، «ك» یا «ک»، با نیمفاصله یا بدون آن، یا عدد را فارسی بنویسد یا انگلیسی؛ همه پیدا میشوند.
|
|
153
|
+
- **رنگ درست:** شیشه دور خودش هالهی رنگی نمیاندازد و رنگ عکسهای پشتش را خراب نمیکند.
|
|
154
|
+
- **منوی باهوش:** اگر منو کنار لبهی صفحه باشد، خودش به طرف دیگر باز میشود.
|
|
155
|
+
- **برای همه:** با صفحهکلید کار میکند و تنظیمات دسترسپذیری سیستم مثل کاهش حرکت و کاهش شفافیت را رعایت میکند.
|
|
156
|
+
- **تم روشن و تیره:** هر دو آمادهاند و ظاهر را میشود با متغیرهای CSS تغییر داد.
|
|
157
|
+
|
|
158
|
+
## توسعه
|
|
159
|
+
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
npm install
|
|
164
|
+
npm test
|
|
165
|
+
cd site && npm install && npm run dev # http://localhost:5199
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
<div dir="rtl" align="right">
|
|
169
|
+
|
|
170
|
+
## مجوز
|
|
171
|
+
|
|
172
|
+
با مجوز [MIT](LICENSE) منتشر شده و استفاده از آن آزاد است. توضیح کدهایی که از پروژههای دیگر آمده در فایل [NOTICE](NOTICE) است.
|
|
173
|
+
|
|
174
|
+
<sub>Liquid Glass طراحی شرکت Apple است. Liquent یک پروژهی مستقل است و ربطی به Apple ندارد.</sub>
|
|
175
|
+
|
|
176
|
+
</div>
|
package/README.md
CHANGED
|
@@ -1,3 +1,164 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src=".github/assets/hero-en.jpg" alt="Liquent: Liquid Glass for React" width="100%" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h1 align="center">Liquent</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<b>Liquid Glass for the web.</b><br />
|
|
9
|
+
iOS 26 and iOS 27 style glass components for React: glass that bends, frosts and catches the light, in every direction you write.
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://liquent.billx.ir"><b>Docs and live demos</b></a>
|
|
14
|
+
·
|
|
15
|
+
<a href="https://www.npmjs.com/package/liquent">npm</a>
|
|
16
|
+
·
|
|
17
|
+
<a href="README.fa.md">فارسی</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="https://github.com/sshayanz/Liquent/actions/workflows/ci.yml"><img src="https://github.com/sshayanz/Liquent/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
22
|
+
<a href="https://www.npmjs.com/package/liquent"><img src="https://img.shields.io/npm/v/liquent?color=0a84ff&label=npm" alt="npm version" /></a>
|
|
23
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-34c759" alt="MIT license" /></a>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
<br />
|
|
27
|
+
|
|
28
|
+
## Glass that feels real.
|
|
29
|
+
|
|
30
|
+
Liquent's glass refracts whatever sits behind it: it bends it at the rim, frosts it in the middle, and catches the light along its edge. Hold a control and its selection lifts into a lens. Let go and it settles like liquid.
|
|
31
|
+
|
|
32
|
+
It looks right in Chrome and in Safari, and on photos, video and live page content.
|
|
33
|
+
|
|
34
|
+
## Built for every direction.
|
|
35
|
+
|
|
36
|
+
Right to left is part of the design, not an afterthought. Tab bars, segmented controls, sliders, menus and sidebars lay out, move and respond to the keyboard correctly under `dir="rtl"`. Persian and Arabic text stays joined, even inside the glass.
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<img src=".github/assets/rtl-en.jpg" alt="Right-to-left controls before and after" width="100%" />
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
## Every control you need.
|
|
43
|
+
|
|
44
|
+
<table>
|
|
45
|
+
<tr>
|
|
46
|
+
<td align="center" width="50%">
|
|
47
|
+
<img src=".github/assets/components/tabbar-en.jpg" alt="Tab Bar" width="100%" /><br />
|
|
48
|
+
<b>Tab Bar</b><br /><code>TabBar</code>
|
|
49
|
+
</td>
|
|
50
|
+
<td align="center" width="50%">
|
|
51
|
+
<img src=".github/assets/components/segmented-en.jpg" alt="Segmented Control" width="100%" /><br />
|
|
52
|
+
<b>Segmented Control</b><br /><code>SegmentedControl</code>
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td align="center" width="50%">
|
|
57
|
+
<img src=".github/assets/components/switches-en.jpg" alt="Switch and Stepper" width="100%" /><br />
|
|
58
|
+
<b>Switch and Stepper</b><br /><code>Switch · Stepper</code>
|
|
59
|
+
</td>
|
|
60
|
+
<td align="center" width="50%">
|
|
61
|
+
<img src=".github/assets/components/slider-en.jpg" alt="Slider" width="100%" /><br />
|
|
62
|
+
<b>Slider</b><br /><code>Slider</code>
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<td align="center" width="50%">
|
|
67
|
+
<img src=".github/assets/components/toolbar-en.jpg" alt="Toolbar and Search" width="100%" /><br />
|
|
68
|
+
<b>Toolbar and Search</b><br /><code>Toolbar · SearchField</code>
|
|
69
|
+
</td>
|
|
70
|
+
<td align="center" width="50%">
|
|
71
|
+
<img src=".github/assets/components/menu-en.jpg" alt="Menu" width="100%" /><br />
|
|
72
|
+
<b>Menu</b><br /><code>Menu</code>
|
|
73
|
+
</td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<td align="center" width="50%">
|
|
77
|
+
<img src=".github/assets/components/sheet-en.jpg" alt="Sheet" width="100%" /><br />
|
|
78
|
+
<b>Sheet</b><br /><code>Sheet</code>
|
|
79
|
+
</td>
|
|
80
|
+
<td align="center" width="50%">
|
|
81
|
+
<img src=".github/assets/components/dialog-en.jpg" alt="Alert" width="100%" /><br />
|
|
82
|
+
<b>Alert</b><br /><code>Dialog</code>
|
|
83
|
+
</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</table>
|
|
86
|
+
|
|
87
|
+
<br />
|
|
88
|
+
|
|
89
|
+
| Category | Components |
|
|
90
|
+
| :-- | :-- |
|
|
91
|
+
| **Surfaces** | `Glass` · `Sheet` · `Dialog` · `Modal` · `ScrollArea` |
|
|
92
|
+
| **Navigation** | `TabBar` · `Toolbar` · `Sidebar` · `SegmentedControl` |
|
|
93
|
+
| **Actions** | `Button` · `Menu` · `ContextMenu` |
|
|
94
|
+
| **Input** | `Input` · `SearchField` · `Combobox` · `Select` |
|
|
95
|
+
| **Choice** | `Switch` · `Checkbox` · `RadioGroup` · `Slider` · `Stepper` |
|
|
96
|
+
| **Status** | `Progress` · `Spinner` |
|
|
97
|
+
|
|
98
|
+
## Get started.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npm install liquent
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
```tsx
|
|
105
|
+
import { Button, Switch } from "liquent";
|
|
106
|
+
|
|
107
|
+
export function Settings() {
|
|
108
|
+
return (
|
|
109
|
+
<>
|
|
110
|
+
<Switch aria-label="Wi-Fi" defaultChecked />
|
|
111
|
+
<Button variant="filled">Continue</Button>
|
|
112
|
+
</>
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
That's it. Styles ship with the components. With server rendering, also add `import "liquent/styles.css"` to your root layout.
|
|
118
|
+
|
|
119
|
+
### In Persian, or any right-to-left language
|
|
120
|
+
|
|
121
|
+
```tsx
|
|
122
|
+
import { LiquentProvider } from "liquent";
|
|
123
|
+
|
|
124
|
+
// <html lang="fa" dir="rtl">
|
|
125
|
+
export default function Root({ children }) {
|
|
126
|
+
return <LiquentProvider locale="fa">{children}</LiquentProvider>;
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The provider sets the words components carry on their own: the clear button's name, the search placeholder, the empty-list message. Anything you pass as a prop still wins.
|
|
131
|
+
|
|
132
|
+
### Clear or tinted
|
|
133
|
+
|
|
134
|
+
Like iOS's Liquid Glass setting, you choose how see-through the glass is:
|
|
135
|
+
|
|
136
|
+
```tsx
|
|
137
|
+
<LiquentProvider glass="clear">…</LiquentProvider> // "clear", "tinted", or 0 to 1
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Or set `--lq-glass-tint` in CSS: `0` is clear, `0.5` is iOS's default, `1` is tinted.
|
|
141
|
+
|
|
142
|
+
## Thoughtful details.
|
|
143
|
+
|
|
144
|
+
- **The iOS 27 tab bar, measured.** Hold a tab and the lens lifts and magnifies what's under it. The bar behind it bends thinner, with iOS's curve, bands and halo, all fitted to iOS 27.2 screenshots.
|
|
145
|
+
- **Forms, natively.** `Switch` and `SegmentedControl` take a `name` and submit with a plain `<form>`.
|
|
146
|
+
- **Search that understands Persian.** `Combobox` matches «ي» and «ی», «ك» and «ک», half-spaces, and Persian, Arabic or Latin digits. `foldText` is exported for your server.
|
|
147
|
+
- **True colour.** Resting glass adds no colour fringe, and on wide-gamut screens Display P3 photos stay vivid behind it.
|
|
148
|
+
- **Edge aware.** Menus near the side of the window open the other way.
|
|
149
|
+
- **Accessible.** Real form controls and native `<dialog>`, keyboard support throughout, and respect for Reduce Motion, Reduce Transparency and Increase Contrast.
|
|
150
|
+
- **Themeable.** Light and dark out of the box, tuned with `--lq-*` custom properties.
|
|
151
|
+
|
|
152
|
+
## Develop.
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
npm install
|
|
156
|
+
npm test
|
|
157
|
+
cd site && npm install && npm run dev # http://localhost:5199
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## License.
|
|
161
|
+
|
|
162
|
+
[MIT](LICENSE) © sshayanz. Third-party notices are in [NOTICE](NOTICE).
|
|
163
|
+
|
|
164
|
+
<sub>Liquid Glass is a design language by Apple Inc. Liquent is an independent open-source project, not affiliated with or endorsed by Apple.</sub>
|