轻量级终端液态玻璃UI效果生成引擎 | Lightweight Terminal Liquid Glass UI Effect Generation Engine
一键生成 Apple 液态玻璃风格 UI 效果代码,支持 CSS / React / Vue / Svelte / HTML 五种输出格式 🚀
GlassForge-CLI 是一款零依赖的终端命令行工具,灵感来源于 Apple 2025 WWDC 发布的「液态玻璃(Liquid Glass)」设计语言。它能一键生成精美的毛玻璃 UI 效果代码,支持 CSS、React(TypeScript)、Vue 3(SFC)、Svelte、HTML 五种输出格式,让开发者无需手动编写复杂的 CSS 即可将液态玻璃效果集成到任何项目中。
🦞 自研差异化亮点:
prefers-color-scheme 自动切换环境要求:
安装步骤:
# 克隆仓库
git clone https://github.com/gitstq/GlassForge-CLI.git
cd GlassForge-CLI
# 安装(零外部依赖,即装即用)
pip install .
快速使用:
# 使用默认水晶主题生成纯 CSS 代码
glassforge generate --type css
# 使用极光主题生成 React 组件
glassforge generate --type react --theme aurora
# 使用日落主题生成 Vue 组件
glassforge generate --type vue --theme sunset
# 使用薄荷主题生成 Svelte 组件
glassforge generate --type svelte --theme mint
# 生成完整 HTML 演示页面并在浏览器中预览
glassforge preview --theme ocean
# 列出所有可用主题
glassforge themes --list
# 查看主题详细配置
glassforge themes --show aurora
# 初始化项目(将组件文件添加到当前项目)
glassforge init --type react --theme crystal
glassforge generate — 生成液态玻璃效果代码| 参数 | 简写 | 说明 | 默认值 |
|---|---|---|---|
--type |
-t |
输出类型:css、react、vue、svelte、html | css |
--theme |
预设主题名称 | crystal | |
--blur |
-b |
模糊强度(0-50px) | 主题默认值 |
--opacity |
-o |
背景透明度(0.0-1.0) | 主题默认值 |
--color |
-c |
主色调(十六进制颜色值) | 主题默认值 |
--border-radius |
-r |
边框圆角(0-100px) | 主题默认值 |
--gloss |
-g |
光泽强度(0.0-1.0) | 主题默认值 |
--output |
输出文件路径 | 自动生成 |
自定义示例:
# 自定义参数生成
glassforge generate --type css --theme aurora --blur 30 --opacity 0.8 --color "#00ff88" --border-radius 32 --gloss 0.9 --output my-glass.css
# 生成 React 组件到指定文件
glassforge generate --type react --theme sunset --output src/components/LiquidGlass.tsx
# 生成 Vue 组件
glassforge generate --type vue --theme mint --output src/components/LiquidGlass.vue
glassforge preview — 浏览器预览# 使用指定主题预览
glassforge preview --theme crystal
glassforge preview --theme aurora
glassforge themes — 主题管理# 列出所有主题
glassforge themes --list
# 查看主题详细信息
glassforge themes --show crystal
glassforge themes --show aurora
glassforge init — 项目初始化# 初始化 React 项目
glassforge init --type react --theme crystal
# 初始化 Vue 项目
glassforge init --type vue --theme mint
# 初始化 Svelte 项目
glassforge init --type svelte --theme ocean
| 主题 | 英文名 | 风格描述 |
|---|---|---|
| 💎 水晶 | Crystal | 透明清亮,白色高光,经典纯净 |
| 🌌 极光 | Aurora | 蓝绿渐变,梦幻迷离,科技感 |
| 🌊 深海 | Ocean | 深蓝渐变,沉稳大气,深邃 |
| 🌋 熔岩 | Lava | 红橙渐变,热烈奔放,活力 |
| 🌿 薄荷 | Mint | 绿色清新,柔和自然,舒适 |
| 🌅 日落 | Sunset | 橙紫渐变,温暖浪漫,优雅 |
设计理念: GlassForge-CLI 的核心理念是「让液态玻璃效果触手可及」。Apple 在 2025 WWDC 上推出的液态玻璃设计语言惊艳了整个设计界,但将其集成到实际项目中需要大量 CSS 调试工作。GlassForge-CLI 通过模板引擎和预设主题系统,将复杂的 CSS 效果封装为简单的 CLI 命令,让任何开发者都能在几秒内获得生产级的液态玻璃 UI 代码。
技术选型原因:
后续迭代计划:
# 从 PyPI 安装(未来发布后)
pip install glassforge-cli
# 从源码安装
git clone https://github.com/gitstq/GlassForge-CLI.git
cd GlassForge-CLI
pip install .
# 验证安装
glassforge --help
兼容环境:
欢迎贡献代码!请遵循以下规范:
git checkout -b feat/your-featuregit commit -m "feat: add your feature"git push origin feat/your-feature提交规范: 遵循 Angular Commit Convention
feat: 新增功能fix: 修复问题docs: 文档更新refactor: 代码重构test: 测试相关chore: 构建/工具链相关本项目基于 MIT License 开源。
GlassForge-CLI 是一款零依賴的終端命令列工具,靈感來源於 Apple 2025 WWDC 發布的「液態玻璃(Liquid Glass)」設計語言。它能一鍵生成精美的毛玻璃 UI 效果程式碼,支援 CSS、React(TypeScript)、Vue 3(SFC)、Svelte、HTML 五種輸出格式,讓開發者無需手動編寫複雜的 CSS 即可將液態玻璃效果整合到任何專案中。
🦞 自研差異化亮點:
prefers-color-scheme 自動切換環境要求:
安裝步驟:
# 克隆倉庫
git clone https://github.com/gitstq/GlassForge-CLI.git
cd GlassForge-CLI
# 安裝(零外部依賴,即裝即用)
pip install .
快速使用:
# 使用預設水晶主題生成純 CSS 程式碼
glassforge generate --type css
# 使用極光主題生成 React 元件
glassforge generate --type react --theme aurora
# 使用日落主題生成 Vue 元件
glassforge generate --type vue --theme sunset
# 使用薄荷主題生成 Svelte 元件
glassforge generate --type svelte --theme mint
# 生成完整 HTML 演示頁面並在瀏覽器中預覽
glassforge preview --theme ocean
# 列出所有可用主題
glassforge themes --list
# 查看主題詳細配置
glassforge themes --show aurora
# 初始化專案(將元件檔案新增到當前專案)
glassforge init --type react --theme crystal
glassforge generate — 生成液態玻璃效果程式碼| 參數 | 簡寫 | 說明 | 預設值 |
|---|---|---|---|
--type |
-t |
輸出類型:css、react、vue、svelte、html | css |
--theme |
預設主題名稱 | crystal | |
--blur |
-b |
模糊強度(0-50px) | 主題預設值 |
--opacity |
-o |
背景透明度(0.0-1.0) | 主題預設值 |
--color |
-c |
主色調(十六進位顏色值) | 主題預設值 |
--border-radius |
-r |
邊框圓角(0-100px) | 主題預設值 |
--gloss |
-g |
光澤強度(0.0-1.0) | 主題預設值 |
--output |
輸出檔案路徑 | 自動生成 |
自訂範例:
# 自訂參數生成
glassforge generate --type css --theme aurora --blur 30 --opacity 0.8 --color "#00ff88" --border-radius 32 --gloss 0.9 --output my-glass.css
# 生成 React 元件到指定檔案
glassforge generate --type react --theme sunset --output src/components/LiquidGlass.tsx
# 生成 Vue 元件
glassforge generate --type vue --theme mint --output src/components/LiquidGlass.vue
| 主題 | 英文名 | 風格描述 |
|---|---|---|
| 💎 水晶 | Crystal | 透明清亮,白色高光,經典純淨 |
| 🌌 極光 | Aurora | 藍綠漸層,夢幻迷離,科技感 |
| 🌊 深海 | Ocean | 深藍漸層,沉穩大氣,深邃 |
| 🌋 熔岩 | Lava | 紅橙漸層,熱烈奔放,活力 |
| 🌿 薄荷 | Mint | 綠色清新,柔和自然,舒適 |
| 🌅 日落 | Sunset | 橙紫漸層,溫暖浪漫,優雅 |
設計理念: GlassForge-CLI 的核心理念是「讓液態玻璃效果觸手可及」。Apple 在 2025 WWDC 上推出的液態玻璃設計語言驚豔了整個設計界,但將其整合到實際專案中需要大量 CSS 除錯工作。GlassForge-CLI 透過模板引擎和預設主題系統,將複雜的 CSS 效果封裝為簡單的 CLI 命令,讓任何開發者都能在幾秒內獲得生產級的液態玻璃 UI 程式碼。
後續迭代計畫:
# 從原始碼安裝
git clone https://github.com/gitstq/GlassForge-CLI.git
cd GlassForge-CLI
pip install .
# 驗證安裝
glassforge --help
相容環境:
歡迎貢獻程式碼!請遵循以下規範:
git checkout -b feat/your-featuregit commit -m "feat: add your feature"git push origin feat/your-feature本專案基於 MIT License 開源。
GlassForge-CLI is a zero-dependency terminal CLI tool inspired by Apple's "Liquid Glass" design language unveiled at WWDC 2025. It generates stunning frosted glass UI effect code with a single command, supporting CSS, React (TypeScript), Vue 3 (SFC), Svelte, and HTML output formats. Developers can integrate liquid glass effects into any project without manually writing complex CSS.
🦞 Key Differentiators:
prefers-color-schemePrerequisites:
Installation:
# Clone the repository
git clone https://github.com/gitstq/GlassForge-CLI.git
cd GlassForge-CLI
# Install (zero external dependencies, ready to use)
pip install .
Quick Usage:
# Generate pure CSS with default crystal theme
glassforge generate --type css
# Generate React component with aurora theme
glassforge generate --type react --theme aurora
# Generate Vue component with sunset theme
glassforge generate --type vue --theme sunset
# Generate Svelte component with mint theme
glassforge generate --type svelte --theme mint
# Generate full HTML demo page and preview in browser
glassforge preview --theme ocean
# List all available themes
glassforge themes --list
# Show theme details
glassforge themes --show aurora
# Initialize project (add component files to current project)
glassforge init --type react --theme crystal
glassforge generate — Generate Liquid Glass Effect Code| Option | Short | Description | Default |
|---|---|---|---|
--type |
-t |
Output type: css, react, vue, svelte, html | css |
--theme |
Preset theme name | crystal | |
--blur |
-b |
Blur intensity (0-50px) | theme default |
--opacity |
-o |
Background opacity (0.0-1.0) | theme default |
--color |
-c |
Primary color (hex value) | theme default |
--border-radius |
-r |
Border radius (0-100px) | theme default |
--gloss |
-g |
Gloss intensity (0.0-1.0) | theme default |
--output |
Output file path | auto-generated |
Customization Examples:
# Generate with custom parameters
glassforge generate --type css --theme aurora --blur 30 --opacity 0.8 --color "#00ff88" --border-radius 32 --gloss 0.9 --output my-glass.css
# Generate React component to specific file
glassforge generate --type react --theme sunset --output src/components/LiquidGlass.tsx
# Generate Vue component
glassforge generate --type vue --theme mint --output src/components/LiquidGlass.vue
glassforge preview — Browser Preview# Preview with a specific theme
glassforge preview --theme crystal
glassforge preview --theme aurora
glassforge themes — Theme Management# List all themes
glassforge themes --list
# Show theme details
glassforge themes --show crystal
glassforge themes --show aurora
glassforge init — Project Initialization# Initialize React project
glassforge init --type react --theme crystal
# Initialize Vue project
glassforge init --type vue --theme mint
# Initialize Svelte project
glassforge init --type svelte --theme ocean
| Theme | Name | Description |
|---|---|---|
| 💎 Crystal | Crystal | Transparent and clear with white highlights, classic and pure |
| 🌌 Aurora | Aurora | Blue-green gradient, dreamy and tech-forward |
| 🌊 Ocean | Ocean | Deep blue gradient, calm and profound |
| 🌋 Lava | Lava | Red-orange gradient, passionate and vibrant |
| 🌿 Mint | Mint | Fresh green, soft and natural |
| 🌅 Sunset | Sunset | Orange-purple gradient, warm and elegant |
Design Philosophy: GlassForge-CLI's core philosophy is "Making liquid glass effects accessible to everyone." Apple's liquid glass design language unveiled at WWDC 2025 captivated the design world, but integrating it into real projects requires extensive CSS debugging. GlassForge-CLI encapsulates complex CSS effects into simple CLI commands through a template engine and preset theme system, enabling any developer to obtain production-ready liquid glass UI code in seconds.
Technical Choices:
Roadmap:
# Install from source
git clone https://github.com/gitstq/GlassForge-CLI.git
cd GlassForge-CLI
pip install .
# Verify installation
glassforge --help
Compatible Environments:
Contributions are welcome! Please follow these guidelines:
git checkout -b feat/your-featuregit commit -m "feat: add your feature"git push origin feat/your-featureCommit Convention: Follow Angular Commit Convention
feat: New featuresfix: Bug fixesdocs: Documentation updatesrefactor: Code refactoringtest: Test-related changeschore: Build/tooling changesThis project is licensed under the MIT License.
Made with 🦞 by LobsterBot
Inspired by Apple Liquid Glass Design Language