{"id":20062905,"url":"https://github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting","last_synced_at":"2025-05-05T17:31:47.128Z","repository":{"id":223197435,"uuid":"758647749","full_name":"jacobcassidy/vscode-css-nesting-syntax-highlighting","owner":"jacobcassidy","description":"A Visual Studio Code extension that adds syntax highlighting in the editor for CSS nesting.","archived":false,"fork":false,"pushed_at":"2025-04-02T00:25:56.000Z","size":581,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T05:57:28.723Z","etag":null,"topics":["css","css-nesting","nested-css","syntax-highlighting","visual-studio-code"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacobcassidy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-16T19:08:16.000Z","updated_at":"2025-04-28T06:38:19.000Z","dependencies_parsed_at":"2024-08-25T06:31:31.792Z","dependency_job_id":"83f0dca0-c0f1-4a80-b659-9ef83439408a","html_url":"https://github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting","commit_stats":null,"previous_names":["jacobcassidy/vscode-css-nesting-syntax-highlighting"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobcassidy%2Fvscode-css-nesting-syntax-highlighting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobcassidy%2Fvscode-css-nesting-syntax-highlighting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobcassidy%2Fvscode-css-nesting-syntax-highlighting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobcassidy%2Fvscode-css-nesting-syntax-highlighting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacobcassidy","download_url":"https://codeload.github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252542252,"owners_count":21764934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","css-nesting","nested-css","syntax-highlighting","visual-studio-code"],"created_at":"2024-11-13T13:39:27.067Z","updated_at":"2025-05-05T17:31:47.118Z","avatar_url":"https://github.com/jacobcassidy.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS Nesting Syntax Highlighting\n\n[![vs marketplace](https://img.shields.io/vscode-marketplace/v/jacobcassidy.css-nesting-syntax-highlighting.svg?label=vs%20marketplace)](https://marketplace.visualstudio.com/items?itemName=jacobcassidy.css-nesting-syntax-highlighting) [![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/jacobcassidy.css-nesting-syntax-highlighting)](https://marketplace.visualstudio.com/items?itemName=jacobcassidy.css-nesting-syntax-highlighting) [![Visual Studio Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/jacobcassidy.css-nesting-syntax-highlighting)](https://marketplace.visualstudio.com/items?itemName=jacobcassidy.css-nesting-syntax-highlighting\u0026ssr=false#review-details) [![GitHub commit activity](https://img.shields.io/github/commit-activity/t/jacobcassidy/vscode-css-nesting-syntax-highlighting)](https://github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting/commits/main/)\n\n| Table of Contents                           |\n| ------------------------------------------- |\n| [Overview](#overview)                       |\n| [CSS Nesting Example](#css-nesting-example) |\n| [Other Features](#other-features)           |\n| [Installation](#installation)               |\n| [Companion Theme](#companion-theme)         |\n| [What's New](#whats-new)                    |\n| [Known Issues](#known-issues)               |\n| [Reporting Issues](#issues)                 |\n\n## Overview\n\nAll modern browsers support CSS nesting ([Can I Use](https://caniuse.com/css-nesting)), but Visual Studio Code doesn't currently have CSS nesting syntax highlighting. This extension rectifies that by updating the CSS syntax highlighting to include nesting ([and more](#other-features)).\n\nTo learn more about CSS Nesting, see [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting).\n\nThe core CSS syntax file this extension updates can be found in the [official vscode repo](https://github.com/Microsoft/vscode/blob/main/extensions/css/syntaxes/css.tmLanguage.json).\n\n## CSS Nesting Example\n\n```css\n.example {\n  text-decoration: none;\n  \u0026:hover {\n    text-decoration: underline;\n  }\n}\n\n/* The browser parses this as: */\n.example {\n  text-decoration: none;\n}\n.example:hover {\n  text-decoration: underline;\n}\n```\n\n## Other Features\n\n### Includes syntax highlighting for `@container`\n\n```css\n/* Nested @container example */\n@container summary (width \u003e 400px) {\n  @container (min-width: 800px) {\n    .card {\n      margin: 50px;\n    }\n    @container (min-width: calc( var(--width) * 1rem)) {\n      .card {\n        margin: 0;\n      }\n    }\n  }\n```\n\n### Includes _function_ syntax highlighting for 'at-rules', such as in `@media`\n\n```css\n/* calc() function example */\n@media (max-width: calc( (768 / 16) * 1rem )) {\n  .example {\n    margin: 0;\n  }\n}\n```\n\n## Installation\n\n\u003e Note: You may need to reload VSCode after installing this extension for it to take effect.\n\nSearch for `CSS Nesting Syntax Highlighting` in the VSCode's Extensions Marketplace panel or click the install button on the [CSS Nesting Syntax Highlighting Marketplace page](https://marketplace.visualstudio.com/items?itemName=jacobcassidy.css-nesting-syntax-highlighting).\n\nYou can also manually install the extension by cloning the [github repository](https://github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting) into `~/.vscode/extensions` and restarting the VSCode editor.\n\n## Companion Theme\n\nCSS Nesting Syntax Highlighting works great with the [Cassidy Dark Theme](https://marketplace.visualstudio.com/items?itemName=jacobcassidy.cassidy-dark).\n\n## What's New?\n\nView the [Changelog](https://github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting/blob/main/CHANGELOG.md).\n\n## Known Issues\n\n- When nested, a few obscure `#tag-names` are overridden by the same `#property-names`. Those names are:\n  - **HTML tags**: `content`, `font`, `image`, `marquee`, `mask`, `shadow`, `style`.\n  - **SVG tags**: `color-profile`, `cursor`, `filter`, `line`, `text`.\n\n## Issues?\n\nIf you come across any issues, please feel free to [report them here](https://github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting/issues). You can also [create a pull request](https://github.com/jacobcassidy/vscode-css-nesting-syntax-highlighting/pulls) to add any improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobcassidy%2Fvscode-css-nesting-syntax-highlighting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobcassidy%2Fvscode-css-nesting-syntax-highlighting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobcassidy%2Fvscode-css-nesting-syntax-highlighting/lists"}