ux-css-layout

Applies VS Code CSS conventions for layouts, sizing tokens, and text truncation.

Updated Aug 30, 2026
One-click install
npx skills add https://github.com/Tyrizx/Tyrizx --skill ux-css-layout-tyrizx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ux-css-layout
Source: https://github.com/Tyrizx/Tyrizx/tree/main/.github/skills/ux-css-layout
Command: npx skills add https://github.com/Tyrizx/Tyrizx --skill ux-css-layout-tyrizx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing CSS in the VS Code codebase requires following strict conventions for file organization, class naming, layout systems, and text truncation, and violating them causes visual bugs like clipped text, broken flex layouts, and stylelint failures. ## Core Features & Use Cases - CSS Conventions & Naming: Enforces co-located CSS files, monaco- prefixed class naming, standard sizes, and bans new !important declarations. - Programmatic Layout Guidance: Covers SplitView, Grid, and scrollable element APIs plus the constraint-based responsive layout model used instead of media queries. - Text Overflow & Design Tokens: Provides the required ellipsis pattern with flex min-width: 0 fixes, hover tooltips for truncated text, and the --vscode-* size token scales for spacing, radius, font, codicon, and stroke values. - Use Case: When building a new view pane with a header label and action buttons, use this Skill to structure the flex row so the label truncates with ellipsis, icons stay fixed, and spacing uses on-scale design tokens. ## Quick Start Use the ux-css-layout skill to write the CSS for my new workbench view pane so the title truncates correctly and spacing follows the design tokens.

Frequently Asked Questions about ux-css-layout

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

FAQPage Schema
How do I make text truncate with ellipsis in CSS flexbox?

Text truncation in flexbox requires overflow: hidden, white-space: nowrap, and text-overflow: ellipsis on the label, plus min-width: 0 on the flex child. Without min-width: 0, the flex item refuses to shrink below its content width and the ellipsis never triggers.

How does VS Code handle responsive layout without media queries?

VS Code uses a programmatic constraint-based layout system instead of CSS media queries. Views declare minimumSize and maximumSize, and SplitView or Grid distribute space using LayoutPriority, snap behavior, and ResizeObserver for container-aware sizing.

What CSS class naming conventions does VS Code use?

VS Code prefixes major component classes with monaco-, such as .monaco-workbench and .monaco-split-view2, with modifier and state classes like .vertical, .focused, and .active. Feature-specific classes use kebab-case without a prefix, and CSS files are co-located with their TypeScript components.

Can I use !important in VS Code CSS?

New !important declarations are not allowed in VS Code CSS. Resolve cascade conflicts by increasing selector specificity with component or state-class prefixes instead. The only exception is outline: 0 !important for shared focus-indicator suppression.

Why does stylelint fail when I add a new CSS variable in VS Code?

Every --vscode-* size variable must be registered in build/lib/stylelint/vscode-known-variables.json under the sizes array, alphabetically sorted. Adding a new token requires updating both baseSizes.ts and that JSON file, otherwise stylelint and hygiene checks fail.

When should I use SplitView versus Grid in VS Code?

Use SplitView for one-dimensional layouts with draggable sashes in a single orientation, such as sidebar panels. Use Grid for two-dimensional layouts like editor groups, where views are added relative to a reference view in a given direction.