{"id":20330574,"url":"https://github.com/fullengineer/postcss-flexbox-reset","last_synced_at":"2025-07-17T13:34:58.402Z","repository":{"id":254164182,"uuid":"845683293","full_name":"fullengineer/postcss-flexbox-reset","owner":"fullengineer","description":"PostCSS plugin for resetting flexbox","archived":false,"fork":false,"pushed_at":"2024-08-21T18:19:20.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T12:43:32.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/fullengineer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-21T18:12:05.000Z","updated_at":"2024-08-21T18:19:46.000Z","dependencies_parsed_at":"2024-08-21T20:34:20.532Z","dependency_job_id":"a7e422bf-46b6-44dd-bfe0-c9b68cf10574","html_url":"https://github.com/fullengineer/postcss-flexbox-reset","commit_stats":null,"previous_names":["fullengineer/postcss-flexbox-reset"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fullengineer/postcss-flexbox-reset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullengineer%2Fpostcss-flexbox-reset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullengineer%2Fpostcss-flexbox-reset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullengineer%2Fpostcss-flexbox-reset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullengineer%2Fpostcss-flexbox-reset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullengineer","download_url":"https://codeload.github.com/fullengineer/postcss-flexbox-reset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullengineer%2Fpostcss-flexbox-reset/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265611404,"owners_count":23797880,"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-11-14T20:16:43.468Z","updated_at":"2025-07-17T13:34:58.384Z","avatar_url":"https://github.com/fullengineer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Flexbox Reset\n\n[postcss]: https://github.com/postcss/postcss\n\n[![npm](https://img.shields.io/npm/v/postcss-flexbox-reset.svg)](https://www.npmjs.com/package/postcss-flexbox-reset)\n[![npm](https://img.shields.io/npm/dt/postcss-flexbox-reset.svg)](https://www.npmjs.com/package/postcss-flexbox-reset)\n\n[PostCSS] plugin for resetting flexbox. This plugin adds rule `min-width:0` to all direct descendants of element `display: flex`.\n\nLet’s say you want to truncate labels in flexbox layout. Without resetting flex items, it doesn't work. When you apply `min-width:0` to flex items, layout works as expected.\n\n[postcss]: https://github.com/postcss/postcss\n\n```css\n/* Input example */\n.foo {\n  display: flex;\n}\n```\n\n```css\n/* Output example */\n.foo {\n  display: flex;\n}\n\n.foo \u003e * {\n  min-width: 0;\n}\n```\n\n## 🔗 Links:\n\n- [Minimum content sizing of flex items](https://github.com/philipwalton/flexbugs#1-minimum-content-sizing-of-flex-items-not-honored)\n- [Flexbox Implied Minimum Size](http://fantasai.inkedblade.net/style/discuss/flexbox-min-size/)\n- [CSS: Flex and \"min-width\"](https://makandracards.com/makandra/66994-css-flex-and-min-width)\n\n## 🍳 Usage\n\n**Step 1:** Install plugin:\n\n```sh\nnpm install --save-dev postcss postcss-flexbox-reset\n```\n\n**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`\nin the project root, `\"postcss\"` section in `package.json`\nor `postcss` in bundle config.\n\nIf you do not use PostCSS, add it according to [official docs]\nand set this plugin in settings.\n\n**Step 3:** Add the plugin to plugins list:\n\n```diff\nmodule.exports = {\n  plugins: [\n+   require('postcss-flexbox-reset'),\n    require('autoprefixer')\n  ]\n}\n```\n\n[official docs]: https://github.com/postcss/postcss#usage\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullengineer%2Fpostcss-flexbox-reset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullengineer%2Fpostcss-flexbox-reset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullengineer%2Fpostcss-flexbox-reset/lists"}