{"id":14990680,"url":"https://github.com/csstools/postcss-composes-enhanced","last_synced_at":"2026-02-28T09:30:14.149Z","repository":{"id":57159234,"uuid":"271049966","full_name":"csstools/postcss-composes-enhanced","owner":"csstools","description":"Enhance the composes behavior in CSS Modules","archived":false,"fork":false,"pushed_at":"2020-06-09T19:15:57.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T05:31:40.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-09T16:11:27.000Z","updated_at":"2023-01-18T19:19:20.000Z","dependencies_parsed_at":"2022-09-08T10:40:13.033Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-composes-enhanced","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-composes-enhanced","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-composes-enhanced/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-composes-enhanced/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-composes-enhanced/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-composes-enhanced/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238726224,"owners_count":19520172,"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-09-24T14:20:34.959Z","updated_at":"2026-02-28T09:30:14.083Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Composes Enhanced [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\n\n[PostCSS Composes Enhanced] lets you enhance the composes behavior in CSS Modules.\n\n```pcss\n.example {\n  @composes no-margin from '@company/layout';\n}\n\n/* becomes */\n\n.example {\n  composes: no-margin from '../../node_modules/@company/layout/index.module.css';\n}\n```\n\n## Usage\n\nAdd [PostCSS Composes Enhanced] to your project:\n\n```bash\nnpm install postcss-composes-enhanced --save-dev\n```\n\nUse **PostCSS Composes Enhanced** to process your CSS:\n\n```js\nconst composesEnhanced = require('postcss-composes-enhanced')\n\ncomposesEnhanced.process(YOUR_CSS /*, processOptions, pluginOptions */)\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss')\nconst composesEnhanced = require('postcss-composes-enhanced')\n\npostcss([composesEnhanced(/* pluginOptions */)]).process(YOUR_CSS /*, processOptions */)\n```\n\n**PostCSS Composes Enhanced** runs in all Node environments, with special instructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| ----------------------- | ------------------------------------- | ----------------------------- | ----------------------------------------------- | ----------------------- | ------------------------- |\n\n\n## Options\n\n### resolveImports\n\nThe `resolveImports` option determines whether imports within `composes` declarations should be resolved.\n\n### transformAtRules\n\nThe `transformAtRules` option determines whether `@composes` at-rules should be transformed into declarations.\n\n## Additional Options\n\nAdditional options will be passed through into [`css-import-resolve`](https://github.com/csstools/css-import-resolve#options).\n\n[cli-img]: https://img.shields.io/travis/csstools/postcss-composes-enhanced/master.svg\n[cli-url]: https://travis-ci.org/csstools/postcss-composes-enhanced\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n[npm-img]: https://img.shields.io/npm/v/postcss-composes-enhanced.svg\n[npm-url]: https://www.npmjs.com/package/postcss-composes-enhanced\n[postcss]: https://github.com/postcss/postcss\n[postcss composes enhanced]: https://github.com/csstools/postcss-composes-enhanced\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-composes-enhanced","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-composes-enhanced","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-composes-enhanced/lists"}