gpui-layout

Manage GPUI element layout and Tailwind-inspired declarative styling.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/onehr/gpui-skills --skill gpui-layout
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gpui-layout
Source: https://github.com/onehr/gpui-skills/tree/main/skills/gpui-layout
Command: npx skills add https://github.com/onehr/gpui-skills --skill gpui-layout

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the process of defining the visual appearance and spatial arrangement of UI elements within the GPUI framework, making it easier to build complex and aesthetically pleasing interfaces.

Core Features & Use Cases

  • Declarative Styling: Apply styles using a Tailwind-like API with methods like .bg(), .flex(), .p(), and .rounded().
  • Layout Management: Utilize flexbox and grid properties for precise control over element positioning and distribution.
  • Use Case: When you need to create a centered card with a specific background color, padding, and rounded corners, this skill provides the direct methods to achieve it.

Quick Start

Use the gpui-layout skill to create a div with a blue background, padding of 4 units, and rounded corners.

Frequently Asked Questions about gpui-layout

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

FAQPage Schema
How do I style GPUI elements using a Tailwind-like API?

You can style GPUI elements using a declarative, Tailwind-inspired API with methods like .bg(), .flex(), .p(), and .rounded() to define visual appearance and spatial arrangement. This simplifies building complex interfaces within the GPUI framework.

What's the best way to manage flexbox and grid layouts in GPUI?

Managing flexbox and grid layouts in GPUI is best handled through a declarative styling Skill that utilizes flexbox and grid properties for precise control over element positioning and distribution. This approach simplifies complex layout management.

Can I apply conditional styling to GPUI components?

Yes, you can apply conditional styling to GPUI components. This Skill covers use cases for defining element dimensions, spacing, alignment, colors, typography, borders, shadows, and conditional styling through its declarative API.

Does GPUI support Tailwind CSS classes for UI construction?

GPUI does not use standard Tailwind CSS classes, but you can use a Tailwind-inspired API to apply styles. This requires adherence to GPUI's styling traits and builder patterns for UI construction rather than standard CSS utility classes.

How do I create a centered card with padding and rounded corners in GPUI?

To create a centered card in GPUI, use the declarative styling API to apply methods like .flex() for centering, .bg() for background color, .p() for padding, and .rounded() for corners. This provides direct methods to achieve the desired layout.