{"id":15648929,"url":"https://github.com/log1x/tailwindcss-pseudo","last_synced_at":"2025-04-14T19:36:05.356Z","repository":{"id":34816428,"uuid":"183933841","full_name":"Log1x/tailwindcss-pseudo","owner":"Log1x","description":"Tailwind CSS plugin to generate pseudo selector variants.","archived":false,"fork":false,"pushed_at":"2023-01-03T20:27:55.000Z","size":1202,"stargazers_count":42,"open_issues_count":14,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T10:39:29.819Z","etag":null,"topics":["tailwindcss","tailwindcss-plugin"],"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/Log1x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-28T16:41:33.000Z","updated_at":"2024-11-11T06:25:34.000Z","dependencies_parsed_at":"2023-01-15T09:30:58.370Z","dependency_job_id":null,"html_url":"https://github.com/Log1x/tailwindcss-pseudo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Ftailwindcss-pseudo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Ftailwindcss-pseudo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Ftailwindcss-pseudo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Ftailwindcss-pseudo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Log1x","download_url":"https://codeload.github.com/Log1x/tailwindcss-pseudo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248946819,"owners_count":21187581,"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":["tailwindcss","tailwindcss-plugin"],"created_at":"2024-10-03T12:27:09.369Z","updated_at":"2025-04-14T19:36:05.317Z","avatar_url":"https://github.com/Log1x.png","language":"JavaScript","readme":"# Tailwind CSS Pseudo Selector Plugin\n\n![Package Version](https://img.shields.io/npm/v/tailwindcss-pseudo?style=flat-square)\n![Package Total Downloads](https://img.shields.io/npm/dt/tailwindcss-pseudo?style=flat-square)\n\n## Requirements\n\n- [Tailwind CSS](https://tailwindcss.com/) \u003e= v1.0.0\n\n## Installation\n\nInstall via Yarn:\n\n```sh\n$ yarn add tailwindcss-pseudo\n```\n\n## Usage\n\n```js\n// tailwind.config.js\n{\n  theme: {\n    backgroundColor: {\n      'black': 'black',\n    },\n    pseudo: { // defaults to {'before': 'before', 'after': 'after'}\n      'before': 'before',\n      'after': 'after',\n      'not-first': 'not(:first-child)',\n    }\n  },\n  variants: {\n    backgroundColor: ['not-first'],\n    empty: ['before', 'after'], // defaults to []\n  },\n  plugins: [\n    require('tailwindcss-pseudo')({\n      empty: true, // defaults to true\n    }),\n  ],\n}\n```\n\nThis plugin generates the following utilities:\n\n```css\n.bg-black {\n  background-color: black;\n}\n\n.not-first\\:bg-black:not(:first-child) {\n  background-color: black;\n}\n\n.empty {\n  content: '';\n}\n\n.before\\:empty::before {\n  content: '';\n}\n\n.after\\:empty::after {\n  content: '';\n}\n```\n\n## Testing\n\nTests are handled with [Jest](https://github.com/facebook/jest) and can be ran using:\n\n```sh\n$ yarn run test\n```\n\n## Bug Reports\n\nIf you discover a bug in Tailwind CSS Pseudo, please [open an issue](https://github.com/log1x/tailwindcss-pseudo/issues).\n\n## Contributing\n\nContributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.\n\n## License\n\nTailwind CSS Pseudo provided under the [MIT License](https://github.com/log1x/tailwindcss-pseudo/blob/master/LICENSE.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Ftailwindcss-pseudo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog1x%2Ftailwindcss-pseudo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Ftailwindcss-pseudo/lists"}