add-tauri-native-window-effects
Skill0 starsChanged 4 months agoMITView on GitHub
Add and debug native window materials in Tauri 2 desktop apps on macOS and Windows. Use when implementing macOS vibrancy or Liquid Glass, Windows Mica or Acrylic, a translucent sidebar or titlebar, transparent WebView content, platform-specific opaque fallbacks, or diagnosing a native effect hidden behind gray, white, black, Canvas, or other opaque frontend backgrounds.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-councilSkill
- claude-cliSkill
- deep-code-reviewSkill
- design-ui-excellenceSkill
- godot-engineering-suiteSkill
- godot-ui-design-excellenceSkill
- grok-cliSkill
- handoffSkill
- react-codebase-excellenceSkill
- rust-codebase-excellenceSkill
- typescript-codebase-excellenceSkill
- webdesign-excellenceSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read the shared rendering stack before editing any target.
- Distinctive: line 22
Use their snippets as baselines, then adapt crate and framework APIs to the versions already installed in the target repository.
- Distinctive: line 34
Check repository rules before launching a GUI.
- Very specific: line 46
Keep the normal application background until the native effect reports success.
- Very specific: line 50
Use isTauri() only to distinguish a Tauri WebView from a normal browser.
- Distinctive: line 75
Keep ordinary content panes explicitly opaque.
- Distinctive: line 76
Keep permanent transparency overrides outside Tailwind cascade layers.
- Very specific: line 78
Do not substitute CSS backdrop-filter for a native window material.
- Distinctive: line 84
Run frontend tests, type checking, linting, and a production build.
- Distinctive: line 85
Run Rust formatting, tests, and clippy for the Tauri crate.
- Distinctive: line 90
Remove diagnostic styles, commands, timers, and logging before finishing.
- Distinctive: line 92
After two failed hypotheses, return to the native activation result and computed backgrounds instead of adding more blur, opacity, or …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add Tauri Native Window Effects
Implement a native operating-system material behind a transparent Tauri WebView. Treat the result as one rendering stack: the native effect, transparent window, transparent WebView ancestors, and intentionally opaque content panes must all agree.
Read the relevant references
Read the shared rendering stack before editing any target. Then read only the platform reference that applies:
- macOS effects for AppKit vibrancy or Liquid Glass.
- Windows effects for Mica or Acrylic.
Use their snippets as baselines, then adapt crate and framework APIs to the versions already installed in the target repository.
Establish the constraints
- Inspect the Tauri, WebView, frontend, Tailwind, and native-effect versions, plus the minimum supported operating-system versions.
- Identify which surfaces should reveal native material and which must remain opaque. Prefer a transparent shell with explicit opaque content panes.
- Choose the platform material deliberately. Do not present macOS vibrancy, Liquid Glass, Windows Mica, and Acrylic as interchangeable visual systems.
- Preserve unsupported platforms with an opaque, readable fallback.
- Check repository rules before launching a GUI. Ask before opening or activating the app unless the user already authorized it.
Choose one native effect owner
The supported recipe uses runtime window-vibrancy ownership and its
activation result. Never stack it with static windowEffects on the same
window. Follow the shared reference's migration steps for an existing static
owner; static configuration alone cannot satisfy the activation gate.
Gate transparency on real activation
Keep the normal application background until the native effect reports
success. Let the native layer return the activated effect name or no effect;
set a data-native-window-effect marker only for a real effect.
Use isTauri() only to distinguish a Tauri WebView from a normal browser. It
does not identify macOS or Windows and must not authorize transparency by
itself. On errors or unsupported platforms, leave the marker absent and keep
the interface opaque.
Route each platform
- On macOS, prefer semantic AppKit vibrancy such as Sidebar for the classic path. Treat macOS 26 Liquid Glass as a separate, version-gated path.
- On Windows 11, prefer Mica for a persistent application or navigation backdrop. Use Acrylic only when genuine see-through frosted glass is wanted and its power and resizing costs are acceptable. Do not silently fall back from Mica to Acrylic.
- On Linux, keep an opaque fallback. Native desktop blur is compositor-owned and is outside the portable Tauri baseline. Investigate a compositor-specific implementation only when the user explicitly requests that target.
Implement the complete stack
- Configure target-specific dependencies and window settings.
- Apply the selected effect to the real Tauri WebView window.
- Return an activation result that distinguishes success from unsupported or failed activation.
- Make
html,body, the root node, and every shell ancestor above the material region transparent only after success. - Keep ordinary content panes explicitly opaque.
- Keep permanent transparency overrides outside Tailwind cascade layers.
Do not substitute CSS backdrop-filter for a native window material. It only
filters content inside the WebView and cannot reveal the desktop behind the
native window.
Validate the result
- Run frontend tests, type checking, linting, and a production build.
- Run Rust formatting, tests, and clippy for the Tauri crate.
- Compile every supported platform path in CI when available.
- Inspect light, dark, high-contrast, and disabled-transparency fallbacks.
- Confirm opaque content, scrolling, titlebar drag regions, and controls still work.
- Remove diagnostic styles, commands, timers, and logging before finishing.
After two failed hypotheses, return to the native activation result and computed backgrounds instead of adding more blur, opacity, or fallback layers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

