{"id":29275852,"url":"https://github.com/soul-wish/postcss-important-shorthand","last_synced_at":"2025-10-28T15:07:01.891Z","repository":{"id":3857302,"uuid":"51134247","full_name":"soul-wish/postcss-important-shorthand","owner":"soul-wish","description":"PostCSS plugin that allows you to use shorthand for your !important declarations","archived":false,"fork":false,"pushed_at":"2023-01-04T00:50:59.000Z","size":565,"stargazers_count":7,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T17:59:43.910Z","etag":null,"topics":["css","important","postcss","postcss-plugin","shorthand"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/soul-wish.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}},"created_at":"2016-02-05T08:10:43.000Z","updated_at":"2021-01-02T00:23:04.000Z","dependencies_parsed_at":"2023-01-13T12:47:33.696Z","dependency_job_id":null,"html_url":"https://github.com/soul-wish/postcss-important-shorthand","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/soul-wish/postcss-important-shorthand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soul-wish%2Fpostcss-important-shorthand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soul-wish%2Fpostcss-important-shorthand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soul-wish%2Fpostcss-important-shorthand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soul-wish%2Fpostcss-important-shorthand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soul-wish","download_url":"https://codeload.github.com/soul-wish/postcss-important-shorthand/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soul-wish%2Fpostcss-important-shorthand/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259606974,"owners_count":22883559,"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","important","postcss","postcss-plugin","shorthand"],"created_at":"2025-07-05T07:11:20.526Z","updated_at":"2025-10-28T15:07:01.812Z","avatar_url":"https://github.com/soul-wish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Important Shorthand [![Build Status][ci-img]][ci]\n\n[PostCSS] plugin that allows you to use shorthand for your `!important` declarations.\n\n\u003e *Please remember, that you shouldn't use '!important' in most cases, so be careful with them. But here is a plugin, in case you really need them :). You can write `!important` declarations in different ways, as you can see on the example below. Just choose the most convenient one.*\n\n---\n\n*CSS before:*\n```css\n.test-class {\n    position: relative !;\n    margin: !auto;\n    padding: 5px;\n    border: 1px solid black;\n    font: 16px/20px Arial, sans-serif;\n    text-align: center!;\n}\n```\n\n*CSS after:*\n```css\n.test-class {\n    position: relative !important;\n    margin: auto !important;\n    padding: 5px;\n    border: 1px solid black;\n    font: 16px/20px Arial, sans-serif;\n    text-align: center !important;\n}\n```\n\n## Install via `npm`\n\n```\n$ npm install --save-dev postcss-important-shorthand\n```\n\n## Usage\n\nSee [PostCSS] docs for examples for your environment.\n\n#### PostCSS\n```js\npostcss([ require('postcss-important-shorthand') ])\n```\n\n#### Gulp\n\nIn Gulp you can use [gulp-postcss](https://github.com/postcss/gulp-postcss) with `postcss-important-shorthand` npm package.\n\n```js\nvar gulp = require('gulp');\nvar postcss = require('gulp-postcss');\nvar important = require('postcss-important-shorthand');\n\ngulp.task('css', function () {\n  return gulp.src('./src')\n    .pipe(postcss([\n      important\n    ]))\n    .pipe(gulp.dest('./dist'));\n});\n```\n\n#### Grunt\n\nIn Grunt you can use [grunt-postcss](https://github.com/nDmitry/grunt-postcss) with `postcss-important-shorthand` npm package.\n\n```js\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n    postcss: {\n        options: {\n            processors: [\n                require('postcss-important-shorthand')\n            ]\n        },\n        dist: {\n            src: 'css/*.css'\n        }\n    }\n});\n\ngrunt.registerTask('css', ['postcss:dist']);\n```\n\n## License\n\nMIT © [Sergey Lysenko](http://soulwish.info)\n\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/soul-wish/postcss-important-shorthand.svg\n[ci]:      https://travis-ci.org/soul-wish/postcss-important-shorthand\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoul-wish%2Fpostcss-important-shorthand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoul-wish%2Fpostcss-important-shorthand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoul-wish%2Fpostcss-important-shorthand/lists"}