ux-css-layout

Fix VS Code CSS layout and truncation issues with co-located styling and ellipsis-safe flex behavior.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/THRISHAL12345/Project_X --skill ux-css-layout
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ux-css-layout
Source: https://github.com/THRISHAL12345/Project_X/tree/main/apps/vscode-fork/.github/skills/ux-css-layout
Command: npx skills add https://github.com/THRISHAL12345/Project_X --skill ux-css-layout

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write VS Code-compatible CSS that behaves correctly in real workbench layouts, preventing broken spacing, overflowing text, and brittle styling patterns.

Core Features & Use Cases

  • File organization: Keep CSS co-located with TypeScript components and import styles in the component entrypoint.
  • Layout systems: Apply SplitView and Grid patterns for draggable, constraint-based responsive UI instead of media queries.
  • Text overflow handling: Fix truncation issues with the required ellipsis pattern and the critical min-width: 0 flex behavior.
  • Design-system consistency: Use standard sizes, tokens, icon sizing, corner radii, and stroke thickness aligned with VS Code conventions.
  • Use case: A workbench sidebar title is clipping when the panel shrinks; use this Skill to structure the CSS, preserve layout behavior, and make the label truncate with a hoverable full-text fallback.

Quick Start

Use the ux-css-layout skill to review my VS Code CSS and fix any layout, sizing, or text truncation issues according to workbench conventions.

Frequently Asked Questions about ux-css-layout

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

FAQPage Schema
Why does text overflow break my VS Code flex layout instead of truncating with an ellipsis?▼

Text overflows because flex items default to min-width: auto. Fixing VS Code CSS truncation requires adding min-width: 0 to the flex child, enabling the ellipsis pattern to truncate text cleanly while preserving the overall workbench layout.

How do I fix a VS Code sidebar title that clips when the panel shrinks?▼

To fix a clipping sidebar title, apply CSS constraints using min-width: 0 for flex behavior and the ellipsis pattern for text overflow. This preserves the panel layout and provides a hoverable full-text fallback for usability.

Should I use media queries for responsive VS Code split pane layouts?▼

No, avoid media queries for VS Code split pane layouts. Use SplitView and Grid patterns instead to create draggable, constraint-based responsive UI surfaces that align with workbench conventions and scale correctly within the editor.

How do I keep CSS styling consistent with VS Code design tokens?▼

Keep CSS consistent by using standard sizes, design tokens, icon sizing, corner radii, and stroke thickness defined by VS Code conventions. Co-locate stylesheets with TypeScript components and import them in the entrypoint to maintain organization.

Does VS Code CSS layout require class-based selectors for workbench components?▼

Yes, VS Code CSS layout requires class-based selectors to ensure hover-safe overflow handling and visual consistency. Class-based selectors prevent styling conflicts and maintain predictable behavior across scrollable regions and split views.

What is the best way to handle overflow in scrollable VS Code grid regions?▼

The best way to handle overflow in scrollable VS Code grid regions is applying constraint-based Grid patterns with min-width constraints and ellipsis-safe flex behavior. This preserves usability and prevents broken spacing when the viewport shrinks.