{"id":19377796,"url":"https://github.com/downwindcss/flex-center","last_synced_at":"2026-05-08T06:53:10.188Z","repository":{"id":57109526,"uuid":"376446274","full_name":"downwindcss/flex-center","owner":"downwindcss","description":"A utility for centering content with Flexbox -\u003e \"display: flex; justify-content: center; align-items: center\"","archived":false,"fork":false,"pushed_at":"2021-06-13T18:59:47.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T21:52:05.892Z","etag":null,"topics":["css","css-flexbox","flexbox","plugin","tailwindcss","utilities"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@downwindcss/flex-center","language":"HTML","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/downwindcss.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-06-13T05:15:45.000Z","updated_at":"2021-06-13T19:03:20.000Z","dependencies_parsed_at":"2022-08-20T18:20:11.241Z","dependency_job_id":null,"html_url":"https://github.com/downwindcss/flex-center","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/downwindcss/flex-center","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downwindcss%2Fflex-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downwindcss%2Fflex-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downwindcss%2Fflex-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downwindcss%2Fflex-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/downwindcss","download_url":"https://codeload.github.com/downwindcss/flex-center/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downwindcss%2Fflex-center/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32770544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","css-flexbox","flexbox","plugin","tailwindcss","utilities"],"created_at":"2024-11-10T09:03:37.897Z","updated_at":"2026-05-08T06:53:10.169Z","avatar_url":"https://github.com/downwindcss.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# downwindcss/flex-center\n\nA Tailwind CSS component for centering flex content in the middle.  \nBasically, instead of `flex justify-center items-center`, \nyou do `flex-center`.\n\n`flex-center` generates following CSS rule (disregarding responsive variants).\n\n```css\n.flex-center {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n```\n\n## Installation\n\n```bash\nnpm install @downwindcss/flex-center\n\n# using Yarn\nyarn add @downwindcss/flex-center\n\n# with PNPM\npnpm install @downwindcss/flex-center\n```\n\n## Configuration\n\nIn your Tailwind CSS configuration file, `tailwindcss.config.js`,  \nadd the plugin after following the installation step above.\n\n```json\nmodule.exports = {\n  plugins: [require('@downwindcss/flex-center')]\n}\n```\n\nOnly `responsive` variant is enabled by default.  \nSame as `flex` utility: https://tailwindcss.com/docs/flex#variants\n\n## Example\n\n**Demo**: https://codesandbox.io/s/flex-center-demo-v1c3k?file=/public/index.html\n\n```html\n\u003c!--                                             👇               --\u003e\n\u003cbody class=\"antialiased p-8 w-screen h-screen flex-center flex-col\"\u003e\n  \u003cheader\u003e\n    \u003ch1 class=\"text-pink-600 font-serif font-bold text-5xl\"\u003e\n      Start here!\n    \u003c/h1\u003e\n  \u003c/header\u003e\n  \u003cmain class=\"mt-4\"\u003e\n    \u003csection\u003e\n      \u003cp class=\"font-bold text-xl\"\u003eHave fun with Tailwind CSS!\u003c/p\u003e\n    \u003c/section\u003e\n  \u003c/main\u003e\n\u003c/body\u003e\n```\n\n## Motivation\n\nI found myself typing `flex justify-center items-center` too many times!  \nAin't nobody got time for that.\n\nJust type `flex-center` and be doen with it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdownwindcss%2Fflex-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdownwindcss%2Fflex-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdownwindcss%2Fflex-center/lists"}