{"id":17787303,"url":"https://github.com/simon-he95/unplugin-atomize-css-uni","last_synced_at":"2026-04-19T16:01:17.220Z","repository":{"id":187615401,"uuid":"677376149","full_name":"Simon-He95/unplugin-atomize-css-uni","owner":"Simon-He95","description":"兼容小程序中 TailwindCSS 或 UnoCSS 等原子化 css 类名语法不支持的转换","archived":false,"fork":false,"pushed_at":"2024-04-03T05:42:36.000Z","size":70,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-17T05:56:57.439Z","etag":null,"topics":["tailwind","tailwindcss","uniapp"],"latest_commit_sha":null,"homepage":"","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/Simon-He95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Simon-He95","custom":["https://github.com/Simon-He95/sponsor"]}},"created_at":"2023-08-11T12:19:29.000Z","updated_at":"2024-04-03T05:43:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb91e9c2-fba0-4867-a33b-f92e9b2f157d","html_url":"https://github.com/Simon-He95/unplugin-atomize-css-uni","commit_stats":null,"previous_names":["simon-he95/vite-plugin-tailwind-uni","simon-he95/unplugin-atomize-css-uni"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Simon-He95/unplugin-atomize-css-uni","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-atomize-css-uni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-atomize-css-uni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-atomize-css-uni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-atomize-css-uni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simon-He95","download_url":"https://codeload.github.com/Simon-He95/unplugin-atomize-css-uni/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-atomize-css-uni/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32012787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["tailwind","tailwindcss","uniapp"],"created_at":"2024-10-27T10:10:07.063Z","updated_at":"2026-04-19T16:01:17.189Z","avatar_url":"https://github.com/Simon-He95.png","language":"TypeScript","readme":"## unplugin-atomize-css-uni\n此插件为了解决 `uniapp` 中使用 `TailwindCSS` 或 `UnoCSS`，遇到原子化 css 语法编译到微信小程序 `wxss`，不支持`\\[`、`\\]`、`#`、`:`、`%`的问题,会将这些不能被 `wxss` 识别的 `class` 转换成以下的形式\n\n## 🌈 Options\n- 可以传入Options去覆盖原本的class名，或增加新的不能被识别需要被转换的符号\n\n## 🧰 使用\n```typescript\nimport { vitePlugin as vitePluginAtomizeCssUni } from 'unplugin-atomize-css-uni'\nplugins:[\n  vitePluginAtomizeCssUni(options)\n]\n```\n\n## ⚠️ 注意\n- 只针对.vue文件和.css文件做转换\n\n```typescript\nconst tailwindMap: Record\u003cstring, string\u003e = {\n  '[': '__brackets__',\n  ']': '__brackets__',\n  '!': '__important__',\n  ':': '__colon__',\n  '%': '__percent__',\n  '#': '__idSelector__',\n}\n```\n\n## License\n[MIT](./LICENSE) License © 2022 [Simon He](https://github.com/Simon-He95)\n\n\u003ca href=\"https://github.com/Simon-He95/sponsor\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" style=\"height: 51px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\n\n\u003cspan\u003e\u003cdiv align=\"center\"\u003e![sponsors](https://www.hejian.club/images/sponsors.jpg)\u003c/div\u003e\u003c/span\u003e\n","funding_links":["https://github.com/sponsors/Simon-He95","https://github.com/Simon-He95/sponsor"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-he95%2Funplugin-atomize-css-uni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon-he95%2Funplugin-atomize-css-uni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-he95%2Funplugin-atomize-css-uni/lists"}