{"id":16596723,"url":"https://github.com/tuanpham-dev/tailwind-parent","last_synced_at":"2026-04-16T21:35:00.963Z","repository":{"id":65522608,"uuid":"485343458","full_name":"tuanpham-dev/tailwind-parent","owner":"tuanpham-dev","description":"A Tailwind Plugin that allows you to style elements based on their parent classes.","archived":false,"fork":false,"pushed_at":"2022-04-25T17:28:26.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-22T09:26:18.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tuanpham-dev.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":"2022-04-25T11:30:19.000Z","updated_at":"2022-04-25T17:23:33.000Z","dependencies_parsed_at":"2023-01-27T05:45:25.186Z","dependency_job_id":null,"html_url":"https://github.com/tuanpham-dev/tailwind-parent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuanpham-dev/tailwind-parent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpham-dev%2Ftailwind-parent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpham-dev%2Ftailwind-parent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpham-dev%2Ftailwind-parent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpham-dev%2Ftailwind-parent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuanpham-dev","download_url":"https://codeload.github.com/tuanpham-dev/tailwind-parent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuanpham-dev%2Ftailwind-parent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31905859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-11T23:54:04.059Z","updated_at":"2026-04-16T21:35:00.939Z","avatar_url":"https://github.com/tuanpham-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tailwind Parent\nA Tailwind Plugin that allows you to style elements based on their parent classes.\n\n# Installation\n1. Install package:\n```bash\nnpm install tailwind-parent --save\n```\n\n2. Add to tailwind.config.js\n```javascript\nplugins: [\n  require('tailwind-parent')\n],\ntheme: {\n  parent: {\n    prefix: '',\n    classNames: [ // array or object\n      'is-red',\n      'is-green',\n      'is-blue'\n    ]\n  }\n}\n```\n\n# Example\n```html\n\u003cdiv class=\"is-red\"\u003e\n  \u003cdiv class=\"w-24 h-24 bg-black is-red:bg-red-500\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\nResults in:\n```css\n.is-red .is-red\\:bg-red-500 {\n    --tw-bg-opacity: 1;\n    background-color: rgb(239 68 68 / var(--tw-bg-opacity))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuanpham-dev%2Ftailwind-parent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuanpham-dev%2Ftailwind-parent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuanpham-dev%2Ftailwind-parent/lists"}