{"id":13726263,"url":"https://github.com/Astrocoders/restyled","last_synced_at":"2025-05-07T21:31:52.737Z","repository":{"id":98965677,"uuid":"108537760","full_name":"Astrocoders/restyled","owner":"Astrocoders","description":"Styled Components concept for Reason React, only works with bs-react-native for now","archived":true,"fork":false,"pushed_at":"2019-04-30T12:40:43.000Z","size":61,"stargazers_count":69,"open_issues_count":8,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-11T22:49:36.134Z","etag":null,"topics":["bucklescript","ocaml","react-native","reason","reasonml","styled-components"],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/Astrocoders.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}},"created_at":"2017-10-27T11:27:20.000Z","updated_at":"2023-03-23T07:09:24.000Z","dependencies_parsed_at":"2023-04-04T00:18:55.529Z","dependency_job_id":null,"html_url":"https://github.com/Astrocoders/restyled","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.5625,"last_synced_commit":"da132ea6ab3c967a843d23215f1aa9f6fe4a0f52"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrocoders%2Frestyled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrocoders%2Frestyled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrocoders%2Frestyled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrocoders%2Frestyled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Astrocoders","download_url":"https://codeload.github.com/Astrocoders/restyled/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224325538,"owners_count":17292697,"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":["bucklescript","ocaml","react-native","reason","reasonml","styled-components"],"created_at":"2024-08-03T01:02:57.382Z","updated_at":"2024-11-14T16:33:37.260Z","avatar_url":"https://github.com/Astrocoders.png","language":"OCaml","funding_links":[],"categories":["OCaml"],"sub_categories":[],"readme":"# bs-restyled\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/Astrocoders/restyled.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/Astrocoders/restyled.svg?branch=master)](https://travis-ci.org/Astrocoders/restyled)\n\nStyled Components concept for Reason\n\n## Install\n\n* `yarn add bs-restyled`\n* Then add it to your bs-dependencies\n\n```js\n{\n  \"name\": \"myapp\",\n  \"reason\": {\n    \"react-jsx\": 2\n  },\n  \"bs-dependencies\": [\n    \"bs-react-native\",\n    \"reason-react\",\n    \"bs-restyled\"\n  ],\n  \"bsc-flags\": [\"-bs-super-errors\"],\n}\n```\n\n## Usage\n\n```ml\nmodule Wrapper = Styled.View {\n  type styleParams = unit;\n  let style (_) =\u003e Style.(style([flex(1), flexDirection(`column), justifyContent(`center)]));\n};\n\nlet component = ReasonReact.statelessComponent(\"MyView\");\n\nlet make = (_children) =\u003e {\n  ...component,\n  render: (_self) =\u003e\n    \u003cWrapper\u003e\n      ...anything else...\n    \u003c/Wrapper\u003e\n}\n```\n\nTake a look in the [REStyled.re](https://github.com/Astrocoders/restyled/blob/master/re/REStyled.re) for more\n\n### Acknowledgments\n\nThanks everyone in Reason Discord for pointing me\ndirections and specially to Jared who proposed this\nusage to me here https://gist.github.com/jaredly/a5e0102c060b7a1b40525d41f87843a8\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAstrocoders%2Frestyled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAstrocoders%2Frestyled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAstrocoders%2Frestyled/lists"}