Skip to content

Repository files navigation

Rega Liquid - Liquid Glass Web Design System

Rega Liquid Audit Live Demo Python 3.8+ Node 18+

A performance-first, content-aware Liquid Glass (Apple VisionOS/iOS inspired) UI design system specification, implementation guide, component templates, CLI scaffolder, and quality assurance suite for web applications.

👉 View Live Demo Playground


🌟 Overview

Rega Liquid provides a complete engineering standard for creating translucent, refractive, and glassmorphic user interfaces without sacrificing rendering speed, battery life, readability, or accessibility.

Core Highlights

  • Content First: Primary reading content remains solid; glass is reserved for functional layers (navbars, toolbars, cards, modals, floating docks).
  • Restrained Layering: 4 subtle optical layers: translucent fill, backdrop blur, specular inner rim, and drop elevation.
  • Anti-Banding SVG Noise: Micro-grain procedural noise texture eliminates color banding on large backdrop blurs.
  • Modern CSS Standards: Uses @property animatable specular angles, Container Queries (@container), and dynamic Light/Dark mode token switching.
  • Multi-Framework Ecosystem: Native components for React, Vue 3, Svelte 5, and Web Components (Custom Elements).
  • IDE Autocomplete Snippets: Ready-to-use VS Code & Cursor code snippets (assets/snippets/liquid-glass.code-snippets).

🏗️ 3-Tier Rendering Architecture

To prevent GPU thrashing and maintain 60 FPS across mobile and desktop devices, rendering intensity is categorized into three strict tiers:

Tier Technology Recommended Usage Constraints
Core (Default) CSS backdrop-filter, noise, rim inset, transform motion General UI: Floating nav, cards, modals, inspectors $\le 6$ active surfaces, 12–18px blur
Enhanced Core + SVG displacement/refraction maps Focal points: Primary CTA, media controls $\le 2$ active surfaces
Showcase WebGL / Canvas live snapshots Hero sections, interactive demos 1 surface maximum (requires explicit approval)

🛠️ CLI Quick Scaffolder

Initialize Rega Liquid assets directly in any project:

# Scaffold core CSS and JS assets
node scripts/cli.mjs init --target ./my-app/public

# Copy Tailwind CSS plugin
node scripts/cli.mjs add-tailwind --target ./my-app/plugins

⚡ VS Code & Cursor Autocomplete Snippets

Copy assets/snippets/liquid-glass.code-snippets into your .vscode/ or editor snippets directory for instant autocomplete:

  • lg-surface — HTML Liquid Glass surface container.
  • lg-card-react — React LiquidGlassCard component.
  • lg-card-vue — Vue 3 LiquidGlassCard template.
  • lg-card-svelte — Svelte 5 LiquidGlassCard component.
  • lg-webcomponent<liquid-glass-card> Web Component.
  • lg-modal-react — Accessible React glass modal.
  • lg-dock-react — React floating glass dock toolbar.

📁 Repository Structure

.
├── SKILL.md                          # Primary AI agent instructions & operating contract
├── README.md                         # Project documentation & system overview
├── CONTRIBUTING.md                   # Open source contribution guidelines
├── SECURITY.md                       # Security disclosure policy
├── CODE_OF_CONDUCT.md                # Community Code of Conduct
├── .github/                          # CI/CD & GitHub Pages Workflows
│   └── workflows/
│       ├── audit.yml                 # Automated PR risk scanner
│       └── deploy-pages.yml          # GitHub Pages live demo deployer
├── references/                       # Architectural reference documentation
├── scripts/                          # Automated QA, CLI & benchmark tooling
│   ├── cli.mjs                       # Project asset scaffolder CLI
│   ├── audit_liquid_glass.py         # Static code audit scanner
│   └── benchmark_page.mjs            # Puppeteer frame-rate benchmark tool
└── assets/                           # Plugins, components, snippets & starters
    ├── snippets/                     # VS Code & Cursor code snippets
    ├── plugins/                      # Tailwind CSS plugin
    ├── components/                   # React, Vue, Svelte & Web Component templates
    └── starter/                      # Starter template & live demo fixture

🚀 Quick Start Auditing

Run the static risk scanner on your codebase to catch performance issues:

python3 scripts/audit_liquid_glass.py /path/to/your/project --strict

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages