Toolverse
All skills

gpui-layout-and-style

by longbridge

Layout and styling in GPUI. Use when styling components, layout systems, or CSS-like properties.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Testing
Views
3

About this skill

Layout and styling in GPUI. Use when styling components, layout systems, or CSS-like properties.

How to use

  1. Zainstaluj skill w swoim projekcie GPUI, dodając go do konfiguracji Claude lub MCP servera — skill będzie dostępny jako referencja podczas pisania kodu stylizacyjnego.

  2. Importuj moduł GPUI w pliku Rusta: use gpui::*; — to daje dostęp do wszystkich funkcji stylizacyjnych i layoutu.

  3. Stwórz element bazowy (np. div()) i zacznij łańcuchować metody stylizacyjne: .w(px(200.)) dla szerokości, .bg(rgb(0x2196F3)) dla koloru tła, .p(px(16.)) dla paddingu.

  4. Dla layoutu flexbox użyj .flex() i .flex_row() (lub .flex_col() dla kolumn), następnie wyrównaj elementy za pomocą .items_center() i .justify_between().

  5. Definiuj rozmiary elastycznie: .w(px(200.)) dla pikseli, .h(rems(10.)) dla jednostek względnych, .w(relative(0.5)) dla procentu szerokości rodzica.

  6. Łącz metody w logiczne bloki — na przykład dla karty: .w(px(300.)).bg(...).rounded(px(8.)).shadow_md().p(px(16.)).flex().flex_col() — i dodaj dzieci za pomocą .child() lub .children().

Related skills

test-cases

by cexll

This skill should be used when generating comprehensive test cases from PRD documents or user requirements. Triggers when users request test case generation, QA planning, test scenario creation, or need structured test documentation. Produces detailed test cases covering

Testing
2862

creating-financial-models

by anthropics

This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions

Testing
25137

vitest

by antfu

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

Testing
1236

code-review-excellence

by wshobson

Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.

Testing
1145

dependency-upgrade

by wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

Testing
17138

textual

by KyleKing

Expert guidance for building TUI (Text User Interface) applications with the Textual framework. Invoke when user asks about Textual development, TUI apps, widgets, screens, CSS styling, reactive programming, or testing Textual applications.

Testing
69192