expo-liquid-glass

devanshudesai/agent-skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/devanshudesai/agent-skills --skill expo-liquid-glass
0 commentsdiscussion
summary

Ship Liquid Glass UI that feels native, stays legible, and degrades safely across iOS/Android.

skill.md

Expo Liquid Glass

Ship Liquid Glass UI that feels native, stays legible, and degrades safely across iOS/Android.

Execution Order

  1. Confirm platform/runtime constraints.
  2. Check design alignment against HIG buckets (recommended for design-heavy tasks).
  3. Pick one primary implementation path (add a second path only if needed).
  4. Apply Apple-aligned visual rules before writing code.
  5. Implement guarded glass components with explicit fallbacks.
  6. Run accessibility and visual QA in both light/dark and clear/tinted appearances.

1) Preflight Constraints

  • Use Liquid Glass only for controls/navigation chrome, not primary content surfaces.
  • Treat these APIs as fast-moving: check current Expo SDK docs before finalizing syntax.
  • Expect a development build for advanced iOS-native features: expo-glass-effect and @expo/ui are not reliable in Expo Go on iOS.
  • Keep scope on Liquid Glass in Expo: use HIG rules to guide implementation, not to redesign unrelated product behavior.

2) Design Alignment (Recommended for design-heavy tasks)

For tasks that involve significant visual design decisions, evaluate against these HIG buckets:

  1. Foundations Check materials, color, layout, motion, and accessibility implications.
  2. Patterns Check navigation/search/flow behavior for consistency with system expectations.
  3. Components Check bars, buttons, menus, fields, sidebars, and overlays used by the screen.
  4. Inputs Check touch, gesture, keyboard, and pointer behavior for parity and discoverability.

See references/apple-liquid-glass-design.md for practical design guidance. If a proposed style conflicts with HIG intent, prefer the HIG-consistent option.

3) Choose the Primary Path

Path Use It For Tradeoffs
expo-glass-effect Most RN screens that need glass chips, floating buttons, toolbars, grouped controls Best default in Expo; must guard runtime availability
@expo/ui (Host + SwiftUI modifiers) Native SwiftUI composition, advanced glass transitions, coordinated IDs/namespaces iOS-family only, dev-build workflow, SwiftUI mental model
expo-router/unstable-native-tabs System-native Liquid Glass tab bars and iOS 26 nav behavior Unstable API; syntax differs between SDK 54 and 55
@callstack/liquid-glass Non-Expo RN or teams standardizing on Callstack package iOS/tvOS focus; also requires fallbacks and runtime checks

Combine paths when appropriate:

  • Use native tabs for navigation chrome.
  • Use expo-glass-effect for floating controls inside screens.
  • Use @expo/ui only where SwiftUI-specific behavior is required.

4) Apple-Style Design Rules (Critical)

Apply these rules before implementing visuals:

  1. Keep hierarchy in layout and spacing, not decorative layers.
  2. Group related controls into shared glass clusters; separate unrelated groups with space.
  3. Let content run edge-to-edge behind controls so glass has something to refract.
  4. Use system controls/material first; customize minimally.
  5. Move strong brand color into content/background, not navigation bars.
  6. Keep icons/labels high contrast in light, dark, clear, and tinted modes.
  7. Avoid full-screen glass sheets; reserve glass for top-level interaction surfaces.

5) Implementation Patterns

Pattern A: Guarded Adaptive Glass Wrapper

import { Platform, View } from 'react-native';
import { BlurView } from 'expo-blur';
import { GlassView, isGlassEffectAPIAvailable } from 'expo-glass-effect';

export function AdaptiveGlass({ style, children }) {
  if (isGlassEffectAPIAvailable()) {
    return (
      <GlassView style={style} glassEffectStyle="regular" tintColor="#FFFFFF10">
        {children}
      </GlassView>
    );
  }

  if (Platform.OS === 'ios') {
    return (
      <BlurView style={style} intensity={40} tint="dark">
        {children}
      </BlurView>
    );
  }

  return <View style={[style, { backgroundColor: 'rgba(60,60,67,0.30)' }]}>{children}</View>;
}

Pattern B: Safe expo-glass-effect Usage

  • Prefer glassEffectStyle: 'regular' | 'clear' | 'identity' as needed.
  • Never set opacity < 1 on GlassView or parents.
  • Treat isInteractive as mount-time only. Remount using a key if it must change.
  • Avoid scrollable content inside GlassView.
  • Check availability with isGlassEffectAPIAvailable() before rendering.

Pattern C: Native Tabs (SDK-Specific Syntax)

SDK 55+ compound API:

<NativeTabs.Trigger name="index">
  <NativeTabs.Trigger.TabBarIcon
    ios={{ default: 'house', selected: 'house.fill' }}
    androidIconName="home"
  />
  <NativeTabs.Trigger.TabBarLabel>Home</NativeTabs.Trigger.TabBarLabel>
</NativeTabs.Trigger>

SDK 54 API:

<NativeTabs.Trigger name="index">
  <NativeTabs.Trigger.Icon sf="house.fill" md="home" />
  <NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>
</NativeTabs.Trigger>

Known issue: transparent NativeTabs can flash white while pushing screens in some stacks. Mitigate by setting a background color via ThemeProvider (see native-tabs reference).

Pattern D: SwiftUI Glass with Namespace IDs

Use @expo/ui when coordinated glass transitions are needed:

import { Host, Namespace, Text } from '@expo/ui/swift-ui';
import { glassEffect, glassEffectID, padding } from '@expo/ui/swift-ui/modifiers';

const ns = new Namespace('glass');

<Host style={{ width: 220, height: 56 }}>
  <Text
    modifiers={[
      padding({ all: 16 }),
      glassEffect({ glass: { variant: 'regular' } }),
      glassEffectID({ id: 'primary-chip', in: ns }),
    ]}
  >
    Explore
  </Text>
</Host>;

6) Accessibility and Quality Gates

Treat this as required before completion:

  • Check AccessibilityInfo.isReduceTransparencyEnabled() and provide non-glass fallback.
  • Verify legibility over bright, dark, and high-saturation backgrounds.
  • Validate both clear and tinted system appearances on iOS 26.
  • Keep hit targets and spacing stable during interactive animations.
  • Measure scroll performance with and without glass on low-end test devices.

7) Common Failure Modes and Fixes

  • Double blur in headers: Native header blur + custom glass child causes muddy layering. Use a plain translucent View in header accessories.
  • Flat-looking glass: Solid backgrounds remove refraction cues. Add tonal variation, gradients, or imagery behind the surface.
  • Over-customized controls: Heavy tint/border/shadow stacks reduce native feel. Start from system defaults, then tune lightly.
  • Missing runtime guards: Rendering glass APIs unguarded can crash or silently degrade on unsupported builds.
  • Version drift: Native-tabs and SwiftUI wrappers evolve quickly; check SDK-specific docs before coding.

8) Reference Loading Strategy

Load only what is needed for the task:

    how to use expo-liquid-glass

    How to use expo-liquid-glass on Cursor

    AI-first code editor with Composer

    1

    Prerequisites

    Before installing skills in Cursor, ensure your development environment meets these requirements:

    • Cursor installed and configured on your development machine
    • Node.js version 16.0+ with npm package manager (verify with node --version)
    • Active project directory or workspace where you want to add expo-liquid-glass
    2

    Execute installation command

    Execute the skills CLI command in your project's root directory to begin installation:

    $npx skills add https://github.com/devanshudesai/agent-skills --skill expo-liquid-glass

    The skills CLI fetches expo-liquid-glass from GitHub repository devanshudesai/agent-skills and configures it for Cursor.

    3

    Select Cursor when prompted

    The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

    ◆ Which agents do you want to install to?
    │ ── Universal (.agents/skills) ── always included ────
    │ • Amp
    │ • Antigravity
    │ • Cline
    │ • Codex
    │ ●Cursor(selected)
    │ • Cursor
    │ • Windsurf
    4

    Verify installation

    Confirm successful installation by checking the skill directory location:

    .cursor/skills/expo-liquid-glass

    Reload or restart Cursor to activate expo-liquid-glass. Access the skill through slash commands (e.g., /expo-liquid-glass) or your agent's skill management interface.

    Security & Verification Notice

    We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

    Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

    List & Monetize Your Skill

    Submit your Claude Code skill and start earning

    GET_STARTED →

    Use Cases

    Task Automation & Efficiency

    Automate repetitive workflows and reduce manual effort

    Example

    Generate reports, summarize documents, draft communications

    Save 3-5 hours per week on routine tasks

    Knowledge Enhancement

    Learn new skills, understand complex topics, get expert guidance

    Example

    Explain concepts, provide examples, suggest learning resources

    Accelerate learning and skill development by 2x

    Quality Improvement

    Enhance output quality through reviews, suggestions, and refinements

    Example

    Review drafts, suggest improvements, catch errors

    Improve work quality by 30-40% with less effort

    Implementation Guide

    Prerequisites

    • Claude Desktop or compatible AI client with skill support
    • Clear understanding of task or problem to solve
    • Willingness to iterate and refine outputs

    Time Estimate

    15-45 minutes depending on use case complexity

    Installation Steps

    1. 1.Install skill using provided installation command
    2. 2.Test with simple use case relevant to your work
    3. 3.Evaluate output quality and relevance
    4. 4.Iterate on prompts to improve results
    5. 5.Integrate into regular workflow if valuable

    Common Pitfalls

    • Expecting perfect results without iteration
    • Not providing enough context in prompts
    • Using skill for tasks outside its intended scope
    • Accepting outputs without review and validation

    Best Practices

    ✓ Do

    • +Start with clear, specific prompts
    • +Provide relevant context and constraints
    • +Review and refine all outputs before using
    • +Iterate to improve output quality
    • +Document successful prompt patterns

    ✗ Don't

    • Don't use without understanding skill limitations
    • Don't skip validation of outputs
    • Don't share sensitive information in prompts
    • Don't expect skill to replace human judgment

    💡 Pro Tips

    • Be specific about desired format and style
    • Ask for multiple options to choose from
    • Request explanations to understand reasoning
    • Combine AI efficiency with human expertise

    When to Use This

    ✓ Use When

    Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

    ✗ Avoid When

    Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

    Learning Path

    1. 1Familiarize yourself with skill capabilities and limitations
    2. 2Start with low-risk, non-critical tasks
    3. 3Progress to more complex and valuable use cases
    4. 4Build expertise through regular use and experimentation

    Discussion

    Product Hunt–style comments (not star reviews)
    • No comments yet — start the thread.
    general reviews

    Ratings

    4.574 reviews
    • Maya Torres· Dec 28, 2024

      expo-liquid-glass has been reliable in day-to-day use. Documentation quality is above average for community skills.

    • Ganesh Mohane· Dec 20, 2024

      I recommend expo-liquid-glass for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

    • Maya Verma· Dec 16, 2024

      Useful defaults in expo-liquid-glass — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

    • Benjamin Martin· Dec 12, 2024

      expo-liquid-glass is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

    • Xiao Sanchez· Dec 12, 2024

      Solid pick for teams standardizing on skills: expo-liquid-glass is focused, and the summary matches what you get after install.

    • Maya Menon· Dec 12, 2024

      We added expo-liquid-glass from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

    • Sophia Bansal· Dec 8, 2024

      expo-liquid-glass reduced setup friction for our internal harness; good balance of opinion and flexibility.

    • Ira Brown· Nov 27, 2024

      expo-liquid-glass has been reliable in day-to-day use. Documentation quality is above average for community skills.

    • Maya Mehta· Nov 19, 2024

      expo-liquid-glass reduced setup friction for our internal harness; good balance of opinion and flexibility.

    • Sakshi Patil· Nov 11, 2024

      Solid pick for teams standardizing on skills: expo-liquid-glass is focused, and the summary matches what you get after install.

    showing 1-10 of 74

    1 / 8