{"id":20401185,"url":"https://github.com/sohanemon/env-mui-emotinon-styled-component","last_synced_at":"2026-05-05T14:32:29.441Z","repository":{"id":151083422,"uuid":"552491942","full_name":"sohanemon/env-mui-emotinon-styled-component","owner":"sohanemon","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-18T05:06:47.000Z","size":338,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T19:48:54.060Z","etag":null,"topics":["codemon","emotion","env","environment-variables","firebase","material-ui","mui","react-router","styled","styled-components"],"latest_commit_sha":null,"homepage":"https://firebase-kickstart.netlify.app/","language":"JavaScript","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/sohanemon.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-16T18:03:30.000Z","updated_at":"2022-12-30T14:53:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b6a240f-586b-4b5d-809d-ec302c571b08","html_url":"https://github.com/sohanemon/env-mui-emotinon-styled-component","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sohanemon/env-mui-emotinon-styled-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fenv-mui-emotinon-styled-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fenv-mui-emotinon-styled-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fenv-mui-emotinon-styled-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fenv-mui-emotinon-styled-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sohanemon","download_url":"https://codeload.github.com/sohanemon/env-mui-emotinon-styled-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fenv-mui-emotinon-styled-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32653535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["codemon","emotion","env","environment-variables","firebase","material-ui","mui","react-router","styled","styled-components"],"created_at":"2024-11-15T04:48:15.988Z","updated_at":"2026-05-05T14:32:29.425Z","avatar_url":"https://github.com/sohanemon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Store sensitive data in env\n\n- create .env in the root folder\n- start variable name with REACT*APP*\n- to assign with variable use `=`\n\n```js\nREACT_APP_API_KEY = RzsfaSyCcersTVXesA_HMprI6fyweQewrlvhqQjT44;\n```\n\n- no `\" ' ` should be used\n- variables are stored in `process.env` object\n- access them as follow\n\n```js\nconsole.log(process.env.REACT_APP_API_KEY);\n```\n\n\u003e must restart the app to see the changes.\n\n# Emotion \u0026 Styled-Component\n\n- create a component\n\n```js\nconst MyButton = styled.button`\n  background-color: red;\n  }\n`;\n```\n\n- set hover effect in the component\n\n```js\nconst MyButton = styled.button`\n  \u0026:hover {\n    background-color: #e34133;\n  }\n`;\n```\n\n\u003e `\u0026:hover` should be trimmed i.e no space between\n\n- use of props\n\n```js\nconst MyButton = styled.button`\n  background-color: ${(args) =\u003e args.bg};\n  padding: ${({ p }) =\u003e p};\n`;\nreturn (\n  \u003c\u003e\n    \u003cMyButton bg='#4081ec' p='5px' variant='contained'\u003e\n      \u003cGoogleIcon /\u003e Continue With Google\n    \u003c/MyButton\u003e\n  \u003c/\u003e\n);\n```\n\n\u003e the passing args names should be same to the props\n\n- modify existing components like `mui`\n\n```js\nconst MyButton = styled(Button)`\n  background-color: ${({ bg }) =\u003e bg};\n  \u0026:focus {\n    background-color: #e34133;\n  }\n`;\n```\n\n\u003e styling Mui Button\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohanemon%2Fenv-mui-emotinon-styled-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohanemon%2Fenv-mui-emotinon-styled-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohanemon%2Fenv-mui-emotinon-styled-component/lists"}