{"id":17624615,"url":"https://github.com/yunsii/postcss-antd-fixes","last_synced_at":"2025-09-05T03:30:51.231Z","repository":{"id":189259500,"uuid":"679261781","full_name":"yunsii/postcss-antd-fixes","owner":"yunsii","description":"PostCSS plugin tries to fix all issues about antd with any others global CSS reset","archived":false,"fork":false,"pushed_at":"2024-07-04T13:42:40.000Z","size":297,"stargazers_count":34,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T15:36:11.837Z","etag":null,"topics":["ant-design","antd","postcss","postcss-plugin","tailwindcss"],"latest_commit_sha":null,"homepage":"https://stackblitz.com/edit/postcss-antd-fixes?file=postcss.config.js","language":"TypeScript","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/yunsii.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":"2023-08-16T12:57:33.000Z","updated_at":"2025-08-06T10:18:32.000Z","dependencies_parsed_at":"2023-08-19T03:12:18.416Z","dependency_job_id":"7c433707-8c93-4e70-a93e-7e37ce831877","html_url":"https://github.com/yunsii/postcss-antd-fixes","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"5bbdc8c2967fd63df6f49694967bab53aca52e91"},"previous_names":["yunsii/postcss-antd-fixes"],"tags_count":5,"template":true,"template_full_name":"yunsii/starter-vite-react-library","purl":"pkg:github/yunsii/postcss-antd-fixes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunsii%2Fpostcss-antd-fixes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunsii%2Fpostcss-antd-fixes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunsii%2Fpostcss-antd-fixes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunsii%2Fpostcss-antd-fixes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yunsii","download_url":"https://codeload.github.com/yunsii/postcss-antd-fixes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunsii%2Fpostcss-antd-fixes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273707109,"owners_count":25153700,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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":["ant-design","antd","postcss","postcss-plugin","tailwindcss"],"created_at":"2024-10-22T22:04:45.478Z","updated_at":"2025-09-05T03:30:46.199Z","avatar_url":"https://github.com/yunsii.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-antd-fixes\n\n[![NPM version](https://img.shields.io/npm/v/postcss-antd-fixes?color=a1b858\u0026label=)](https://www.npmjs.com/package/postcss-antd-fixes) [![Download monthly](https://img.shields.io/npm/dm/postcss-antd-fixes.svg)](https://www.npmjs.com/package/postcss-antd-fixes)\n\nPostCSS plugin tries to fix all issues about [antd](https://www.npmjs.com/package/antd) with any others global CSS reset\n\n## Features\n\n\u003e [!Note]\n\u003e If your antd version \u003e=5, you can use [`@layer`](https://ant.design/docs/react/compatible-style#tailwindcss-arrange-layer) to fix. Also you may have a quesion: [Can I use `@layer`?](https://caniuse.com/?search=%40layer)\n\n- support antd + [TailwindCSS preflight.css](https://github.com/tailwindlabs/tailwindcss/blob/master/src/css/preflight.css)\n  - fix button style conflict, ref: [ant-design/ant-design#38794](https://github.com/ant-design/ant-design/issues/38794)\n  - support anchor tags with `colorPrimary` under any antd components\n\n## Usage\n\n```js\n// postcss.config.js\nmodule.exports = {\n  plugins: {\n    'tailwindcss': {},\n    'autoprefixer': {},\n    'postcss-antd-fixes': {\n      // Support multiple prefixes, if you do not custom antd class name prefix, it's not necessary option.\n      prefixes: ['vp-antd', 'ant'],\n    },\n  },\n}\n```\n\n## Transforms\n\n### Transform `button` styles\n\n```css\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n  -webkit-appearance: button; /* 1 */\n  background-color: transparent; /* 2 */\n  background-image: none; /* 2 */\n}\n\n/* =\u003e */\n\nbutton:where(:not([class^='ant'])),\n[type='button']:where(:not([class^='ant'])),\n[type='reset']:where(:not([class^='ant'])),\n[type='submit']:where(:not([class^='ant'])) {\n  -webkit-appearance: button; /* 1 */\n  background-color: transparent; /* 2 */\n  background-image: none; /* 2 */\n}\n```\n\n### Add `anchor` styles\n\n```css\n:where([class^='ant']) a {\n  /* colorPrimary */\n  color: #1677ff;\n  text-decoration: none;\n}\n```\n\n## Build \u0026 Publish\n\n- `npm run build`\n- `npx changeset`\n- `npx changeset version`\n- `git commit`\n- `npx changeset publish`\n- `git push --follow-tags`\n\n\u003e [`changeset` prerelease doc](https://github.com/changesets/changesets/blob/main/docs/prereleases.md)\n\n## License\n\n[MIT](./LICENSE) License © 2023 [Yuns](https://github.com/yunsii)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunsii%2Fpostcss-antd-fixes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunsii%2Fpostcss-antd-fixes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunsii%2Fpostcss-antd-fixes/lists"}