native-compact-ui

Implement UI components with logical CSS properties and direct DOM manipulation.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill native-compact-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: native-compact-ui
Source: https://github.com/ApothecaryMan/pharmaflow-ai/tree/main/.agent/skills/native-compact-ui
Command: npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill native-compact-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill offers a set of principles for building high-performance, right-to-left stable, and declarative UI components that enhance user interface development processes.

Core Features & Use Cases

  • RTL Support: Ensures UI components are stable across different language directions.
  • Performance: Utilizes logical CSS properties and direct DOM optimization to enhance performance.
  • Code Efficiency: Reduces file size by inlining presentational logic and avoiding boilerplate code.
  • Declarative States: Bridges JavaScript logic and CSS rendering for more efficient UI management.
  • Use Case: Use this Skill to build a set of UI components for a cross-platform application that requires efficient performance and language flexibility.

Quick Start

Start using the native-compact-ui Skill to develop your UI components by following the outlined principles and patterns.

Frequently Asked Questions about native-compact-ui

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

FAQPage Schema
How do I build UI components that support right-to-left languages without duplicating CSS?

To build right-to-left compatible UI components, you use logical CSS properties and CSS variables. This approach automatically adapts layouts for different language directions without writing separate stylesheets.

What are logical CSS properties and how do they optimize UI performance?

Logical CSS properties map to physical dimensions dynamically based on text direction, allowing a single stylesheet to handle both LTR and RTL layouts. This reduces file size and avoids boilerplate code, optimizing UI performance.

How do I manage declarative UI states using direct DOM manipulation?

Managing declarative UI states with direct DOM manipulation involves bridging JavaScript logic and CSS rendering. You manipulate CSS variables directly via scripts to update visual states efficiently, bypassing heavy framework reconciliation.

Can I use this native compact UI approach for cross-platform applications requiring language flexibility?

Yes, this approach is designed for cross-platform applications requiring efficient performance and language flexibility. It ensures UI components remain stable across different language directions while maintaining high rendering efficiency.

What is the best way to reduce file size when developing high-performance UI components?

The best way to reduce file size is by inlining presentational logic and avoiding boilerplate code. Utilizing logical CSS properties and direct DOM optimization minimizes external dependencies and redundant stylesheets.

Why does my UI component layout break when switching to a right-to-left language direction?

Layouts break in right-to-left language directions when using physical CSS properties instead of logical ones. Implementing logical CSS properties and CSS variables ensures UI components remain stable and adapt automatically across directions.