liquid-glass-for-react 0.0.5 → 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.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +289 -66
  3. package/dist/index.cjs +4 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +1474 -0
  6. package/dist/index.d.ts +1474 -2
  7. package/dist/index.js +4 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/styles.css +1178 -0
  10. package/package.json +67 -36
  11. package/dist/App.d.ts +0 -3
  12. package/dist/App.d.ts.map +0 -1
  13. package/dist/components/Alert/Alert.d.ts +0 -21
  14. package/dist/components/Alert/Alert.d.ts.map +0 -1
  15. package/dist/components/Alert/index.d.ts +0 -2
  16. package/dist/components/Alert/index.d.ts.map +0 -1
  17. package/dist/components/Badge/Badge.d.ts +0 -7
  18. package/dist/components/Badge/Badge.d.ts.map +0 -1
  19. package/dist/components/Badge/index.d.ts +0 -2
  20. package/dist/components/Badge/index.d.ts.map +0 -1
  21. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  22. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
  23. package/dist/components/Breadcrumbs/index.d.ts +0 -2
  24. package/dist/components/Breadcrumbs/index.d.ts.map +0 -1
  25. package/dist/components/Button/Button.d.ts +0 -14
  26. package/dist/components/Button/Button.d.ts.map +0 -1
  27. package/dist/components/Button/index.d.ts +0 -2
  28. package/dist/components/Button/index.d.ts.map +0 -1
  29. package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -6
  30. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +0 -1
  31. package/dist/components/ButtonGroup/index.d.ts +0 -2
  32. package/dist/components/ButtonGroup/index.d.ts.map +0 -1
  33. package/dist/components/Calendar/Calendar.d.ts +0 -5
  34. package/dist/components/Calendar/Calendar.d.ts.map +0 -1
  35. package/dist/components/Calendar/index.d.ts +0 -2
  36. package/dist/components/Calendar/index.d.ts.map +0 -1
  37. package/dist/components/Card/Card.d.ts +0 -7
  38. package/dist/components/Card/Card.d.ts.map +0 -1
  39. package/dist/components/Card/CardBody.d.ts +0 -6
  40. package/dist/components/Card/CardBody.d.ts.map +0 -1
  41. package/dist/components/Card/CardFooter.d.ts +0 -6
  42. package/dist/components/Card/CardFooter.d.ts.map +0 -1
  43. package/dist/components/Card/CardHeader.d.ts +0 -14
  44. package/dist/components/Card/CardHeader.d.ts.map +0 -1
  45. package/dist/components/Card/index.d.ts +0 -3
  46. package/dist/components/Card/index.d.ts.map +0 -1
  47. package/dist/components/Checkbox/Checkbox.d.ts +0 -7
  48. package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
  49. package/dist/components/Checkbox/index.d.ts +0 -2
  50. package/dist/components/Checkbox/index.d.ts.map +0 -1
  51. package/dist/components/Chip/Chip.d.ts +0 -6
  52. package/dist/components/Chip/Chip.d.ts.map +0 -1
  53. package/dist/components/Chip/index.d.ts +0 -2
  54. package/dist/components/Chip/index.d.ts.map +0 -1
  55. package/dist/components/Code/Code.d.ts +0 -6
  56. package/dist/components/Code/Code.d.ts.map +0 -1
  57. package/dist/components/Code/index.d.ts +0 -2
  58. package/dist/components/Code/index.d.ts.map +0 -1
  59. package/dist/components/DatePicker/DatePicker.d.ts +0 -2
  60. package/dist/components/DatePicker/DatePicker.d.ts.map +0 -1
  61. package/dist/components/DatePicker/index.d.ts +0 -2
  62. package/dist/components/DatePicker/index.d.ts.map +0 -1
  63. package/dist/components/Dropdown/Dropdown.d.ts +0 -2
  64. package/dist/components/Dropdown/Dropdown.d.ts.map +0 -1
  65. package/dist/components/Dropdown/index.d.ts +0 -2
  66. package/dist/components/Dropdown/index.d.ts.map +0 -1
  67. package/dist/components/Input/Input.d.ts +0 -3
  68. package/dist/components/Input/Input.d.ts.map +0 -1
  69. package/dist/components/Modal/Modal.d.ts +0 -9
  70. package/dist/components/Modal/Modal.d.ts.map +0 -1
  71. package/dist/components/Modal/index.d.ts +0 -2
  72. package/dist/components/Modal/index.d.ts.map +0 -1
  73. package/dist/components/Pagination/Pagination.d.ts +0 -7
  74. package/dist/components/Pagination/Pagination.d.ts.map +0 -1
  75. package/dist/components/Pagination/index.d.ts +0 -2
  76. package/dist/components/Pagination/index.d.ts.map +0 -1
  77. package/dist/components/Radio/Radio.d.ts +0 -8
  78. package/dist/components/Radio/Radio.d.ts.map +0 -1
  79. package/dist/components/Radio/index.d.ts +0 -2
  80. package/dist/components/Radio/index.d.ts.map +0 -1
  81. package/dist/components/index.d.ts +0 -16
  82. package/dist/components/index.d.ts.map +0 -1
  83. package/dist/liquid-glass-for-react.es.js +0 -1081
  84. package/dist/liquid-glass-for-react.umd.js +0 -154
  85. package/dist/main.d.ts +0 -1
  86. package/dist/main.d.ts.map +0 -1
  87. package/dist/vite.svg +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
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/README.md CHANGED
@@ -1,69 +1,292 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default tseslint.config([
16
- globalIgnores(['dist']),
17
- {
18
- files: ['**/*.{ts,tsx}'],
19
- extends: [
20
- // Other configs...
21
-
22
- // Remove tseslint.configs.recommended and replace with this
23
- ...tseslint.configs.recommendedTypeChecked,
24
- // Alternatively, use this for stricter rules
25
- ...tseslint.configs.strictTypeChecked,
26
- // Optionally, add this for stylistic rules
27
- ...tseslint.configs.stylisticTypeChecked,
28
-
29
- // Other configs...
30
- ],
31
- languageOptions: {
32
- parserOptions: {
33
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
34
- tsconfigRootDir: import.meta.dirname,
35
- },
36
- // other options...
37
- },
38
- },
39
- ])
1
+ # Liquid Glass for React
2
+
3
+ Apple の Liquid Glass の視覚言語を、React と Tailwind CSS v4 で使える npm コンポーネントとして再構成したライブラリです。
4
+
5
+ - 背景のぼかしだけではなく、ポインター追従の反射、縁の屈折色、彩度、内外シャドウを合成
6
+ - React 18.3 / 19、SSR、ESM / CommonJS、TypeScript に対応
7
+ - Tailwind CSS v4 の `@theme` と共存し、通常の CSS としても利用可能
8
+ - Dark Mode、`prefers-reduced-motion`、`prefers-reduced-transparency`、高コントラストに対応
9
+ - controlled / uncontrolled の両 API、キーボード操作、ARIA、フォーカストラップを実装
10
+ - MUI の All components を基準にした 80 以上の公開コンポーネントとユーティリティ
11
+
12
+ > このプロジェクトは Apple Inc. とは関係ありません。Apple の商標・画像・SF Symbols は同梱していません。Web の描画機能でデザイン原則と光学表現を再現しています。
13
+
14
+ ## インストール
15
+
16
+ ブラウザで手順を確認する場合は [はじめに](https://liquid-glass-react-catalog-2026.yasuda-shunsuke1215.chatgpt.site/ja/getting-started/) を開いてください。
17
+
18
+ ```bash
19
+ npm install liquid-glass-for-react
20
+ ```
21
+
22
+ Tailwind CSS v4 のエントリー CSS で、Tailwind の後にスタイルを読み込みます。
23
+
24
+ ```css
25
+ @import "tailwindcss";
26
+ @import "liquid-glass-for-react/styles.css";
27
+ ```
28
+
29
+ Tailwind を使わない場合も、アプリのエントリーポイントから CSS を直接 import できます。
30
+
31
+ ```tsx
32
+ import "liquid-glass-for-react/styles.css";
33
+ ```
34
+
35
+ ## 最初のコンポーネント
36
+
37
+ ```tsx
38
+ import {
39
+ Actions,
40
+ Alert,
41
+ Button,
42
+ Description,
43
+ GlassProvider,
44
+ Title,
45
+ } from "liquid-glass-for-react";
46
+ import "liquid-glass-for-react/styles.css";
47
+
48
+ export function App() {
49
+ return (
50
+ <GlassProvider colorScheme="auto" accent="#0a84ff">
51
+ <Alert tone="success">
52
+ <div>
53
+ <Title>保存しました</Title>
54
+ <Description>変更内容はすべて同期されています。</Description>
55
+ </div>
56
+ <Actions>
57
+ <Button variant="prominent">閉じる</Button>
58
+ </Actions>
59
+ </Alert>
60
+ </GlassProvider>
61
+ );
62
+ }
63
+ ```
64
+
65
+ `Alert.Title`、`Card.Content` のような名前空間 API はありません。`Title`、`Description`、`Content`、`Header`、`Footer`、`Actions` は HTML タグのように、どの表面でも使える独立した要素です。
66
+
67
+ ```tsx
68
+ <Card interactive>
69
+ <Header>
70
+ <Avatar alt="Yatsumi" />
71
+ <Badge content={3}><IconButton aria-label="通知">…</IconButton></Badge>
72
+ </Header>
73
+ <Content>
74
+ <Title>プロジェクト</Title>
75
+ <Description>最終更新: たった今</Description>
76
+ </Content>
77
+ <Actions>
78
+ <Button>キャンセル</Button>
79
+ <Button variant="prominent">開く</Button>
80
+ </Actions>
81
+ </Card>
82
+ ```
83
+
84
+ ## Liquid Glass マテリアル
85
+
86
+ `Glass` が全コンポーネントの光学的な基盤です。`blur`、`tint`、`radius` は CSS 変数へ変換され、React の再レンダーなしでポインター位置に反射が追従します。
87
+
88
+ ```tsx
89
+ <Glass
90
+ variant="clear"
91
+ tone="accent"
92
+ blur={32}
93
+ radius="32px"
94
+ tint="oklch(72% 0.16 240)"
95
+ interactive
96
+ className="p-8"
97
+ >
98
+ 背景コンテンツに応じて変化するガラス
99
+ </Glass>
100
+ ```
101
+
102
+ `variant` は `regular | clear | prominent | tinted`、`tone` は `neutral | accent | success | warning | danger | info` です。
103
+
104
+ ## カラーモードとアクセシビリティ
105
+
106
+ ```tsx
107
+ <GlassProvider
108
+ colorScheme="auto"
109
+ accent="#bf5af2"
110
+ reduceTransparency={false}
111
+ reduceMotion={false}
112
+ >
113
+ <App />
114
+ </GlassProvider>
115
+ ```
116
+
117
+ - `colorScheme="auto"` は OS 設定を購読します。
118
+ - `reduceTransparency` を有効にすると、半透明レイヤーを高コントラストの不透明表面へ切り替えます。
119
+ - `reduceMotion` を有効にすると、すべてのスプリング・トランジションを停止します。
120
+ - OS の同名設定にも CSS media query で自動追従します。
121
+ - アイコンだけの `IconButton` には `aria-label` が型レベルで必須です。
122
+
123
+ SSR で初期カラーモードのちらつきを避ける場合は、ドキュメントの `<head>` に `InitColorSchemeScript` を置けます。
124
+
125
+ ## コンポーネント一覧
126
+
127
+ MUI Material UI の現行 All components ページを分類の基準にし、MUI X の主要要素も含めています。
128
+
129
+ | 分類 | コンポーネント |
130
+ | --- | --- |
131
+ | Material | `Glass`, `GlassProvider`, `Paper` |
132
+ | Inputs | `Autocomplete`, `Button`, `IconButton`, `ButtonGroup`, `Checkbox`, `Fab`, `NumberField`, `Radio`, `RadioGroup`, `Rating`, `Select`, `SelectItem`, `Slider`, `Switch`, `TextField`, `TransferList`, `ToggleButton`, `ToggleButtonGroup` |
133
+ | Data display | `Avatar`, `AvatarGroup`, `Badge`, `Chip`, `Divider`, `Icon`, `List`, `ListItem`, `ListSubheader`, `Table`, `TableHead`, `TableBody`, `TableFooter`, `TableRow`, `TableHeader`, `TableColumn`, `TableCell`, `TableCaption`, `TableContainer`, `Tooltip`, `Typography` |
134
+ | Feedback | `Alert`, `Backdrop`, `Dialog`, `Progress`, `CircularProgress`, `LinearProgress`, `Skeleton`, `Snackbar` |
135
+ | Surfaces | `Accordion`, `AccordionItem`, `AccordionSummary`, `AccordionDetails`, `AppBar`, `Card`, `Paper` |
136
+ | Navigation | `BottomNavigation`, `BottomNavigationAction`, `BottomSheet`, `Breadcrumbs`, `Drawer`, `Link`, `Menu`, `MenuItem`, `MenuDivider`, `Menubar`, `Pagination`, `SpeedDial`, `SpeedDialAction`, `Stepper`, `Step`, `StepLabel`, `Tabs`, `Tab`, `TabPanel` |
137
+ | Layout | `Box`, `Container`, `Grid`, `GridItem`, `Stack`, `ImageList`, `ImageListItem` |
138
+ | Advanced / Lab | `DataGrid`, `DatePicker`, `TimePicker`, `DateTimePicker`, `Chart`, `TreeView`, `TreeItem`, `Masonry`, `Timeline`, `TimelineItem` |
139
+ | Utils | `ClickAwayListener`, `CssBaseline`, `InitColorSchemeScript`, `Modal`, `NoSsr`, `Popover`, `Popper`, `Portal`, `TextareaAutosize`, `Transition`, `useMediaQuery` |
140
+ | Semantic parts | `Title`, `Description`, `Content`, `Header`, `Footer`, `Actions`, `VisuallyHidden` |
141
+
142
+ ## フォームの例
143
+
144
+ ```tsx
145
+ function Settings() {
146
+ const [quality, setQuality] = useState("balanced");
147
+
148
+ return (
149
+ <Stack gap={16}>
150
+ <TextField label="表示名" helperText="32文字まで" block />
151
+ <Select label="言語" defaultValue="ja">
152
+ <option value="ja">日本語</option>
153
+ <option value="en">English</option>
154
+ </Select>
155
+ <RadioGroup value={quality} onValueChange={setQuality}>
156
+ <Radio value="quality" label="高品質" />
157
+ <Radio value="balanced" label="バランス" />
158
+ </RadioGroup>
159
+ <Switch label="通知" defaultChecked />
160
+ <Slider label="強度" defaultValue={65} showValue />
161
+ </Stack>
162
+ );
163
+ }
40
164
  ```
41
165
 
42
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
43
-
44
- ```js
45
- // eslint.config.js
46
- import reactX from 'eslint-plugin-react-x'
47
- import reactDom from 'eslint-plugin-react-dom'
48
-
49
- export default tseslint.config([
50
- globalIgnores(['dist']),
51
- {
52
- files: ['**/*.{ts,tsx}'],
53
- extends: [
54
- // Other configs...
55
- // Enable lint rules for React
56
- reactX.configs['recommended-typescript'],
57
- // Enable lint rules for React DOM
58
- reactDom.configs.recommended,
59
- ],
60
- languageOptions: {
61
- parserOptions: {
62
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
63
- tsconfigRootDir: import.meta.dirname,
64
- },
65
- // other options...
66
- },
67
- },
68
- ])
166
+ ## Dialog と Menu
167
+
168
+ `Dialog`、`Drawer`、`Menu`、`Popover` は Portal、Escape キー、クリックアウェイ、フォーカス復帰を共通実装しています。`BottomSheet` は画面下から開くモーダルで、ハンドルを下にドラッグして閉じられます。[BottomSheet の使用例](https://liquid-glass-react-catalog-2026.yasuda-shunsuke1215.chatgpt.site/ja/components/bottom-sheet)
169
+
170
+ ```tsx
171
+ const [open, setOpen] = useState(false);
172
+
173
+ <>
174
+ <Button onClick={() => setOpen(true)}>設定</Button>
175
+ <Dialog open={open} onClose={() => setOpen(false)}>
176
+ <Header><Title>表示設定</Title></Header>
177
+ <Content>…</Content>
178
+ <Actions>
179
+ <Button onClick={() => setOpen(false)}>閉じる</Button>
180
+ </Actions>
181
+ </Dialog>
182
+ </>
183
+ ```
184
+
185
+ ## Tailwind による上書き
186
+
187
+ すべてのコンポーネントは `className`、標準 HTML 属性、`style` を受け取ります。Tailwind のユーティリティをそのまま組み合わせられます。
188
+
189
+ ```tsx
190
+ <Glass className="grid gap-6 p-6 md:grid-cols-2" radius="2rem">
191
+ <Card className="min-h-56" />
192
+ <Card className="min-h-56" />
193
+ </Glass>
194
+ ```
195
+
196
+ 公開しているテーマ変数:
197
+
198
+ ```css
199
+ .brand-glass {
200
+ --lg-accent: #ff375f;
201
+ --lg-radius: 30px;
202
+ --lg-blur: 30px;
203
+ --lg-saturation: 190%;
204
+ }
205
+ ```
206
+
207
+ Tailwind 側では `font-liquid`、`text-liquid-accent`、`text-liquid-text`、`rounded-liquid` などのテーマトークンも利用できます。
208
+
209
+ ## Theme と Props の使い分け
210
+
211
+ Theme Builder / `GlassProvider` / CSS変数はアプリ全体の既定値です。個別の見た目や動きはPropsで上書きでき、指定しない値はテーマから継承されます。複数要素を持つコンポーネントは `classNames` と `styles` でslot単位に調整できます。
212
+
213
+ ```tsx
214
+ <Button
215
+ variant="prominent"
216
+ radius={18}
217
+ blur={28}
218
+ pressScale={1.12}
219
+ motionDuration={220}
220
+ classNames={{ label: "font-semibold" }}
221
+ styles={{ label: { letterSpacing: "-0.01em" } }}
222
+ >
223
+ 個別に調整
224
+ </Button>
225
+ ```
226
+
227
+ `Glass` は `radius`、`blur`、`saturation`、`tint`、`pressScale`、`motionDuration` に対応します。`Switch` と `Slider` も色・寸法・動きの専用Propsとslot APIを持ちます。どのコンポーネントでも従来どおり `className`、`style`、標準HTML属性を利用できます。
228
+
229
+ ### HeroUI v2 で使われている Props
230
+
231
+ 対応するコンポーネントでは `isDisabled`、`isLoading`、`startContent`、`endContent`、`classNames` などを使えます。テーマで設定した既定値を継承し、指定したインスタンスだけを調整できます。追加のインストールは不要です。
232
+
233
+ ```tsx
234
+ import { Button, Select, SelectItem } from "liquid-glass-for-react";
235
+
236
+ const items = [{ id: "clear", name: "クリアガラス" }, { id: "regular", name: "標準ガラス" }];
237
+
238
+ export function MaterialForm({ onSave }: { onSave: (material: string) => void }) {
239
+ return (
240
+ <form onSubmit={(event) => {
241
+ event.preventDefault();
242
+ onSave(String(new FormData(event.currentTarget).get("material")));
243
+ }}>
244
+ <Select name="material" label="素材" items={items} defaultSelectedKeys={["clear"]}>
245
+ {(item) => <SelectItem key={item.id}>{item.name}</SelectItem>}
246
+ </Select>
247
+ <Button type="submit" color="primary" variant="solid">保存</Button>
248
+ </form>
249
+ );
250
+ }
251
+ ```
252
+
253
+ | 用途 | Liquid Glass での使い方 |
254
+ | --- | --- |
255
+ | 入力 | `TextField`、`NumberField`、`TextareaAutosize` にラベル、説明、状態、バリデーション、スロットを指定 |
256
+ | 単一・複数選択 | `SelectItem`、`AccordionItem`、`Tab` にキーを付け、`selectedKeys` または `selectedKey` と `onSelectionChange` で管理 |
257
+ | オーバーレイ | `Dialog`、`Drawer`、`Popover` に `isOpen`、`defaultOpen`、`onOpenChange` を指定 |
258
+ | テーブル | `TableHead` 内に `TableColumn` を配置。行選択は `selectedKeys`、ソートは `sortDescriptor` と `onSortChange` で管理 |
259
+ | スライダー | 単一値は数値、範囲選択は配列を指定。`onValueChange` で値、`onChangeEnd` で確定値を受け取る |
260
+
261
+ 日付と時刻は ISO 形式の文字列を受け取ります。単一値の Slider の `onChange` は既存の DOM イベントを返すため、数値が必要な場合は `onValueChange` を使います。オーバーレイのアニメーションは本ライブラリの Props と CSS トークンで調整できます。HeroUI の Framer Motion 用 `motionProps`、仮想スクロール API、タイムゾーン付きの日付オブジェクト、Navbar のメニュー連携、`ToastProvider`、Tab・MenuItem の `href` は未対応です。対応する Props の型は各コンポーネントの API 表とパッケージの型定義で確認できます。
262
+
263
+ ## ローカル開発
264
+
265
+ ```bash
266
+ pnpm install
267
+ pnpm dev # デモ
268
+ pnpm test # Vitest + Testing Library
269
+ pnpm typecheck
270
+ pnpm build # ESM / CJS / d.ts / CSS
69
271
  ```
272
+
273
+ 公開前の確認:
274
+
275
+ ```bash
276
+ npm run check
277
+ npm pack --dry-run
278
+ npm publish
279
+ ```
280
+
281
+ ## ブラウザ要件
282
+
283
+ 最新版の Chrome、Edge、Safari、Firefox を対象にしています。`backdrop-filter`、CSS masks、`color-mix()` に未対応のブラウザでも、半透明のフォールバック表面として表示されます。ネイティブの Liquid Glass と完全に同じピクセル単位の屈折計算は Web API では提供されないため、本ライブラリは CSS 合成で近似しています。
284
+
285
+ ## 設計リファレンス
286
+
287
+ - [Apple — Adopting Liquid Glass](https://developer.apple.com/documentation/technologyoverviews/adopting-liquid-glass)
288
+ - [Material UI — All components](https://mui.com/material-ui/all-components/)
289
+
290
+ ## License
291
+
292
+ MIT