{"id":16347841,"url":"https://github.com/siilwyn/prettier-plugin-css-order","last_synced_at":"2025-09-09T08:36:39.443Z","repository":{"id":36960982,"uuid":"390120801","full_name":"Siilwyn/prettier-plugin-css-order","owner":"Siilwyn","description":"Prettier plugin to sort CSS declarations in a certain order.","archived":false,"fork":false,"pushed_at":"2024-10-21T15:56:53.000Z","size":33,"stargazers_count":145,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-15T23:06:09.284Z","etag":null,"topics":["postcss","prettier","prettier-plugin"],"latest_commit_sha":null,"homepage":"https://npmjs.com/prettier-plugin-css-order","language":"JavaScript","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/Siilwyn.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"license.md","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":"2021-07-27T20:40:52.000Z","updated_at":"2025-05-04T10:32:57.000Z","dependencies_parsed_at":"2024-10-25T17:47:22.566Z","dependency_job_id":"7428763c-148f-4ee3-8720-7b6a837201b0","html_url":"https://github.com/Siilwyn/prettier-plugin-css-order","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"f5720a7692a2b51a4896c37552878fa549759dca"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siilwyn%2Fprettier-plugin-css-order","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siilwyn%2Fprettier-plugin-css-order/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siilwyn%2Fprettier-plugin-css-order/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siilwyn%2Fprettier-plugin-css-order/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siilwyn","download_url":"https://codeload.github.com/Siilwyn/prettier-plugin-css-order/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436948,"owners_count":22070947,"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":["postcss","prettier","prettier-plugin"],"created_at":"2024-10-11T00:46:20.405Z","updated_at":"2025-05-15T23:06:35.484Z","avatar_url":"https://github.com/Siilwyn.png","language":"JavaScript","readme":"# CSS Order Prettier Plugin\n[![npm][npm-badge]][npm]\n\nA [Prettier](https://prettier.io/) plugin to sort CSS, SCSS or Less declarations based on their property names.  \nUsing [css-declaration-sorter](https://github.com/Siilwyn/css-declaration-sorter/) under the hood.\n\n## Usage\nFollowing the Prettier plugin guidelines, this package depends on Prettier as a peer dependency:  \n`npm install prettier-plugin-css-order --save-dev`\n\nTo enable the plugin use the Prettier API, CLI or configuration file. For example using the JS configuration:\n```js\n{\n  plugins: [\"prettier-plugin-css-order\"]\n}\n```\n\n### Configuration\nThis plugin adds two configurable keys to Prettier:\n- [`cssDeclarationSorterOrder`](https://github.com/Siilwyn/css-declaration-sorter#order) defaults to `concentric-css`.\n- [`cssDeclarationSorterKeepOverrides`](https://github.com/Siilwyn/css-declaration-sorter#keepoverrides) defaults to `true`, for a new codebase `false` is recommended.\n- `cssDeclarationSorterCustomOrder`, an array of property names, their order is used to sort with. This overrides the `cssDeclarationSorterOrder` option!\n\n[npm]: https://www.npmjs.com/package/prettier-plugin-css-order\n[npm-badge]: https://tinyshields.dev/npm/prettier-plugin-css-order.svg\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiilwyn%2Fprettier-plugin-css-order","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiilwyn%2Fprettier-plugin-css-order","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiilwyn%2Fprettier-plugin-css-order/lists"}