{"id":32266559,"url":"https://github.com/purescript-react/purescript-react-basic-emotion","last_synced_at":"2026-02-23T14:32:43.963Z","repository":{"id":38271712,"uuid":"215156023","full_name":"purescript-react/purescript-react-basic-emotion","owner":"purescript-react","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-01T04:44:14.000Z","size":1143,"stargazers_count":17,"open_issues_count":8,"forks_count":6,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-02-15T14:12:01.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pursuit.purescript.org/packages/purescript-react-basic-emotion","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purescript-react.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-10-14T22:23:47.000Z","updated_at":"2023-05-24T03:58:53.000Z","dependencies_parsed_at":"2023-07-13T15:40:24.185Z","dependency_job_id":null,"html_url":"https://github.com/purescript-react/purescript-react-basic-emotion","commit_stats":null,"previous_names":["purescript-react/purescript-react-basic-emotion","lumihq/purescript-react-basic-emotion"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/purescript-react/purescript-react-basic-emotion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-emotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-emotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-emotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-emotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript-react","download_url":"https://codeload.github.com/purescript-react/purescript-react-basic-emotion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-emotion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29745579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-10-22T21:31:33.725Z","updated_at":"2026-02-23T14:32:43.951Z","avatar_url":"https://github.com/purescript-react.png","language":"PureScript","readme":"# react-basic-emotion\n\n[Emotion](https://emotion.sh/) support for [react-basic](https://github.com/lumihq/purescript-react-basic)!\n\n[![Build Status](https://github.com/lumihq/purescript-react-basic-emotion/actions/workflows/ci.yml/badge.svg)](https://github.com/lumihq/purescript-react-basic-emotion/actions/workflows/ci.yml)\n\u003ca href=\"https://pursuit.purescript.org/packages/purescript-react-basic-emotion\"\u003e\n  \u003cimg src=\"https://pursuit.purescript.org/packages/purescript-react-basic-emotion/badge\"\n       alt=\"Fixed Precision on Pursuit\"\u003e\n  \u003c/img\u003e\n\u003c/a\u003e\n\n## Example usage:\n\n```purescript\nimport React.Basic.DOM as R\nimport React.Basic.Hooks as React\nimport React.Basic.Emotion as E\n\nmyUnstyledDiv :: JSX\nmyUnstyledDiv = React.element R.div' \n    { children: [ R.text \"I have no style :(\" ] \n    }\n\nmyStyledDiv :: JSX\nmyStyledDiv = E.element R.div' \n  { className: \"stylish-div\" \n  , css: E.css \n      { color: E.str \"rebeccapurple\"\n      , padding: E.px 4\n      }\n  } \n```\n\nNote that you need to use the apostrophised variants of react components from `React.Basic.DOM` since these represent the raw `ReactComponent`s that `Emotion` expects to work with.\n\n## Going beyond what `style` can give you\n\nEmotion allows you to define real CSS rules rather than only inline styles.\nHere's an example of something you can't do with inline styles:\n\n```purescript\nmyStyle :: Style\nmyStyle = E.css \n  { \"\u0026:hover\": E.nested (E.css { background: E.str \"#fed\" })\n  }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic-emotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic-emotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic-emotion/lists"}