{"id":19675921,"url":"https://github.com/yezihaohao/babel-plugin-transform-jsxstyle","last_synced_at":"2026-04-17T04:31:57.806Z","repository":{"id":35077951,"uuid":"204247443","full_name":"yezihaohao/babel-plugin-transform-jsxstyle","owner":"yezihaohao","description":"jsx style tag transform plugin.  demo: https://stupefied-bartik-36dc04.netlify.com/","archived":false,"fork":false,"pushed_at":"2023-01-04T08:04:33.000Z","size":3458,"stargazers_count":0,"open_issues_count":39,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T21:37:17.137Z","etag":null,"topics":["ast","babel","babel-plugin","complier"],"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/yezihaohao.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}},"created_at":"2019-08-25T04:49:21.000Z","updated_at":"2019-09-01T15:22:25.000Z","dependencies_parsed_at":"2023-01-15T13:31:00.502Z","dependency_job_id":null,"html_url":"https://github.com/yezihaohao/babel-plugin-transform-jsxstyle","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/yezihaohao%2Fbabel-plugin-transform-jsxstyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yezihaohao%2Fbabel-plugin-transform-jsxstyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yezihaohao%2Fbabel-plugin-transform-jsxstyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yezihaohao%2Fbabel-plugin-transform-jsxstyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yezihaohao","download_url":"https://codeload.github.com/yezihaohao/babel-plugin-transform-jsxstyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240985516,"owners_count":19889107,"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":["ast","babel","babel-plugin","complier"],"created_at":"2024-11-11T17:26:22.599Z","updated_at":"2026-04-17T04:31:52.785Z","avatar_url":"https://github.com/yezihaohao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to babel-plugin-transform-jsxstyle 👋\n\n![Version](https://img.shields.io/npm/v/babel-plugin-transform-jsxstyle.svg)\n[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/yezihaohao/babel-plugin-transform-jsxstyle#readme)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/yezihaohao/babel-plugin-transform-jsxstyle/graphs/commit-activity)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/yezihaohao/babel-plugin-transform-jsxstyle/blob/master/LICENSE)\n\n\u003e babel plugin transform jsxstyle htmltag\n\n### 🏠 [Homepage](https://github.com/yezihaohao/babel-plugin-transform-jsxstyle#readme)\n\n## Install\n\n```js\nyarn add babel-plugin-transform-jsxstyle --dev\n// or\nnpm i babel-plugin-transform-jsxstyle --dev\n```\n\n## Usage\n\n```js\n// 1st config\n// add plugin into babel plugins property\n// eg:\n\"plugins\": [\n    \"babel-plugin-transform-jsxstyle\"\n]\n// 2nd use\n\u003cstyle-less\u003e{`\n    @primary: #f25e5e;\n    @primary-hover: #f7a250;\n    a {\n        color: @primary;\n        \u0026:hover {\n            color: @primary-hover;\n        }\n    }\n`}\u003c/style-less\u003e\n// it will be transformed into below\n\u003cstyle\u003e{`\n    a {\n        color: #f25e5e\n    }\n    a:hover {\n        color: #f7a250;\n    }\n`}\u003c/style\u003e\n\n// alternatively, you can write sass if u like\n\u003cstyle-sass\u003e{`\n    $primary: #eb2f96;\n    $primary-hover: #722ed1;\n    a {\n        color: $primary;\n        \u0026:hover {\n            color: $primary-hover;\n        }\n    }\n`}\u003c/style-sass\u003e\n```\n## Demo\n\n[example](https://github.com/yezihaohao/babel-plugin-transform-jsxstyle/tree/master/example)\n\n## Author\n\n👤 **yezihaohao**\n\n-   Github: [@yezihaohao](https://github.com/yezihaohao)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\nFeel free to check [issues page](https://github.com/yezihaohao/babel-plugin-transform-jsxstyle/issues).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nCopyright © 2019 [yezihaohao](https://github.com/yezihaohao).\n\nThis project is [MIT](https://github.com/yezihaohao/babel-plugin-transform-jsxstyle/blob/master/LICENSE) licensed.\n\n---\n\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyezihaohao%2Fbabel-plugin-transform-jsxstyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyezihaohao%2Fbabel-plugin-transform-jsxstyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyezihaohao%2Fbabel-plugin-transform-jsxstyle/lists"}