Repository avatar
AI Tools
v0.6.1
active

glass-ui

io.github.lemuayala/glass-ui

iOS-style glassmorphism components and GLASS.md specs for Tailwind and React Native.

Documentation


Glass UI

Glassmorphism playground for web and React Native.


Tune seven iOS-style primitives, preview on iPhone or iPad,
export Tailwind / NativeWind TSX, and copy GLASS.md for your editor or agent.


Live Demo Playground Next.js React Tailwind CSS License PRs Welcome


Captura desde 2026-05-24 18-57-51 Captura desde 2026-05-24 18-58-09


What you get

  • Playground (/play) — Card, Button, Input, Modal, Tab Bar, Switch, Nav Bar; blur, tint, radius, intensity, borders, padding, shadow.
  • Device preview — iPhone, iPad, or full-width; upload a wallpaper to check transparency.
  • Presets — Frosted, Liquid Glass, Smoked, Crystal, Sunset, Aqua.
  • Export — web inline or CVA component; native (expo-blur <BlurView> or NativeWind) inline or typed file; GLASS.md with tokens, TSX, paths, and a short checklist.
  • CLI & npm — install components via npx @lemuayala/glass-ui-core add card or import @lemuayala/glass-ui-core directly.
  • shadcn registry — every primitive, preset and platform as a shadcn item: npx shadcn@latest add https://glass-ui-play.vercel.app/r/glass-card.json (index at /r/registry.json, everything at /r/glass-ui.json).
  • MCP Server — connect @lemuayala/glass-ui-mcp to Claude Code, Cursor, or Antigravity (claude mcp add glass-ui -- npx -y @lemuayala/glass-ui-mcp).
  • Share URL — same design opens for anyone with the link.
  • EN / ES — UI translated; component names stay in English in the nav.

CLI & MCP Quick Setup

# Drop a typed component directly into your Next.js, Vite, or Expo project
npx @lemuayala/glass-ui-core add card
npx @lemuayala/glass-ui-core add button --native --preset liquid --glass-md

# Or with the shadcn CLI (items: <component>[-<preset>][-native])
npx shadcn@latest add https://glass-ui-play.vercel.app/r/glass-card.json
npx shadcn@latest add https://glass-ui-play.vercel.app/r/glass-button-liquid.json

# Connect Glass UI MCP server to Claude Code
claude mcp add glass-ui -- npx -y @lemuayala/glass-ui-mcp

Components

PrimitiveWebReact Native
Card✅✅
Button✅✅
Input✅✅
Modal✅✅
Tab Bar✅✅
Switch✅✅
Nav Bar✅✅

Core properties

PropertyOptions
themelight · dark
blurnone · sm · md · lg · xl
roundednone · md · lg · xl · 2xl · 3xl · full
intensitysubtle · medium · strong
bordernone · subtle · strong
paddingsm · md · lg
shadownone · sm · md · lg
tintnone · blue · pink · orange · teal

GLASS.md

Open the code panel in the playground and copy GLASS.md. It includes your current props, target project (framework, paths, Tailwind version, package manager), generated TSX, usage snippet, and integration steps — useful for Cursor, Claude, or Copilot without re-describing the design.


Export modes

ModeWebNative
Inline snippetTailwind classes in JSXexpo-blur <BlurView> or NativeWind on View / Pressable
Reusable componentCVA + forwardRefTyped CVA component + <BlurView> / NativeWind

Quick start

Requires pnpm.

git clone https://github.com/lemuayala/glass-ui.git
cd glass-ui
pnpm install
pnpm dev
URLRoute
localhost:3000Landing
localhost:3000/playPlayground

Optional (see .env.example):

NEXT_PUBLIC_SITE_URL=https://your-domain.vercel.app
NEXT_PUBLIC_GITHUB_URL=https://github.com/lemuayala/glass-ui
pnpm icons:export   # regenerate apple-icon PNGs from SVG

Scripts

CommandPurpose
pnpm devDev server
pnpm buildProduction build
pnpm lintESLint
pnpm typecheckTypeScript check
pnpm testUnit & integration tests (Vitest)
pnpm test:coverageTests with V8 coverage thresholds
pnpm test:e2eBrowser E2E suite (Playwright, desktop + mobile)

Tech stack

LayerTechnology
FrameworkNext.js 16 (App Router)
UIReact 19
StylingTailwind CSS v4
VariantsCVA
NativeNativeWind-oriented templates
Themingnext-themes
Highlightingprism-react-renderer
i18nCustom dictionaries (lib/i18n/)

Codegen: lib/glass-core/ · Contributor notes: AGENTS.md


Keyboard shortcuts

ShortcutAction
1–7Switch component
TComponent theme
PPresets
SCopy share link
LLanguage
Shift+TApp theme
?Shortcuts
EscClose dialogs

Roadmap

  • Switch & Nav Bar
  • GLASS.md + project profile
  • Landing + /play, share URLs
  • Real native blur (expo-blur <BlurView>) + NativeWind switch
  • @lemuayala/glass-ui-core npm package + CLI installer
  • @lemuayala/glass-ui-mcp server for coding agents
  • Post-publish smoke test against npm
  • shadcn-compatible registry (/r/*.json)
  • Figma plugin
  • Embedded native preview (Expo Snack)

Deploy

Hosted on Vercel — preview on pull requests, production on main.


Built with ❤️ by lemuayala

⭐ Star on GitHub · ▶ Open playground · Report an issue



MIT License

NPM
@lemuayala/glass-ui-mcp
Install Command
npm install @lemuayala/glass-ui-mcp