{"id":13480538,"url":"https://github.com/phthhieu/re-tailwind","last_synced_at":"2025-06-19T20:39:31.207Z","repository":{"id":35171700,"uuid":"216593137","full_name":"phthhieu/re-tailwind","owner":"phthhieu","description":"Brings TailwindCSS https://tailwindcss.com to ReasonML","archived":false,"fork":false,"pushed_at":"2023-03-03T12:42:19.000Z","size":587,"stargazers_count":118,"open_issues_count":7,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-19T20:22:16.812Z","etag":null,"topics":["reasonml","tailwind","tailwind-css"],"latest_commit_sha":null,"homepage":"https://phthhieu.github.io/re-tailwind","language":"Reason","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/phthhieu.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}},"created_at":"2019-10-21T14:46:58.000Z","updated_at":"2024-11-05T00:47:40.000Z","dependencies_parsed_at":"2024-01-06T07:44:03.757Z","dependency_job_id":"397bc5bf-262e-4955-9001-7ed3fbf8aa94","html_url":"https://github.com/phthhieu/re-tailwind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phthhieu/re-tailwind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phthhieu%2Fre-tailwind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phthhieu%2Fre-tailwind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phthhieu%2Fre-tailwind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phthhieu%2Fre-tailwind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phthhieu","download_url":"https://codeload.github.com/phthhieu/re-tailwind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phthhieu%2Fre-tailwind/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260827111,"owners_count":23068905,"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":["reasonml","tailwind","tailwind-css"],"created_at":"2024-07-31T17:00:41.005Z","updated_at":"2025-06-19T20:39:26.192Z","avatar_url":"https://github.com/phthhieu.png","language":"Reason","funding_links":[],"categories":["Tools","Reason"],"sub_categories":[],"readme":"# re-tailwind\nReasonML utility to generate Tailwind classes\n\n## Install\n\n```\nnpm install --save re-tailwind\n```\n\nAdd re-tailwind to `bs-dependencies` in `bsconfig.json`\n\n## Usage\n\n1. Ensure your app already import tailwind css\n\n```reason\n[%bs.raw {|require(\"tailwindcss/dist/tailwind.min.css\")|}];\n```\n\n2. Use function TW.make to construct your tailwind classnames:\n\n```reason\nmodule Example = {\n  [@react.component]\n  let make = () =\u003e {\n    \u003cdiv className=TW.([Display(Flex), Float(FloatRight)] |\u003e make)\u003e\n      {ReasonReact.string(\"Hello Example\")}\n    \u003c/div\u003e;\n  };\n};\n\n```\n\n[More examples](../master/examples)\n\n## Credits\n- [Typed tailwind](https://github.com/dvkndn/typed-tailwind) which has the same purpose to this project but in TypeScript\n\n## Next works:\n- Tailwind PPX\n- Auto generate ReasonML code for Tailwind CSS by user config\n\n## License\n[MIT](https://choosealicense.com/licenses/mit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphthhieu%2Fre-tailwind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphthhieu%2Fre-tailwind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphthhieu%2Fre-tailwind/lists"}