ux-css-layout

Solid

VS Code CSS conventions, file organization, class naming, standard sizes, SplitView/Grid layout, scrollable content, responsive layout, and text overflow/ellipsis patterns. Use when writing CSS, building layouts, or fixing text truncation issues.

Web & Frontend 8 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

This skill covers CSS file organization, naming, standard sizes, programmatic layout (SplitView, Grid, scrollable), responsive patterns, and text overflow handling. --- ## 1. File Organization CSS files are **co-located** with their TypeScript components: ``` src/vs/base/browser/ui/button/ button.ts button.css src/vs/workbench/contrib/myFeature/browser/ myFeature.ts media/ myFeature.css ``` Import CSS directly in the TS file: ```typescript import './media/myFeature.css'; // or for base widgets: import './button.css'; ``` Workbench-level global styles live in `src/vs/workbench/browser/media/`. ## 2. Class Naming - **`monaco-` prefix** for all major components: `.monaco-workbench`, `.monaco-split-view2`, `.monaco-scrollable-element` - **Modifier classes**: `.monaco-split-view2.vertical`, `.monaco-split-view2.horizontal` - **State classes**: `.visible`, `.focused`, `.active`, `.highlight` - Feature-specific classes use kebab-case without prefix: `.my-feature`, `.outline-pane`, `.welcome-view-content` ## 3. Standard Sizes | Element | Size | |---------|------| | Part title height | 35px | | Title padding (horizontal) | 8px | | Title label inner padding | 12px | | Action area padding | 5px | | Action icon size | 16px | | Body font-size | 13px (workbench), 11px (HTML body) | | Line height | 1.4em | | Validation message font-size | 12px (line-height: 17px) | > For `padding`/`margin`/`gap`, `border-radius`, `font-size`/`font-weight`, > codicon size a...

Details

Author
chapmanjw
Repository
chapmanjw/clawdius
Created
1 months ago
Last Updated
today
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category