{"id":20380481,"url":"https://github.com/tobua/postcss-tags-without-class","last_synced_at":"2026-05-19T03:36:04.622Z","repository":{"id":57328577,"uuid":"141904454","full_name":"tobua/postcss-tags-without-class","owner":"tobua","description":"Make HTML Tags Opt Out-Able When Adding a Class","archived":false,"fork":false,"pushed_at":"2020-07-20T10:36:23.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-25T21:25:03.686Z","etag":null,"topics":["postcss","postcss-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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-22T14:50:15.000Z","updated_at":"2020-07-20T10:36:26.000Z","dependencies_parsed_at":"2022-09-21T02:31:26.184Z","dependency_job_id":null,"html_url":"https://github.com/tobua/postcss-tags-without-class","commit_stats":null,"previous_names":["naminho/postcss-tags-without-class"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tobua/postcss-tags-without-class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fpostcss-tags-without-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fpostcss-tags-without-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fpostcss-tags-without-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fpostcss-tags-without-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobua","download_url":"https://codeload.github.com/tobua/postcss-tags-without-class/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fpostcss-tags-without-class/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"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":["postcss","postcss-plugin"],"created_at":"2024-11-15T02:07:27.105Z","updated_at":"2026-04-18T01:34:30.795Z","avatar_url":"https://github.com/tobua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-tags-without-class\n\nApplies tag selectors only if no class is present on the tag.\n\n## Only Style Pure Tags\n\n```css\nbutton {\n    color: red;\n}\n```\n\n```html\n\u003cbutton\u003eI'm red.\u003c/button\u003e\n\u003cbutton class=\"opt-out\"\u003eI'm still black.\u003c/button\u003e\n```\n\n## Installation and Usage\n\n```\nnpm i postcss postcss-tags-without-class\n```\n\n```js\nconst postcss = require('postcss')\nconst tagsWithoutClass = require('postcss-tags-without-class')\n\npostcss([tagsWithoutClass]).process('button {color: red;}').then(result =\u003e {\n    const transformedCSS = result.css\n\n    transformedCSS === 'button:not([class]){color: red;}' // true\n})\n```\n\n## How?\n\nThis plugin will add `:not([class])` to each tag. Multiple tags `button, a`, chained tags `ul li` and tags with pseudo classes `button:focus` are supported as well.\n\n```css\nbutton {}\n\nbutton,\na {}\n\nbutton:focus {}\n\na span {}\n```\n\nwill become\n\n```css\nbutton:not([class]) {}\n\nbutton:not([class]),\na:not([class]) {}\n\nbutton:not([class]):focus {}\n\na:not([class]) span:not([class]) {}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobua%2Fpostcss-tags-without-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobua%2Fpostcss-tags-without-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobua%2Fpostcss-tags-without-class/lists"}