{"id":13827948,"url":"https://github.com/csstools/postcss-language","last_synced_at":"2025-02-27T01:32:18.428Z","repository":{"id":38344115,"uuid":"209446309","full_name":"csstools/postcss-language","owner":"csstools","description":"Support for modern and experimental CSS within Visual Studio Code","archived":false,"fork":false,"pushed_at":"2022-07-29T19:49:25.000Z","size":101,"stargazers_count":80,"open_issues_count":12,"forks_count":11,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-23T07:43:08.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-19T02:34:41.000Z","updated_at":"2024-10-16T18:35:56.000Z","dependencies_parsed_at":"2022-07-09T03:47:15.117Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-language","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-language/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240851190,"owners_count":19868000,"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":[],"created_at":"2024-08-04T09:02:21.688Z","updated_at":"2025-02-27T01:32:18.396Z","avatar_url":"https://github.com/csstools.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# PostCSS Language Support [\u003cimg src=\"https://github.com/csstools/postcss-language/raw/master/icon.png\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][PostCSS Language Support]\n\n[\u003cimg height=\"20\" alt=\"Installs\" src=\"https://img.shields.io/visual-studio-marketplace/i/csstools.postcss\"\u003e](https://marketplace.visualstudio.com/items?itemName=csstools.postcss)\n[\u003cimg height=\"20\" alt=\"Rating\" src=\"https://img.shields.io/visual-studio-marketplace/stars/csstools.postcss\"\u003e](https://marketplace.visualstudio.com/items?itemName=csstools.postcss)\n[\u003cimg height=\"20\" alt=\"Support Chat\" src=\"https://img.shields.io/badge/support-chat-blue.svg\"\u003e](https://gitter.im/postcss/postcss)\n\n[PostCSS Language Support] adds support for modern and experimental CSS within **Visual Studio Code**.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/csstools/postcss-language/master/preview/custom-rules.png\" alt=\"\" width=\"610\"\u003e\u003c/p\u003e\n\nThis extension is applied to `.css`, `.pcss` and `.postcss` files. It also applies to the following contexts:\n\n- HTML `\u003cstyle\u003e` elements.\n- Markdown `css` and `pcss` code blocks.\n- Marko `style` blocks when paired with the [Marko Syntax Highlighting] extension.\n\n## Installation\n\n1. Open the command palette and select **Extensions: Install Extensions**\n2. Search for **PostCSS Language Support**\n3. Click **Install**\n\n### Adding Support for Emmet\n\n1. Open the command palette and select **Preferences: Open Settings (JSON)**\n2. Add the following configuration:\n\n```json\n{\n  \"emmet.includeLanguages\": {\n    \"postcss\": \"css\"\n  }\n}\n```\n\n## Differences from CSS Language Support\n\n**PostCSS Language Support** is derived from the native **CSS Language Support** built into **Visual Studio Code**, which is itself derived from the native **CSS Language Support** for **Atom**. This extension includes the following changes:\n\n### Modern CSS Features\n\n- Support is added for nesting rules, including the nesting selector (`\u0026`), the nesting at-rule (`@nest`), and `@media` and `@supports` at-rules.\n- Support is added for the `:blank` pseudo-class, as well as the `:is()` and `:where` functional pseudo-classes.\n- Support is added for `prefers-color-scheme` and `prefers-reduced-motion` within media queries.\n- Support is added for the `place-self` property.\n- Support is added for the `env()` function, as well as the `hwb()`, `lab()`, and `lch()` color functions.\n- Support is added for the `emoji`, `fangsong`, and `system-ui` font families.\n- Support is added for the `border-block`, `border-inline`, `margin-block`, `margin-inline`, `padding-block`, and `padding-inline` logical properties.\n- Support is added for `@custom-media` and `@custom-selector` at-rules.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/csstools/postcss-language/master/preview/nesting.png\" alt=\"\" width=\"278\"\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/csstools/postcss-language/master/preview/variables.png\" alt=\"\" width=\"402\"\u003e\u003c/p\u003e\n\n### Syntactical Looseness\n\n- Support is added for nesting `@extend` and `@extends` at-rules.\n- Support is added for functional selectors (`%placeholder`).\n- Support is added for the CSS Modules `:global` rule, as well as the `composes` declaration, and also `@value` declarations.\n- Support is added for sass `$variables`.\n- Support is added for single-line comments (`//`).\n- Support is added for `@custom-env` at-rules.\n- Support is added for unknown nesting at-rules, as well as unknown `@custom-` prefixed at-rules.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/csstools/postcss-language/master/preview/modules.png\" alt=\"\" width=\"518\"\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/csstools/postcss-language/master/preview/sassy.png\" alt=\"\" width=\"333\"\u003e\u003c/p\u003e\n\n[PostCSS Language Support]: https://github.com/csstools/postcss-language\n[Marko Syntax Highlighting]: https://marketplace.visualstudio.com/items?itemName=pcanella.marko\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-language/lists"}