{"id":21942071,"url":"https://github.com/richardzcode/a-theme-react","last_synced_at":"2025-04-22T18:11:37.361Z","repository":{"id":57143470,"uuid":"112697527","full_name":"richardzcode/a-theme-react","owner":"richardzcode","description":"AWS Amplify themes for React","archived":false,"fork":false,"pushed_at":"2017-12-03T07:28:20.000Z","size":1671,"stargazers_count":21,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T05:19:50.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/richardzcode.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":"2017-12-01T05:09:59.000Z","updated_at":"2021-05-06T01:42:26.000Z","dependencies_parsed_at":"2022-09-03T18:41:20.530Z","dependency_job_id":null,"html_url":"https://github.com/richardzcode/a-theme-react","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/richardzcode%2Fa-theme-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fa-theme-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fa-theme-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardzcode%2Fa-theme-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardzcode","download_url":"https://codeload.github.com/richardzcode/a-theme-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296175,"owners_count":21407037,"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":[],"created_at":"2024-11-29T03:16:23.690Z","updated_at":"2025-04-22T18:11:37.315Z","avatar_url":"https://github.com/richardzcode.png","language":"JavaScript","readme":"# A Theme React\n\nAWS Amplify UI is theme based. Developers are able to customize UI with theme.\n\nHere we build alternative themes for AWS Amplify.\n\n* [Install](#install)\n* [Apply](#apply)\n* [Themes](#themes)\n  - [Bootstrap](#bootstrap)\n  - [Instagram](#instagram)\n* [Example](#example)\n\n## Install\n\n```\nnpm install --save a-theme-react\n```\n\n## Apply\n\nAWS Amplify UI is theme\n\n```\nimport { Bootstrap } from 'a-theme-react';\n\n\u003cAuthenticator theme={Bootstrap} /\u003e\n```\n\n## Themes\n\n### Bootstrap\n\nA theme base on default Bootstrap theme CSS.\n\n\u003cimg src=\"media/a_theme_bootstrap.png\" width=\"360\" /\u003e\n\n```\nimport { Bootstrap } from 'a-theme-react';\n\n\u003cAuthenticator theme={Bootstrap} /\u003e\n```\n\n**FontAwsome Icons**\n\n`Bootstrap` theme uses icons from [Font Awesome](http://fontawesome.io/). [react-fontawesome](https://github.com/danawoodman/react-fontawesome) does not include CSS. So you have to include the CSS by yourself. One way is from [CDN](https://www.bootstrapcdn.com/fontawesome/).\n\nFor example add this line to HTML file:\n```\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\" /\u003e\n```\n\nThe icons won't display without the CSS file. Everything else is not affected.\n\n### Instagram\n\nA theme imitates [Instagram](https://www.instagram.com)\n\n\u003cimg src=\"media/a_theme_instagram.png\" width=\"360\" /\u003e\n\n```\nimport { Instagram } from 'a-theme-react';\n\n\u003cAuthenticator theme={Instagram} /\u003e\n```\n\n**CSS Pseudo-Elements**\n\nOne of the limitation in React inline styling is no pseudo-elements.\n\nAmong CSS pseudo-elements, `::before` and `::after` are the two most frequent used. AWS Amplify UI is made to support these two.\n\nHere we take benefit of `before` and `after` to make this theme possible.\n\nExample:\n\n```\nconst beforeImg = (\n    \u003cimg\n        src={screenshot5}\n        style={{\n            width: '216px',\n            marginTop: '87px',\n            marginLeft: '79px',\n            height: '393px'\n        }}\n    /\u003e\n)\n\nexport const FormSection = {\n    margin: '0 0 10px',\n    color: '#262626',\n    backgroundColor: '#fff',\n    border: '1px solid #e6e6e6',\n    borderRadius: '1px',\n    textAlign: 'center',\n    width: '350px',\n    display: 'inline-block',\n    verticalAlign: 'middle',\n    before: {\n        content: beforeImg,\n        display: 'inline-block',\n        width: '400px',\n        height: '560px',\n        verticalAlign: 'middle',\n        backgroundImage: 'url(' + home_phone + ')',\n        backgroundSize: '400px 560px'\n    }\n}\n```\n\n## Example\n\n`example/` folder is a basic React app with theme\n\n```\ngit clone https://github.com/richardzcode/a-theme-react.git\ncd a-theme-react/example\nnpm install\nnpm start\n```\n\nThen copy `aws-exports.js` file to `src/` folder for AWS Amplify to work.\n\n**Other themes**\n\nThe example uses `Bootstrap` theme. Modify `src/index.js` for other themes.\n\n```\nimport { Instagram as theme } from 'a-theme-react'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardzcode%2Fa-theme-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardzcode%2Fa-theme-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardzcode%2Fa-theme-react/lists"}