{"id":28589757,"url":"https://github.com/phucbm/tailwindcss-components","last_synced_at":"2026-02-27T02:31:28.776Z","repository":{"id":290523351,"uuid":"974719479","full_name":"phucbm/tailwindcss-components","owner":"phucbm","description":"A collection of ready-to-use helper components for Tailwind CSS that provide common layout patterns and utilities.","archived":false,"fork":false,"pushed_at":"2025-06-26T09:28:54.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-15T21:06:36.256Z","etag":null,"topics":["tailwindcss","tailwindcss-plugin","tailwindcss-v3"],"latest_commit_sha":null,"homepage":"https://deepwiki.com/phucbm/tailwindcss-components","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/phucbm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-29T07:50:45.000Z","updated_at":"2025-07-01T02:22:01.000Z","dependencies_parsed_at":"2025-04-29T09:32:12.335Z","dependency_job_id":"cd9d4f95-c670-4bff-acea-8d0441e35348","html_url":"https://github.com/phucbm/tailwindcss-components","commit_stats":null,"previous_names":["phucbm/tailwindcss-components"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/phucbm/tailwindcss-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Ftailwindcss-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Ftailwindcss-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Ftailwindcss-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Ftailwindcss-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phucbm","download_url":"https://codeload.github.com/phucbm/tailwindcss-components/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Ftailwindcss-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29883101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["tailwindcss","tailwindcss-plugin","tailwindcss-v3"],"created_at":"2025-06-11T08:11:28.976Z","updated_at":"2026-02-27T02:31:28.750Z","avatar_url":"https://github.com/phucbm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @phucbm/tailwindcss-components\n\n[![release](https://badgen.net/github/release/phucbm/tailwindcss-components/)](https://www.npmjs.com/package/@phucbm/tailwindcss-components)\n[![npm weekly download](https://badgen.net/npm/dm/@phucbm/tailwindcss-components)](https://www.npmjs.com/package/@phucbm/tailwindcss-components)\n\nA collection of ready-to-use helper components for Tailwind CSS that provide common layout patterns and utilities.\n\n## Installation\n\n```bash\n# Using npm\nnpm install @phucbm/tailwindcss-components\n\n# Using yarn\nyarn add @phucbm/tailwindcss-components\n\n# Using pnpm\npnpm add @phucbm/tailwindcss-components\n```\n## Usage\n\nAdd the plugin to your `tailwind.config.js` file:\n\n```js\n// tailwind.config.js\nmodule.exports = {\n  // ...\n  plugins: [\n    require('@phucbm/tailwindcss-components'),\n    // ...other plugins\n  ],\n}\n```\n\n## Available Components\n\n### Flex Layout Helpers\n\nEasily center content with flexbox.\n\n```html\n\u003cdiv class=\"fl-center\"\u003eCenters both horizontally and vertically\u003c/div\u003e\n\u003cdiv class=\"fl-center-v\"\u003eCenters vertically only\u003c/div\u003e\n\u003cdiv class=\"fl-center-h\"\u003eCenters horizontally only\u003c/div\u003e\n```\n\n### Absolute Positioning Helpers\n\nPosition elements absolutely with ease.\n\n```html\n\u003cdiv class=\"ab-center\"\u003eCenters absolutely both horizontally and vertically\u003c/div\u003e\n\u003cdiv class=\"ab-center-v\"\u003eCenters absolutely vertically only\u003c/div\u003e\n\u003cdiv class=\"ab-center-h\"\u003eCenters absolutely horizontally only\u003c/div\u003e\n\u003cdiv class=\"ab-full\"\u003eCovers its parent completely\u003c/div\u003e\n\u003cdiv class=\"ab-full-b\"\u003ePseudo-element ::before covers parent\u003c/div\u003e\n\u003cdiv class=\"ab-full-a\"\u003ePseudo-element ::after covers parent\u003c/div\u003e\n\u003cdiv class=\"ab-full-ba\"\u003eBoth pseudo-elements cover parent\u003c/div\u003e\n```\n\n### Image Size Helpers\n\nHandle image sizing with ease.\n\n```html\n\u003cdiv class=\"img-wrapper-cover\"\u003e\n  \u003cimg src=\"...\" alt=\"...\"\u003e \u003c!-- Will cover the container --\u003e\n\u003c/div\u003e\n\n\u003cdiv class=\"img-wrapper-contain\"\u003e\n  \u003cimg src=\"...\" alt=\"...\"\u003e \u003c!-- Will be contained in the container --\u003e\n\u003c/div\u003e\n```\n\n### List Style Helpers\n\nClean list styling without bullets or padding.\n\n```html\n\u003cul class=\"list-style-none\"\u003e\n  \u003cli\u003eItem without bullets or padding\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"list-style-none\"\u003e\n  \u003cul\u003e\n    \u003cli\u003eItem without bullets or padding\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n```\n\n### Transition Helpers\n\nAdd simple transitions.\n\n```html\n\u003cdiv class=\"t\"\u003eElement with standard transition (.25s)\u003c/div\u003e\n\u003cdiv class=\"t t-slow\"\u003eElement with slow transition (.6s)\u003c/div\u003e\n```\n\n### Loading Helpers\n\nAdd loading spinners and overlays.\n\n```html\n\u003cdiv class=\"loading\"\u003e\n  Content with loading overlay and spinner\n\u003c/div\u003e\n```\n\nYou can customize the loading appearance with CSS variables:\n\n```css\n:root {\n  --loading-size: 50px;\n  --loading-color: blue;\n  --loading-bg: rgba(255, 255, 255, 0.9);\n}\n```\n\n### Flex Grid Template\n\nA flexible grid system using flexbox.\n\nUnlike CSS Grid, `flex-grid-template` leverages Flexbox to provide superior item alignment capabilities like `justify-content:center`, \nwhat you can't do with tailwind's `grid`.\n\n```html\n\u003cdiv class=\"flex-grid-template\"\u003e\n  \u003cdiv\u003eItem 1\u003c/div\u003e\n  \u003cdiv\u003eItem 2\u003c/div\u003e\n  \u003cdiv\u003eItem 3\u003c/div\u003e\n  \u003c!-- Default is 3 columns, responsive down to 1 --\u003e\n\u003c/div\u003e\n\n\u003cdiv class=\"flex-grid-template flex-grid-col-4\"\u003e\n  \u003c!-- 4 columns --\u003e\n\u003c/div\u003e\n```\n\nYou can customize gap sizes using the provided utilities:\n\n```html\n\u003c!-- Using Tailwind's spacing scale --\u003e\n\u003cdiv class=\"flex-grid-template flex-grid-gap-4\"\u003e\n    \u003c!-- Both x and y gaps set to 1rem (4 in the spacing scale) --\u003e\n\u003c/div\u003e\n\n\u003cdiv class=\"flex-grid-template flex-grid-gap-x-8 flex-grid-gap-y-2\"\u003e\n    \u003c!-- X gap: 2rem (8), Y gap: 0.5rem (2) --\u003e\n\u003c/div\u003e\n\n\u003c!-- Or with inline styles for custom values --\u003e\n\u003cdiv class=\"flex-grid-template\" style=\"--grid-gap-x: 20px; --grid-gap-y: 40px;\"\u003e\n    \u003c!-- Custom gaps --\u003e\n\u003c/div\u003e\n```\n\n### Skeleton Background\n\nAdd skeleton loaders.\n\n```html\n\u003cdiv class=\"skeleton-bg\"\u003e\n  Loading content placeholder with animated spinner\n\u003c/div\u003e\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucbm%2Ftailwindcss-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphucbm%2Ftailwindcss-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucbm%2Ftailwindcss-components/lists"}