Design & Frontend ✓ Microsoft · Official csslayoutresponsive-layouttext-overflowsplitviewdesign-tokens

VS Code CSS Layout Standards

Build reliable VS Code-style CSS layouts and text truncation behavior

FollowSkills review · FSRS-2.0
Not recommended
54/ 100 5-point scale 2.7 / 5
Trust20 / 25 · 4.0/5

The skill provides CSS, TypeScript layout, and naming guidance only; it requests no network access, credentials, sensitive data, or destructive actions. It explicitly discourages new !important usage and promotes narrow selector ownership. Deducted 5 points because it does not specify user confirmation, rollback, dependency security, or data-flow handling; attribution is supplied mainly by repository metadata rather than versioned provenance in the skill itself.

Reliability7 / 20 · 1.8/5

The document is internally organized and includes examples for SplitView, Grid, scrolling, responsive constraints, and text truncation, along with preventative rules. Deducted 13 points because the supplied files contain no skill-specific key-path tests, execution results, or abnormal-input feedback; some claims are broad, such as VS Code not using CSS media queries, and cannot be verified from this skill alone.

Adaptability10 / 15 · 3.3/5

The description clearly targets CSS authoring, layout construction, and text-truncation fixes, with concrete applicable components and anti-patterns. Deducted 5 points because non-fit cases, trigger priority, input/output boundaries, and compatibility ranges are not defined; Chinese localization and mainland-China network fit are not addressed.

Convention8 / 15 · 2.7/5

The skill has good information architecture, tables, examples, key-file references, limitation-like rules, and design-token guidance. The README, LICENSE, and package.json provide MIT licensing, Microsoft attribution, and evidence of an actively updated repository. Deducted 7 points because the skill itself lacks versioning, changelog, explicit maintenance ownership, update path, installation notes, and FAQs; its canonical instruction dependency is not included in the supplied evidence.

Effectiveness6 / 15 · 2.0/5

The guidance is concrete enough to support VS Code CSS layout work, with directly reusable patterns such as min-width: 0, ellipsis, SplitView, and design-token usage. Deducted 9 points because no representative outputs, actual fixes, or comparative-benefit evidence are provided; several rules still require source-level developer judgment and review.

Verifiability3 / 10 · 1.5/5

The skill names auditable SplitView, Grid, scrollbar, global-style, and design-token paths, while the repository includes general CI and test material. Deducted 7 points because those workflows and tests do not demonstrate the skill's key paths, and there are no skill-specific tests, pinpoint citations, corroboration, or explicit separation of static fact from inference; static calibration caps this dimension at 5.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e
Before you use it
  • This assessment is based only on the supplied static files; no examples, builds, lint checks, or tests were executed.
  • Before use, verify the referenced source files, design-token registry, and actual CSS conventions at the target revision; absolute rules may change across versions.
  • The skill does not document boundaries for Chinese localization, RTL, narrow windows, or different VS Code build environments.
See the full review method →

What it does & when to use it

This skill provides CSS and layout guidance for development in the VS Code source tree, covering file organization, class naming, standard dimensions, selector quality, and design-system size tokens. It explains SplitView, Grid, scrollable elements, and constraint-based responsive layout instead of CSS media queries. It also standardizes ellipsis handling, Flex item shrinking, and hover access to truncated text. It fits work on VS Code workbench and base UI styles, but it is guidance rather than a standalone build or test tool.

It guides developers to inspect and edit CSS files colocated with TypeScript components, use monaco- prefixes for major components, and apply state and kebab-case feature classes. It provides selection and usage examples for SplitView, Grid, SmoothScrollableElement, DomScrollableElement, and ScrollableElement, including view size constraints, layout priorities, snapping, and onDidChange. It requires truncated text to use overflow: hidden, white-space: nowrap, and text-overflow: ellipsis together, sets min-width: 0 on shrinking Flex children, and recommends IHoverService.setupDelayedHover() for full text in custom DOM. It also directs developers toward registered --vscode-* spacing, radius, font, Codicon, and stroke tokens and identifies relevant source files.

  1. A VS Code contributor is editing a workbench panel, title, or view and needs to colocate its CSS correctly.
  2. A developer is building a horizontal or vertical split interface with draggable sashes and needs to configure SplitView.
  3. A developer is implementing a two-dimensional editor-group layout and needs Grid.
  4. A developer is fixing clipped labels in lists, trees, tabs, status-bar items, notifications, or other bounded UI.
  5. A developer is building a narrow, responsive panel and needs minimumSize, maximumSize, LayoutPriority, and snap behavior.
  6. A developer is adjusting VS Code spacing, corner radii, fonts, icons, or borders and wants to follow the size-token system.

Pros & cons

Pros
  • Covers the workflow from CSS organization, naming, and selector quality through SplitView, Grid, scrolling, constraint-based layout, and text overflow.
  • States precise requirements for the ellipsis property combination, Flex child `min-width: 0`, and hover access to full text.
  • Provides decision rules for VS Code spacing, corner-radius, font, Codicon, and stroke tokens.
  • Names key source files and includes TypeScript API examples for locating the relevant implementations.
Limitations
  • Its scope is VS Code CSS and layout conventions, not general frontend frameworks, browser compatibility, or product design guidance.
  • The supplied material includes no standalone installation command, build workflow, test suite, or automation script.
  • Several rules depend on VS Code's directory structure, APIs, and registered design tokens, so other projects would require adaptation.
  • The skill does not perform edits or tests by itself; it supplies instructions, examples, and constraints.

How to install

The skill is located at .github/skills/ux-css-layout/SKILL.md in the microsoft/vscode repository. The supplied material does not document a standalone installation or copying command; the README only describes the overall Code - OSS repository and its MIT license. In an Agent Skills-compatible client, provide the repository content using that client's skill-installation procedure. The exact procedure is not specified in the source.

How to use

In a client that supports the included Agent Skill, give it a concrete VS Code CSS or layout task, for example: "Apply the ux-css-layout guidance to fix a label that will not ellipsize inside this Flex row, and add a hover for the full text." When working in the VS Code source tree, consult the paths identified by the skill, including src/vs/base/browser/ui/splitview/splitview.ts, src/vs/base/browser/ui/grid/grid.ts, src/vs/base/browser/ui/scrollbar/scrollableElement.ts, and src/vs/workbench/browser/media/style.css. The source does not document a standalone CLI, build command, or automated validation workflow for this skill.

FAQ

Does this skill require additional runtime dependencies?
The source shows no requirement for Node.js, Python, Docker, network services, or MCP. It references local VS Code source files and style tokens, so the client needs access to the relevant repository content.
Does it recommend CSS media queries for responsive behavior?
No. The skill explicitly says that VS Code does not use CSS media queries for this purpose. Its recommended approach uses SplitView, Grid, size constraints, layout priorities, and ResizeObserver-based container sizing.
When should I adopt it?
Adopt it when modifying VS Code source CSS, building interfaces around SplitView or Grid, or fixing truncation, Flex shrinking, and design-token issues. If your project is not VS Code or does not use its layout APIs, expect to adapt the guidance.

More skills from this repository

All from microsoft/vscode

Dev & Engineering ✓ Microsoft · Official

Tool Rename Compatibility Check

Protect existing prompts and tool configurations when built-in tools are renamed.

Dev & Engineering ✓ Microsoft · Official

Copilot Chat OpenTelemetry Instrumentation

A repository-specific guide for consistent OpenTelemetry instrumentation in Copilot Chat.

Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

Design & Frontend ✓ Microsoft · Official

VS Code Design Philosophy

Turn vague UI discomfort into concrete fixes using shared values, principles, and design moves.

Dev & Engineering ✓ Microsoft · Official

Agent Host E2E Test Assistant

Maintain VS Code Agent Host end-to-end tests with strict replay fixtures.

Dev & Engineering ✓ Microsoft · Official

VS Code Integrated Browser Architecture

A practical architecture guide for safely changing VS Code's cross-process integrated browser.

Dev & Engineering ✓ Microsoft · Official

VS Code Agents Window Sessions

Safely implement and repair VS Code Agents window features.

Dev & Engineering ✓ Microsoft · Official

Commit Assistant

Creates repository-style commit messages and safely commits code changes.

Dev & Engineering ✓ Microsoft · Official

Agent Host Log Investigator

Trace session, transport, and host failures in Agent Host debug exports.

Dev & Engineering ✓ Microsoft · Official

VS Code Unit Test Runner

Run VS Code repository unit tests by file, test name, or compiled-output glob.

Dev & Engineering ✓ Microsoft · Official

VS Code Agent Customization Assistant

Create, repair, and troubleshoot VS Code Agent customization files and their loading behavior.

Dev & Engineering ✓ Microsoft · Official

Code OSS Launch & Debug

Launch a built-from-source VS Code with isolated profiles, Playwright control, and multi-process debugging ports.

Dev & Engineering ✓ Microsoft · Official

VS Code Accessibility Development Guide

A practical specification for accessible interactive features in VS Code.

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Performance Lab

Benchmark chat rendering and detect memory growth across VS Code builds.

Dev & Engineering ✓ Microsoft · Official

Component Fixtures for Screenshot Testing

Create stable, theme-aware VS Code component fixtures for isolated screenshot testing.

Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Assistant

Run, filter, and debug VS Code end-to-end smoke tests.

Dev & Engineering ✓ Microsoft · Official

VS Code Crash Dump Symbolicator

Turn native VS Code crash dumps into readable backtraces with method names.

Dev & Engineering ✓ Microsoft · Official

Local VS Code Web Workbench

Validate VS Code workbench and Agents window changes in a local vscode.dev instance.

Dev & Engineering ✓ Microsoft · Official

Feedback Action

Reads current-session feedback and applies the requested code changes.

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Customizations Editor Skill

Guides developers through safe changes and testing for VS Code’s chat customization management UI.

Related skills