### Install dependencies and start dev server with pnpm Source: https://github.com/alexburlis/glassyui/blob/main/README.md Use Node 22 and the pnpm version pinned in package.json. The docs serve on loopback only at http://127.0.0.1:3000. ```bash pnpm install --frozen-lockfile pnpm dev ``` -------------------------------- ### Start local docs server Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-installation.md Starts the Next.js development server on localhost port 3000. Required before installing unpublished local changes. ```bash pnpm exec next dev -H 127.0.0.1 -p 3000 ``` -------------------------------- ### Check shadcn theme installation and rendering Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Installs the theme into clean copies of both stock fixtures and new-york in each colour theme, with the pinned shadcn CLI and a fixture's own newer CLI, then proves it in Chrome. Saves before-and-after screenshots, a report and traces (default: .artifacts/shadcn-theme). Use --guide-images to refresh the guide's images. ```bash pnpm check:shadcn-theme [artifact-directory] [--fixture ] ``` ```bash pnpm exec playwright install webkit firefox ``` ```bash pnpm check:shadcn-theme [artifact-directory] --guide-images public/guides/shadcn-theme ``` -------------------------------- ### Install Glassy UI packages with bun Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Install the required packages for a React component using bun. ```bash bun add expo-blur expo-glass-effect ``` -------------------------------- ### Render link preview loops with CUT=home and CUT=mobile Source: https://github.com/alexburlis/glassyui/blob/main/public/share/README.md Renders the home and mobile loops using the film engine in link-previews/. Requires pnpm install --ignore-workspace first. Outputs JPEGs and MP4s copied to public/share/ and public/share/loops/. Each render self-verifies H.264 High at 24 fps, 144 frames, BT.709, fast start, silent, at most 3.5 MB; poster at most 400 KB. ```shell cd link-previews pnpm install --ignore-workspace CUT=home node render.mjs CUT=mobile node render.mjs cp out/home.jpg out/mobile.jpg ../public/share/ cp out/home.mp4 out/mobile.mp4 ../public/share/loops/ ``` -------------------------------- ### Install a registry component by URL Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-components.md Use this command to install a registry component item by its URL without a Glassy UI namespace mapping. Replace with the actual item name. ```bash npx shadcn@4.14.1 add https://glassyui.com/r/.json ``` -------------------------------- ### Smoke test registry routes and install Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-installation.md Builds and serves the site locally on port 3100, then runs smoke tests for registry routes and install. The install smoke uses the pinned shadcn@4.14.1 and writes artifacts to .artifacts/prelaunch/registry-install. ```bash pnpm smoke:registry-routes http://127.0.0.1:3100 pnpm smoke:registry-install http://127.0.0.1:3100 ``` -------------------------------- ### Run the docs site in development Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Starts the development server for the docs site at http://localhost:3000. ```bash pnpm dev ``` -------------------------------- ### Manual React install command Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md Manual installation for React: npm install @radix-ui/react-slot clsx. Equivalent commands for pnpm, yarn, and bun are pnpm add, yarn add, and bun add respectively. ```bash npm install @radix-ui/react-slot clsx ``` -------------------------------- ### React packages install command formula Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md Template for installing React packages: {add} {packages}, where {add} is npm install, pnpm add, yarn add, or bun add depending on the package manager. ```bash {add} {packages} ``` -------------------------------- ### Installation Anatomy Diagram Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md ASCII diagram showing the layout of the installation section, including the h2 heading, platform line, method tabs, command block, and summary. ```text Installation h2 For React apps with Tailwind CSS 4. platform line [ CLI | Manual ] method tabs ┌─────────────────────────────────────────────┐ │ npm pnpm yarn bun Copy │ command header ├─────────────────────────────────────────────┤ │ $ npx shadcn@4.14.1 add https://glassyui.c… │ command └─────────────────────────────────────────────┘ Adds 10 files to components/glassyui and installs @radix-ui/react-slot and clsx. closure summary ``` -------------------------------- ### Install GlassScene, GlassPanel, and GlassButton with shadcn CLI Source: https://github.com/alexburlis/glassyui/blob/main/content/blog/liquid-glass-css-react.mdx Run this command to add the glass-scene, glass-panel, and glass-button components from the Glassy UI registry. The scene item depends on clsx and the glass-provider item, which the CLI installs automatically. ```bash npx shadcn@4.14.1 add https://glassyui.com/r/glass-scene.json https://glassyui.com/r/glass-panel.json https://glassyui.com/r/glass-button.json ``` -------------------------------- ### Manual native install command Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md Manual installation for React Native: npx expo install expo-blur expo-glass-effect. ```bash npx expo install expo-blur expo-glass-effect ``` -------------------------------- ### Start production server locally Source: https://github.com/alexburlis/glassyui/blob/main/docs/launch-readiness.md Copies static assets into the standalone output and starts the production server on 127.0.0.1:3100. Run in one terminal and leave it running while executing the checks in a second terminal. ```bash mkdir -p .next/standalone/public .next/standalone/.next/static cp -R public/. .next/standalone/public/ cp -R .next/static/. .next/standalone/.next/static/ HOSTNAME=127.0.0.1 PORT=3100 node .next/standalone/server.js ``` -------------------------------- ### Install Glassy UI packages with yarn Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Install the required packages for a React component using yarn. ```bash yarn add expo-blur expo-glass-effect ``` -------------------------------- ### React install command formula Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md Template for installing a React component: {runner} shadcn@4.14.1 add https://glassyui.com/r/{item}.json. The runner is npx for npm, pnpm dlx for pnpm, yarn dlx for yarn, and bunx --bun for bun. ```bash {runner} shadcn@4.14.1 add https://glassyui.com/r/{item}.json ``` -------------------------------- ### Install all package dependencies for copying components Source: https://github.com/alexburlis/glassyui/blob/main/README.md Install only the package dependencies the components you copy need. The complete set includes clsx, cmdk, and various @radix-ui/react-* packages. ```bash pnpm add clsx cmdk \ @radix-ui/react-accordion \ @radix-ui/react-avatar \ @radix-ui/react-checkbox \ @radix-ui/react-dialog \ @radix-ui/react-dropdown-menu \ @radix-ui/react-popover \ @radix-ui/react-radio-group \ @radix-ui/react-scroll-area \ @radix-ui/react-select \ @radix-ui/react-slider \ @radix-ui/react-slot \ @radix-ui/react-switch \ @radix-ui/react-tabs \ @radix-ui/react-toast \ @radix-ui/react-tooltip ``` -------------------------------- ### Install Glassy UI packages with pnpm Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Install the required packages for a React component using pnpm. ```bash pnpm add expo-blur expo-glass-effect ``` -------------------------------- ### Install dependencies with pnpm Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Installs project dependencies using pnpm 10.x as pinned in package.json. ```bash pnpm install ``` -------------------------------- ### Verify launch demos, guides, share cards, and redirects Source: https://github.com/alexburlis/glassyui/blob/main/README.md Runs the launch smoke test in Chrome to verify demo copying, guides, share cards, and retired template redirects. ```bash pnpm smoke:launch http://127.0.0.1:3100 .artifacts/prelaunch/launch ``` -------------------------------- ### Start Metro for Expo fixture Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Starts the Metro bundler from the Expo consumer fixture to serve the app for web checks. ```bash npx expo start ``` -------------------------------- ### Install Glassy UI packages with npm Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Install the required packages for a React component using npm. The packages are listed in the component's metadata. ```bash npm install expo-blur expo-glass-effect ``` -------------------------------- ### Install glass-button and glass-switch with npx shadcn Source: https://github.com/alexburlis/glassyui/blob/main/content/blog/liquid-glass-android.mdx Run this command to add the glass-button and glass-switch components from the Expo registry. It also installs their dependencies (glass-surface and glass-provider) and runs `npx expo install --fix` to align expo-blur and expo-glass-effect with your SDK. Expo Go already includes both packages; if you use a development build, rebuild it. ```shell npx shadcn@4.14.1 add https://glassyui.com/r/native/glass-button.json https://glassyui.com/r/native/glass-switch.json && npx expo install --fix ``` -------------------------------- ### Serve built app on loopback Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Start the Next.js production server on loopback address 127.0.0.1 port 3100 for verification. ```bash pnpm exec next start -H 127.0.0.1 -p 3100 ``` -------------------------------- ### Install glass-button and glass-panel with shadcn CLI Source: https://github.com/alexburlis/glassyui/blob/main/content/blog/liquid-glass-react-native-expo.mdx Run this command to add the glass-button and glass-panel components to your Expo app. It also runs `npx expo install --fix` to match the native packages (`expo-glass-effect` and `expo-blur`) to your SDK. Both components depend on `glass-surface`, which brings `glass-backdrop.tsx`, `lib/material.ts`, the provider, and the two native packages. Files land in `components/glassyui` or `src/components/glassyui` if your app uses `src`. ```sh npx shadcn@4.14.1 add https://glassyui.com/r/native/glass-button.json https://glassyui.com/r/native/glass-panel.json && npx expo install --fix ``` -------------------------------- ### Start dev server and run interaction smoke Source: https://github.com/alexburlis/glassyui/blob/main/docs/launch-readiness.md Run these commands to start a loopback development server on port 3101 and execute the interaction smoke script against the diagnostics route. The diagnostics route is development-only. ```bash pnpm exec next dev -H 127.0.0.1 -p 3101 pnpm exec node scripts/smoke-liquid-interactions.mjs http://127.0.0.1:3101/diagnostics ``` -------------------------------- ### Manual Native Package Installation Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Manual native packages use `npx expo install PACKAGES` so Expo selects versions for the consumer SDK. ```bash npx expo install PACKAGES ``` -------------------------------- ### React Native install command formula Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md Template for installing a React Native component: {runner} shadcn@4.14.1 add https://glassyui.com/r/native/{item}.json && npx expo install --fix. The --fix flag runs after the add command because the pinned CLI installs Expo packages after --, and && ensures it runs only after a successful add. ```bash {runner} shadcn@4.14.1 add https://glassyui.com/r/native/{item}.json && npx expo install --fix ``` -------------------------------- ### Post-change smoke and check commands Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Run these commands against the changed build to verify the full installation flow, UI behavior, accessibility, and consumer integration. Use each script's inspected CLI syntax if it changes before execution. ```bash pnpm smoke:registry-routes http://127.0.0.1:3100 ``` ```bash pnpm smoke:registry-install http://127.0.0.1:3100 ``` ```bash pnpm smoke:expo-consumer http://127.0.0.1:3100 .artifacts/component-installation/consumer ``` ```bash GLASSYUI_BASE_URL=http://127.0.0.1:3100 pnpm smoke:docs-routes ``` ```bash pnpm check:agent-discovery http://127.0.0.1:3100 ``` ```bash pnpm smoke:release-ui http://127.0.0.1:3100 .artifacts/component-installation/release-ui ``` ```bash pnpm check:keynote http://127.0.0.1:3100 .artifacts/component-installation/keynote ``` ```bash pnpm check:site-motion http://127.0.0.1:3100 .artifacts/component-installation/site-motion ``` -------------------------------- ### Glass Button install commands for React and Native across package managers Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md All install commands for the Glass Button component, covering React and React Native across npm, pnpm, yarn, and bun. The native commands append '&& npx expo install --fix'. ```bash npx shadcn@4.14.1 add https://glassyui.com/r/glass-button.json ``` ```bash pnpm dlx shadcn@4.14.1 add https://glassyui.com/r/glass-button.json ``` ```bash yarn dlx shadcn@4.14.1 add https://glassyui.com/r/glass-button.json ``` ```bash bunx --bun shadcn@4.14.1 add https://glassyui.com/r/glass-button.json ``` ```bash npx shadcn@4.14.1 add https://glassyui.com/r/native/glass-button.json && npx expo install --fix ``` ```bash pnpm dlx shadcn@4.14.1 add https://glassyui.com/r/native/glass-button.json && npx expo install --fix ``` ```bash yarn dlx shadcn@4.14.1 add https://glassyui.com/r/native/glass-button.json && npx expo install --fix ``` ```bash bunx --bun shadcn@4.14.1 add https://glassyui.com/r/native/glass-button.json && npx expo install --fix ``` -------------------------------- ### Package Manager Installation Commands Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Table of component invocation and manual web dependency commands for npm, pnpm, yarn, and bun. Component invocations use shadcn@4.14.1 with ITEM_URLS, while manual web dependencies use the respective package manager's install command with PACKAGES. ```bash npx shadcn@4.14.1 add ITEM_URLS ``` ```bash npm install PACKAGES ``` ```bash pnpm dlx shadcn@4.14.1 add ITEM_URLS ``` ```bash pnpm add PACKAGES ``` ```bash yarn dlx shadcn@4.14.1 add ITEM_URLS ``` ```bash yarn add PACKAGES ``` ```bash bunx --bun shadcn@4.14.1 add ITEM_URLS ``` ```bash bun add PACKAGES ``` -------------------------------- ### React Native packages install command formula Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.md Template for installing React Native packages: npx expo install {packages}. This is the same in every tab and runs the app's own Expo CLI, which resolves each package to the version its SDK expects. ```bash npx expo install {packages} ``` -------------------------------- ### Install Playwright browsers (chrome, chromium, firefox, webkit) Source: https://github.com/alexburlis/glassyui/blob/main/docs/launch-readiness.md Installs real Chrome plus Playwright Chromium, Firefox, and WebKit browsers. Required before running the browser/served gate checks. ```bash pnpm exec playwright install chrome chromium firefox webkit ``` -------------------------------- ### Render link previews with pnpm and node Source: https://github.com/alexburlis/glassyui/blob/main/link-previews/README.md Install dependencies with --ignore-workspace to keep this folder's pinned Playwright separate from the site's, then render the home and mobile cuts. Requires Google Chrome, FFmpeg, FFprobe, vmaf, and Python with NumPy and Pillow. Each run writes .mp4, .jpg, a contact sheet, and .qa.json to out/, and fails on any missed check. ```sh pnpm install --ignore-workspace CUT=home node render.mjs CUT=mobile node render.mjs ``` -------------------------------- ### Run Expo consumer smoke test Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Installs all native items, type-checks source and usage, and bundles iOS, Android, and web to establish compile/install compatibility. ```bash pnpm smoke:expo-consumer [artifact-directory] ``` -------------------------------- ### Build install registry payloads Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Rebuilds the registry payloads for native components after editing source or registry files. Run from the project root. ```bash node scripts/build-install-registry.mjs registry-native.json --output public/r/native ``` -------------------------------- ### Baseline platform switch check command Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Run this command on an implementation turn against the unchanged baseline to capture the before-state. Expect the baseline to expose the arbitrary hero command, lack CLI/Manual and manager controls, and fail the unconfigured URL install on its namespaced provider. ```bash node scripts/check-platform-switch.mjs http://127.0.0.1:3100 .artifacts/component-installation/before ``` -------------------------------- ### Install Glassy UI component with shadcn CLI (React Native) Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Use the shadcn CLI to add a component to your React Native project, then run 'npx expo install --fix' to ensure compatible versions. Replace 'item' with the actual component ID. ```bash npx shadcn@4.14.1 add https://glassyui.com/r/native/item.json && npx expo install --fix ``` -------------------------------- ### Check shadcn drop-in sets Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Runs the same proof for the drop-in sets on the same six apps, installing each app's set with --overwrite, holding every CLI to the set's files, type-checking a file that uses every stock export, building a Server Component route, running every theme assertion, and checking the drop-ins keep stock attributes and run the measured lens in Chrome. Default artifact directory: .artifacts/shadcn-dropins. ```bash pnpm check:shadcn-dropins [artifact-directory] [--fixture ] ``` -------------------------------- ### Install glassy-theme with npx shadcn Source: https://github.com/alexburlis/glassyui/blob/main/README.md Use this command to add the glassy-theme registry item, which restyles stock shadcn/ui components as glass using CSS only. Requires npx shadcn@4.14.1. ```bash npx shadcn@4.14.1 add https://glassyui.com/r/glassy-theme.json ``` -------------------------------- ### Example usage of GlassButton component Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html A React component example showing how to use GlassButton with a 'prominent' variant and a disabled state. It uses useState to toggle between 'Save' and 'Undo' actions. ```tsx import { useState } from 'react'; import { View } from 'react-native'; import { GlassButton } from '@/components/glassyui/glass-button'; export default function ButtonExample() { const [saved, setSaved] = useState(false); return ( setSaved(true)}> {saved ? 'Saved' : 'Save'} setSaved(false)}> Undo ); } ``` -------------------------------- ### Install Glassy UI component with shadcn CLI (React) Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Use the shadcn CLI to add a component to your React project. Replace 'item' with the actual component ID. The command is run with your package manager's runner (npx, pnpm dlx, yarn dlx, bunx --bun). ```bash npx shadcn@4.14.1 add https://glassyui.com/r/item.json ``` -------------------------------- ### Install glassy-theme with shadcn CLI Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-installation.md Adds the glassy-theme registry item to a stock shadcn/ui app. The CLI writes --glassy-* tokens into :root and .dark, easing curves into @theme inline, and rules into a single @layer components { @layer glassy { ... } } block. It never deletes rules, so upgrading requires deleting that block and tokens before reinstalling. ```bash pnpm dlx shadcn@4.14.1 add https://glassyui.com/r/glassy-theme.json ``` -------------------------------- ### Run smoke and check commands against local server Source: https://github.com/alexburlis/glassyui/blob/main/docs/launch-readiness.md Executes the full set of smoke and check commands against the locally served production build. Run in a second terminal after starting the server. ```bash pnpm smoke:registry-routes http://127.0.0.1:3100 pnpm smoke:registry-install http://127.0.0.1:3100 node scripts/smoke-launch.mjs http://127.0.0.1:3100 .artifacts/prelaunch/launch GLASSYUI_BASE_URL=http://127.0.0.1:3100 pnpm smoke:docs-routes pnpm check:agent-discovery http://127.0.0.1:3100 .artifacts/agent-discovery pnpm smoke:release-ui http://127.0.0.1:3100 .artifacts/release-ui pnpm check:refraction-visuals http://127.0.0.1:3100 .artifacts/refraction-visuals pnpm check:glass-material http://127.0.0.1:3100 .artifacts/glass-material node scripts/smoke-pro-links.mjs http://127.0.0.1:3100 .artifacts/pro-links pnpm check:analytics-consent http://127.0.0.1:3100 .artifacts/analytics-consent ``` -------------------------------- ### GlassButton usage example Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Shows how to import and use the GlassButton component in a React application. The component is imported from '@/components/glassyui/glass-button' and rendered with children text. ```tsx import { GlassButton } from "@/components/glassyui/glass-button"; export function ButtonDemo() { return Save changes; } ``` -------------------------------- ### Install glassy-ui-new-york drop-in components Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-installation.md Adds the glassy-ui-new-york registry item, which overwrites sixteen shadcn/ui component files with Glassy UI versions. The --overwrite flag replaces the app's copies, so commit first. The item declares radix-ui, which the CLI adds for apps using individual Radix packages. ```bash pnpm dlx shadcn@4.14.1 add https://glassyui.com/r/glassy-ui-new-york.json --overwrite ``` -------------------------------- ### Native CLI Recipe Append Step Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Native CLI recipes append the visible `&& npx expo install --fix` step regardless of the runner used for shadcn. ```bash && npx expo install --fix ``` -------------------------------- ### Install Glassy UI React Native components Source: https://github.com/alexburlis/glassyui/blob/main/README.md Run this command to add the glass-button component from the @glassyui-native registry and fix dependencies with Expo. Requires Expo SDK 55 or later for shared components; SDK 57 for Picker, Swipe Row, and Card Stack. ```bash npx shadcn@4.14.1 add https://glassyui.com/r/native/glass-button.json && npx expo install --fix ``` -------------------------------- ### Install Expo component with shadcn CLI Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-installation.md Adds the glass-button component and fixes native dependencies. The CLI passes packages after '--', skipping SDK version matching, so '--fix' aligns them. ```bash npx shadcn@4.14.1 add @glassyui-native/glass-button npx expo install --fix ``` -------------------------------- ### HTML usage of the .frost card Source: https://github.com/alexburlis/glassyui/blob/main/content/blog/liquid-glass-css-react.mdx A minimal HTML example showing how to apply the .frost class to a div containing a paragraph. The card will frost the content behind it. ```html

Settings

``` -------------------------------- ### Blog post frontmatter example Source: https://github.com/alexburlis/glassyui/blob/main/docs/blog-authoring.md Frontmatter for a new blog post. Requires a lowercase, hyphenated slug and includes fields like title, description, excerpt, publishedAt, status, tags, heroImage, and heroImageAlt. The status can be 'draft' or 'published'. ```mdx --- title: 'A clear answer to a developer question' description: 'The decision this article helps the reader make.' excerpt: 'A short introduction for the article index.' publishedAt: '2026-10-19T09:00:00+02:00' status: draft tags: - React heroImage: '/share/blog/.jpg' heroImageAlt: 'Describe the actual product capture.' --- Give the direct answer first. Use normal Markdown, fenced code and useful links. The page supplies the H1, so start body sections at H2. ``` -------------------------------- ### Use GlassButton component in React Source: https://github.com/alexburlis/glassyui/blob/main/README.md Example of importing and using the GlassButton component. Set data-lg-theme attributes on the root element to control theming. ```tsx import { GlassButton } from '@/components/glassyui/glass-button'; export function SaveButton() { return Save changes; } ``` -------------------------------- ### Capture share cards with capture-share-cards.mjs Source: https://github.com/alexburlis/glassyui/blob/main/public/share/README.md Captures share cards from a running dev server. Use --missing to capture only missing cards, no flag to capture all, or pass a specific card path. Requires pnpm dev running. The build fails if a new component or guide lacks a card, and the error names the command. ```shell node scripts/capture-share-cards.mjs http://127.0.0.1:3000 --missing ``` ```shell node scripts/capture-share-cards.mjs http://127.0.0.1:3000 ``` ```shell node scripts/capture-share-cards.mjs http://127.0.0.1:3000 components/glass-button.jpg ``` -------------------------------- ### Complete screen with GlassProvider, GlassBackdrop, GlassButton, and GlassPanel Source: https://github.com/alexburlis/glassyui/blob/main/content/blog/liquid-glass-react-native-expo.mdx Save this as `app/index.tsx` in an Expo Router app with `@/` mapped to the project root. It renders a wallpaper image behind a glass panel and button, and shows the active material (liquid or blur) on the 'Material' line. The `GlassBackdrop` wraps the wallpaper so Android has a view to blur; iOS and web blur whatever lies behind. The `require`d image keeps its own pixel size unless sized, so the backdrop image gets full width and height. `RunCard` sits inside `GlassProvider` so `useGlassTheme` returns the provider's colors. Remove the 'Material' line before shipping. ```tsx import { useState } from 'react'; import { Image, Text } from 'react-native'; import { GlassBackdrop } from '@/components/glassyui/glass-backdrop'; import { GlassButton } from '@/components/glassyui/glass-button'; import { GlassPanel } from '@/components/glassyui/glass-panel'; import { GlassProvider, useGlassTheme, } from '@/components/glassyui/glass-provider'; import { resolveGlassMaterial } from '@/components/glassyui/lib/material'; const wallpaper = require('@/assets/wallpaper.jpg'); function RunCard() { const { colors, preferences } = useGlassTheme(); const [running, setRunning] = useState(false); const material = resolveGlassMaterial(preferences.reduceTransparency); return ( Morning run Material: {material} setRunning(!running)}> {running ? 'Pause' : 'Start'} ); } export default function Home() { return ( } style={{ flex: 1, justifyContent: 'center', padding: 24 }} > ); } ``` -------------------------------- ### Run analytics consent check for both apps Source: https://github.com/alexburlis/glassyui/blob/main/docs/analytics-consent.md Starts standalone servers for both applications on different loopback ports and runs the check. The browser sees HTTPS production origins while each origin is forwarded to its actual app. The owner intercepts telemetry and checkout navigation; it makes no provider or payment write. The paired proof covers shared acceptance, refusal, withdrawal and checkout-link events. ```shell pnpm check:analytics-consent http://127.0.0.1:3100 /absolute/paired-evidence http://127.0.0.1:3102 ``` -------------------------------- ### Verify the Expo catalogue Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Checks that every import inside an item's install closure, declared packages, and public/r/native match a fresh build. Rebuild the Expo payloads with the provided node script. ```bash pnpm check:native-registry ``` ```bash node scripts/build-install-registry.mjs registry-native.json --output public/r/native ``` -------------------------------- ### Build and serve the production site Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Builds the production bundle and serves it. Use before shipping demos. ```bash pnpm build ``` ```bash pnpm start ``` -------------------------------- ### Check refraction visuals across browsers Source: https://github.com/alexburlis/glassyui/blob/main/README.md Captures deterministic active/plain refraction evidence, enforces edge-focused distortion in Chromium, Firefox, and WebKit, reads every frame of a Chromium scroll to prove the GlassSurface docs' fixed-wallpaper example never trails its wallpaper, and proves the home page's WebGL pane bends the wallpaper pinned behind it in all three engines. ```bash pnpm check:refraction-visuals http://127.0.0.1:3100 ``` -------------------------------- ### Initialize shadcn with npx shadcn@4.14.1 init Source: https://github.com/alexburlis/glassyui/blob/main/README.md Run this command to set up shadcn if your app lacks a components.json file. Required before adding Glassy UI components. ```bash npx shadcn@4.14.1 init ``` -------------------------------- ### Check platform switch between React and React Native Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Proves in Chromium that a component page's React and React Native switch swaps the install and usage and keeps the choice on the next page. Saves screenshots, a hashed result manifest and a Playwright trace (default: .artifacts/platform-switch). ```bash pnpm check:platform-switch http://127.0.0.1:3000 [artifact-directory] ``` -------------------------------- ### Exercise public demos across release viewport Source: https://github.com/alexburlis/glassyui/blob/main/README.md Runs every public demo across the release viewport and preference matrix against a local server. ```bash pnpm smoke:release-ui http://127.0.0.1:3100 ``` -------------------------------- ### Capture launch preview screenshots Source: https://github.com/alexburlis/glassyui/blob/main/README.md Refreshes the three launch screenshots by running the capture script against a local server. ```bash node scripts/capture-launch-previews.mjs http://127.0.0.1:3000 ``` -------------------------------- ### Initialize shadcn with pnpm dlx shadcn@4.14.1 init Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-installation.md Run this command in a React 19+ and Tailwind CSS 4 consumer that does not already have a components.json file. It initializes shadcn and creates the components.json configuration. ```bash pnpm dlx shadcn@4.14.1 init ``` -------------------------------- ### Check keynote opener Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Proves in Chromium, WebKit and Firefox that the opener plays on its own and through stray input, steps aside for Escape, lands the hero in place, and that the turn turns the live desk into the phone, whose visible screen takes clicks during the turn; both stand still under reduced motion. Leaves the opener's key frames and a video of the whole keynote. ```bash pnpm check:keynote http://127.0.0.1:3000 [artifact-directory] ``` -------------------------------- ### Run platform switch check Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Checks platform switching behavior against a running production build. ```bash pnpm check:platform-switch ``` -------------------------------- ### Run lint and format commands Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Run oxlint with fix on changed source files, then format changed files with oxfmt, followed by lint, oxlint with deny-warnings, format check, dead-code check, and build. ```bash pnpm exec oxlint --fix CHANGED_SOURCE_FILES ``` ```bash pnpm exec oxfmt CHANGED_FILES ``` ```bash pnpm lint ``` ```bash pnpm exec oxlint --deny-warnings --format=agent ``` ```bash pnpm format:check CHANGED_FILES ``` ```bash pnpm check:dead-code ``` ```bash pnpm build ``` -------------------------------- ### Run registry build and checks Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Run the registry build and all registry-related checks to validate the generated registry and native registry. ```bash pnpm registry:build ``` ```bash pnpm registry:check-generated ``` ```bash pnpm check:registry ``` ```bash pnpm check:native-registry ``` -------------------------------- ### Run full local gate before proposing changes Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Run these commands in order to execute the complete local validation suite, including formatting, registry checks, security tests, linting, and build. This is required before proposing changes. ```bash pnpm install --frozen-lockfile pnpm format:check pnpm registry:check-generated pnpm check:registry pnpm check:dead-code pnpm test:braces-security pnpm test:analytics-consent pnpm test:error-reports pnpm test:error-startup pnpm test:build-upload pnpm lint pnpm build ``` -------------------------------- ### Check keynote live edits Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Focuses on live edits, projected bubble dragging, screen identity and reversal at desktop and mobile widths in all three engines, plus reduced motion. ```bash pnpm check:keynote http://127.0.0.1:3000 [artifact-directory] turn-live ``` -------------------------------- ### Add component with shadcn CLI Source: https://github.com/alexburlis/glassyui/blob/main/docs/launch-readiness.md Run the local site at http://127.0.0.1:3100 and use this command to add the glass-button component. It requires the pinned shadcn@4.14.1 and the local registry URL. ```bash npx shadcn@4.14.1 add http://127.0.0.1:3100/r/glass-button.json ``` -------------------------------- ### Verify header across sizes, themes, and browsers Source: https://github.com/alexburlis/glassyui/blob/main/README.md Runs a Node script to verify the header across sizes, themes, and browsers, capturing screenshots to the specified output directory. ```bash node scripts/smoke-header.mjs http://127.0.0.1:3100 .artifacts/header ``` -------------------------------- ### Check Expo web build Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Checks the phone-sized gallery, glass and overlays, theme change, Reduce Transparency, and browser errors. Saves screenshots and a hashed manifest. ```bash node scripts/check-expo-web.mjs http://127.0.0.1:8081 [artifact-directory] ``` -------------------------------- ### Smoke test docs routes Source: https://github.com/alexburlis/glassyui/blob/main/README.md Checks the landing, component index, and component docs routes against a running local server. ```bash pnpm smoke:docs-routes ``` -------------------------------- ### Benchmark diagnostics route Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Benchmarks an explicit loopback development diagnostics route. ```bash pnpm benchmark http://127.0.0.1:3000/diagnostics ``` -------------------------------- ### Run blog smoke test Source: https://github.com/alexburlis/glassyui/blob/main/docs/blog-authoring.md Command to run the blog smoke test against a local server. Requires the server URL and an absolute path to an evidence directory. ```sh pnpm smoke:blog http://127.0.0.1:3000 /absolute/evidence-directory ``` -------------------------------- ### Formatting commands with oxfmt Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Run these commands to format changed files and check formatting. The repository formatter wraps Markdown prose at 80 columns and normalizes tables, lists, and code blocks. ```bash pnpm exec oxfmt pnpm format:check ``` -------------------------------- ### Check glass material behavior Source: https://github.com/alexburlis/glassyui/blob/main/README.md Proves every frosted component blurs a striped backdrop in Chromium, the lens activates, WebKit and Firefox keep the CSS frost, floating text keeps 4.5:1 contrast, and Reduce Transparency beats a consumer tint. ```bash pnpm check:glass-material http://127.0.0.1:3100 ``` -------------------------------- ### Run frame-check.mjs to print element positions Source: https://github.com/alexburlis/glassyui/blob/main/link-previews/README.md Prints where the pill, the dock or the phone, and the type land on screen for the current CUT, before anything renders. ```sh node frame-check.mjs 0,1,2 ``` -------------------------------- ### Rebuild the glassy-theme and registry payloads Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Rebuilds the glassy-theme item and the two drop-in sets from their sources, then the registry payloads. The node script fails when registry.json is stale; pnpm check:registry runs the same comparison. ```bash pnpm theme:build ``` ```bash node scripts/build-shadcn-theme.mjs --check ``` ```bash pnpm check:registry ``` -------------------------------- ### Run registry checks Source: https://github.com/alexburlis/glassyui/blob/main/docs/local-library-boundary.md Commands to run after changing a shared component contract to verify the registry and native registry integrity. ```bash pnpm check:registry pnpm registry:check-generated pnpm check:native-registry ``` -------------------------------- ### Map @glassyui namespace to loopback server for testing unpublished registry changes Source: https://github.com/alexburlis/glassyui/blob/main/README.md Temporarily map the namespace to the loopback server while keeping the repository running. This JSON configuration is used to test unpublished registry changes. ```json { "registries": { "@glassyui": "http://127.0.0.1:3000/r/{name}.json" } } ``` -------------------------------- ### Add Glassy UI component via registry URL Source: https://github.com/alexburlis/glassyui/blob/main/README.md Use this command to add a component directly from the Glassy UI registry. The CLI copies the component, its shared imports, and package dependencies into your app; there is no runtime package. ```bash npx shadcn@4.14.1 add https://glassyui.com/r/glass-button.json ``` -------------------------------- ### Check GlassScene rendering and behavior Source: https://github.com/alexburlis/glassyui/blob/main/README.md Proves in Chromium, WebKit, and Firefox that GlassScene draws glass that lines up with the DOM, bends the backdrop at the rim, merges nearby glass, ignores where the pointer is, steps aside for accessibility settings and a missing or lost WebGL2 context, and that the controls' liquid motion stretches and settles. ```bash pnpm check:glass-scene http://127.0.0.1:3100 ``` -------------------------------- ### Add a registry item via shadcn CLI Source: https://github.com/alexburlis/glassyui/blob/main/README.md After mapping the namespace, add an item through that namespace using pnpm dlx shadcn@4.14.1. ```bash pnpm dlx shadcn@4.14.1 add @glassyui/glass-button ``` -------------------------------- ### Configure registry namespace in components.json Source: https://github.com/alexburlis/glassyui/blob/main/README.md Map the @glassyui namespace to the Glassy UI registry URL in components.json. This allows adding components by name, e.g., npx shadcn@4.14.1 add @glassyui/glass-button. ```json { "registries": { "@glassyui": "https://glassyui.com/r/{name}.json" } } ``` -------------------------------- ### Capture share cards for pages Source: https://github.com/alexburlis/glassyui/blob/main/README.md Photographs every page's link-preview card into public/share; optionally specify specific cards. The home and React Native loops are rendered by link-previews/ (see public/share/README.md). ```bash node scripts/capture-share-cards.mjs http://127.0.0.1:3000 [card ...] ``` -------------------------------- ### Preview mode for render.mjs Source: https://github.com/alexburlis/glassyui/blob/main/link-previews/README.md Development mode that enables a preview of the render. ```sh --preview ``` -------------------------------- ### Capture missing share cards Source: https://github.com/alexburlis/glassyui/blob/main/docs/blog-authoring.md Command to capture missing share cards for blog posts. Run against a local development server and use the --missing flag to only capture cards that are missing. ```sh node scripts/capture-share-cards.mjs http://127.0.0.1:3000 --missing ``` -------------------------------- ### Run agent discovery HTTP check Source: https://github.com/alexburlis/glassyui/blob/main/docs/agent-discovery.md Run the repeatable HTTP check against a running free server. The result records requests, negotiated types, headers, statuses, checks, and body hashes in result.json. It follows advertised free resources, tests Accept quality values, preserves RSC/JSON/HEAD/404 responses, and rejects paths that could leave the page-conversion boundary. ```sh pnpm check:agent-discovery http://127.0.0.1:3000 /absolute/evidence/directory ``` -------------------------------- ### Redraw README art assets Source: https://github.com/alexburlis/glassyui/blob/main/README.md Redraws the README's lockup, desk, and phones in .github/readme, in light and dark themes. ```bash node scripts/build-readme-art.mjs http://127.0.0.1:3000 ``` -------------------------------- ### Lint the codebase Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Runs Oxlint anti-slop rules and ESLint with Next.js Core Web Vitals rules. Required before submitting a pull request. ```bash pnpm lint ``` -------------------------------- ### Check formatting of changed files Source: https://github.com/alexburlis/glassyui/blob/main/AGENTS.md Verifies that the specified changed files are formatted according to the pinned local Oxfmt. ```bash pnpm format:check ``` -------------------------------- ### CSS frost effect with backdrop-filter and reduced transparency fallback Source: https://github.com/alexburlis/glassyui/blob/main/content/blog/liquid-glass-css-react.mdx Defines a .frost class that blurs and saturates the backdrop, adds a tinted background, and a lit top edge. Includes a media query for prefers-reduced-transparency that replaces the glass with a solid surface. ```css .frost { border: 1px solid rgb(255 255 255 / 0.28); border-radius: 20px; background: rgb(255 255 255 / 0.14); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 12px 32px rgb(0 0 0 / 0.18); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); } @media (prefers-reduced-transparency: reduce) { .frost { background: #1c1c1e; color: #f5f5f7; -webkit-backdrop-filter: none; backdrop-filter: none; } } ``` -------------------------------- ### Capture Share Cards Command Source: https://github.com/alexburlis/glassyui/blob/main/docs/plans/2026-10-15-component-installation-execplan.md Command to refresh only the docs share card on a development server. The studio is development-only; do not run against production-build server. ```bash node scripts/capture-share-cards.mjs http://127.0.0.1:3000 docs.jpg ``` -------------------------------- ### GlassButton Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Forward-ref native button with owned glass interaction state. Use it to render a button with glass material effects. ```APIDOC ## GlassButton ### Description Forward-ref native button with owned glass interaction state. ### Props #### variant - **Type**: `ButtonVariant` - **Description**: Visual intent: primary (clear glass, the default), prominent (blue glass for the main action: it tints whatever lies behind it and keeps white text at 4.5:1), soft, or ghost. #### asChild - **Type**: `boolean` - **Description**: Renders the single child element, such as a link, with the button material. Links cannot be disabled. #### size - **Type**: `ButtonSize` - **Description**: Control size: sm, md, or lg. #### preset - **Type**: `string` - **Description**: Material preset applied to the button surface. #### lens - **Type**: `boolean` - **Description**: Chromium lens: the rim bends and splits the page behind it. On by default for every variant except ghost. ### Types #### ButtonVariant - **Description**: Exported primary, prominent, soft, or ghost visual-intent type. #### ButtonSize - **Description**: Exported sm, md, or lg size type. ``` -------------------------------- ### components.json registries configuration for Expo Source: https://github.com/alexburlis/glassyui/blob/main/docs/registry-installation.md Map the @glassyui-native namespace to the hosted registry URL. This is required for the shadcn CLI to resolve component names. ```json { "registries": { "@glassyui-native": "https://glassyui.com/r/native/{name}.json" } } ``` -------------------------------- ### Glass thickness constants Source: https://github.com/alexburlis/glassyui/blob/main/docs/design/component-installation.html Defines the GLASS_THICKNESS constant with min, max, and regular values, and a THICKNESS_PROPERTY string for the CSS custom property. ```tsx export const GLASS_THICKNESS = { min: 0.25, max: 2, regular: 1 } as const; const THICKNESS_PROPERTY = '--lg-glass-thickness'; ``` -------------------------------- ### Trigger release workflow with gh Source: https://github.com/alexburlis/glassyui/blob/main/CONTRIBUTING.md Run this command to manually trigger the CI release workflow on a specific release branch. This is part of the release proof process. ```bash gh workflow run ci.yml --ref ```