uno-toolkit-shadowcontainer

Add layered and inset shadows to Uno Platform UI controls.

9|1|Updated Dec 10, 2024
One-click install
npx skills add https://github.com/unoplatform/studio --skill uno-toolkit-shadowcontainer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uno-toolkit-shadowcontainer
Source: https://github.com/unoplatform/studio/tree/main/plugins/uno-platform-studio/skills/uno-toolkit-shadowcontainer
Command: npx skills add https://github.com/unoplatform/studio --skill uno-toolkit-shadowcontainer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When a single shadow cannot achieve the desired depth, developers need multiple layered and inset shadows to create precise elevation and visual hierarchy.

Core Features & Use Cases

  • Supports multiple layered shadows using ShadowContainer to compose complex depth.
  • Supports both drop shadows and inner (inset) shadows for versatile styling.
  • Each Shadow exposes OffsetX, OffsetY, BlurRadius, SpreadRadius, Color, and Opacity to fine-tune the effect.

Quick Start

Add a ShadowContainer with multiple Shadow entries to your XAML layout and configure each Shadow’s offset, blur, spread, color, and opacity.

Frequently Asked Questions about uno-toolkit-shadowcontainer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add layered shadows to Uno Platform UI controls in XAML?

Add layered shadows to Uno Platform UI controls by wrapping them in a ShadowContainer and defining multiple Shadow entries with distinct offset, blur, spread, color, and opacity properties to compose complex depth.

Can I create inset shadows on Uno Platform controls for WebAssembly and mobile targets?

Yes, you can create inset shadows on Uno Platform controls across Windows, WebAssembly, and mobile by setting the IsInner property on a Shadow definition within your ShadowContainer.

What properties are available to fine-tune drop shadows in an Uno Toolkit ShadowContainer?

Each drop shadow in a ShadowContainer exposes OffsetX, OffsetY, BlurRadius, SpreadRadius, Color, and Opacity properties, allowing precise visual hierarchy and elevation tuning for UI controls.

When do I need multiple layered shadows instead of a single drop shadow in XAML?

You need multiple layered shadows when a single drop shadow cannot achieve the desired depth, allowing you to create precise elevation and visual hierarchy using the ShadowContainer with several Shadow definitions.

Does the Uno Toolkit shadow container require additional dependencies or components?

No additional dependencies are required; it uses the built-in namespace xmlns:utu='using:Uno.Toolkit.UI' to apply layered and inset shadows across Windows, WebAssembly, and mobile targets.

Why are my layered shadows not rendering correctly on Uno Platform mobile targets?

Ensure your ShadowContainer correctly defines each Shadow entry with valid OffsetX, OffsetY, BlurRadius, SpreadRadius, Color, and Opacity values, and that the xmlns:utu namespace is properly referenced for mobile rendering.