{"id":16039458,"url":"https://github.com/pdmlab/tailwindcss-striped-grid","last_synced_at":"2026-01-24T11:06:37.233Z","repository":{"id":257812190,"uuid":"867223889","full_name":"PDMLab/tailwindcss-striped-grid","owner":"PDMLab","description":"A Tailwind CSS plugin to create striped rows for grids","archived":false,"fork":false,"pushed_at":"2024-10-04T17:08:17.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T16:51:25.102Z","etag":null,"topics":["css-grid","grid-layout","tailwindcss","tailwindcss-plugin"],"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/PDMLab.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-03T17:01:45.000Z","updated_at":"2024-10-04T17:08:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"25d235f7-311a-4e6a-94d6-f420ceecf0d8","html_url":"https://github.com/PDMLab/tailwindcss-striped-grid","commit_stats":null,"previous_names":["pdmlab/tailwindcss-striped-grid"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Ftailwindcss-striped-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Ftailwindcss-striped-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Ftailwindcss-striped-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Ftailwindcss-striped-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PDMLab","download_url":"https://codeload.github.com/PDMLab/tailwindcss-striped-grid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244156489,"owners_count":20407519,"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-grid","grid-layout","tailwindcss","tailwindcss-plugin"],"created_at":"2024-10-08T23:04:42.342Z","updated_at":"2026-01-24T11:06:37.203Z","avatar_url":"https://github.com/PDMLab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailwindcss-striped-grid\nA Tailwind CSS plugin to create striped rows for grids\n\n## Install\n\nRequires **Tailwind v3.0** or higher.\n\n1. Install the plugin:\n\n```bash\nnpm install tailwindcss-striped-grid --save-dev\n```\n\n2. Add it to your `tailwind.config.js` file:\n\n```js\n// tailwind.config.js\nmodule.exports = {\n  //...\n  plugins: [\n    require('tailwindcss-striped-grid'),\n  ]\n}\n```\n\n3. Configure your theme:\n\n```js\n// tailwind.config.js\nmodule.exports ={\n    //...\n    theme: {\n        gridStriped: {\n            color: 'gray',\n            variant: '200'\n        }\n    }\n}\n```\n\n## Usage\n\n### Creating a grid with alternating rows using `grid-cols-\u003cnumber\u003e`\n\n```html\n\u003cdiv class=\"grid grid-cols-3\"\u003e\n    \u003cdiv\u003eCol 1\u003c/div\u003e\n    \u003cdiv\u003eCol 2\u003c/div\u003e\n    \u003cdiv\u003eCol 3\u003c/div\u003e\n    \n    \u003cdiv class=\"striped\"\u003e\n        \u003cdiv\u003eRow 1 - Col 1\u003c/div\u003e\n        \u003cdiv\u003eRow 1 - Col 2\u003c/div\u003e\n        \u003cdiv\u003eRow 1 - Col 3\u003c/div\u003e\n\n        \u003cdiv\u003eRow 2 - Col 1\u003c/div\u003e\n        \u003cdiv\u003eRow 2 - Col 2\u003c/div\u003e\n        \u003cdiv\u003eRow 2 - Col 3\u003c/div\u003e\n\n        \u003cdiv\u003eRow 3 - Col 1\u003c/div\u003e\n        \u003cdiv\u003eRow 3 - Col 2\u003c/div\u003e\n        \u003cdiv\u003eRow 3 - Col 3\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\nThe `div` with the `striped` class is a wrapper which is using `display:contents`, hence it's box is not rendered.\n\n### Creating a grid with alternating rows using `grid-cols-[\u003cnumbers\u003e]`\n\n```html\n\u003cdiv class=\"grid grid-cols-[5em_7em_4em]\"\u003e\n    \u003cdiv\u003eCol 1\u003c/div\u003e\n    \u003cdiv\u003eCol 2\u003c/div\u003e\n    \u003cdiv\u003eCol 3\u003c/div\u003e\n    \n    \u003cdiv class=\"striped-3\"\u003e\n        \u003cdiv\u003eRow 1 - Col 1\u003c/div\u003e\n        \u003cdiv\u003eRow 1 - Col 2\u003c/div\u003e\n        \u003cdiv\u003eRow 1 - Col 3\u003c/div\u003e\n\n        \u003cdiv\u003eRow 2 - Col 1\u003c/div\u003e\n        \u003cdiv\u003eRow 2 - Col 2\u003c/div\u003e\n        \u003cdiv\u003eRow 2 - Col 3\u003c/div\u003e\n\n        \u003cdiv\u003eRow 3 - Col 1\u003c/div\u003e\n        \u003cdiv\u003eRow 3 - Col 2\u003c/div\u003e\n        \u003cdiv\u003eRow 3 - Col 3\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\nThe wrapper `\u003cdiv\u003e` now has to specify the number of columns.\n\nBoth options support the default grid with up to 12 columns.\n\n## Want to help?\n\nThis project is just getting off the ground and could use some help with cleaning things up and refactoring.\n\nIf you want to contribute - we'd love it! Just open an issue to work against so you get full credit for your fork. You can open the issue first so we can discuss and you can work your fork as we go along.\n\nIf you see a bug, please be so kind as to show how it's failing, and we'll do our best to get it fixed quickly.\n\nBefore sending a PR, please [create an issue](https://github.com/PDMLab/tailwindcss-striped-grid/issues/new) to introduce your idea and have a reference for your PR.\n\nAlso please add tests and make sure to run `yarn lint`.\n\n### Discussions\n\nIf you want to discuss an `tailwindcss-striped-grid` issue or PR in more detail, feel free to [start a discussion](https://github.com/PDMLab/tailwindcss-striped-grid/discussions).\n\n## License\n\nMIT License\n\nCopyright (c) PDMLab\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdmlab%2Ftailwindcss-striped-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdmlab%2Ftailwindcss-striped-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdmlab%2Ftailwindcss-striped-grid/lists"}