{"id":15250454,"url":"https://github.com/ye-will/next-plugin-antd","last_synced_at":"2025-10-05T11:31:45.350Z","repository":{"id":143896340,"uuid":"258158842","full_name":"ye-will/next-plugin-antd","owner":"ye-will","description":"A @zeit/next-less patch with full support for Ant Design, Less and CSS modules","archived":true,"fork":false,"pushed_at":"2020-07-16T04:20:41.000Z","size":15,"stargazers_count":28,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T18:39:50.254Z","etag":null,"topics":["ant-design","css-modules","less","next-plugin","nextjs"],"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/ye-will.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-23T09:45:02.000Z","updated_at":"2024-05-06T05:48:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"7fbcfc1b-ae53-42df-b272-e79ed8d75cb2","html_url":"https://github.com/ye-will/next-plugin-antd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ye-will%2Fnext-plugin-antd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ye-will%2Fnext-plugin-antd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ye-will%2Fnext-plugin-antd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ye-will%2Fnext-plugin-antd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ye-will","download_url":"https://codeload.github.com/ye-will/next-plugin-antd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235393591,"owners_count":18982818,"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":["ant-design","css-modules","less","next-plugin","nextjs"],"created_at":"2024-09-29T16:04:55.820Z","updated_at":"2025-10-05T11:31:40.061Z","avatar_url":"https://github.com/ye-will.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js \u0026 Ant Design (\u0026 Less) Made Easy\n\nA [@zeit/next-less][next-less] patch with full support for Ant Design, Less and CSS modules\n\n## Version compatibility\n\n- for `antd: \u003c4.0.0`, use `next-plugin-antd: ~0.1.3`\n- for `antd: \u003e=4.0.0`, use `next-plugin-antd: ^0.2.0`\n\n## `create-next-app` example\n\n```bash\nnpm init next-app -e https://github.com/ye-will/next-plugin-antd/tree/master/examples/with-ant-design-less with-ant-design-less\n```\n\nor\n\n```\nyarn create next-app -e https://github.com/ye-will/next-plugin-antd/tree/master/examples/with-ant-design-less with-ant-design-less\n```\n\n## Installation\n\n```bash\nnpm install --save next-plugin-antd less antd\n```\n\n## Configuring\n\nCreate/Edit `next.config.js` in your project\n\n```javascript\n// next.config.js\nconst withPluginAntd = require(\"next-plugin-antd\")\nmodule.exports = withPluginAntd({\n  /* config options here */\n})\n```\n\nAdd a `.babelrc`\n\n```json\n{\n  \"presets\": [\"next/babel\"],\n  \"plugins\": [\n    [\n      \"import\", {\n        \"libraryName\": \"antd\",\n        \"style\": true\n      }\n    ]\n  ]\n}\n```\n\nCongratulations 🎉🎉🎉\n\n### Options\n\n`antdThemeVariables`: [less-vars-to-js](https://github.com/michaeltaranto/less-vars-to-js) config to customize ant design theme\n\nAll @zeit/next-less [options][next-less] are supported, such as `cssModules`, `cssLoaderOptions`, `lessLoaderOptions`, `postcssLoaderOptions`\n\n[next-less]: https://github.com/zeit/next-plugins/tree/master/packages/next-less\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fye-will%2Fnext-plugin-antd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fye-will%2Fnext-plugin-antd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fye-will%2Fnext-plugin-antd/lists"}