{"id":19538491,"url":"https://github.com/indoqa/indoqa-rebass-theme","last_synced_at":"2025-04-26T16:30:48.017Z","repository":{"id":57273511,"uuid":"70425550","full_name":"Indoqa/indoqa-rebass-theme","owner":"Indoqa","description":"A rebass theme based on material design.","archived":true,"fork":false,"pushed_at":"2016-10-13T08:37:26.000Z","size":1645,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-26T04:32:08.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://indoqa.github.io/indoqa-rebass-theme/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Indoqa.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":"2016-10-09T19:28:47.000Z","updated_at":"2024-09-27T07:36:05.000Z","dependencies_parsed_at":"2022-09-17T02:00:32.987Z","dependency_job_id":null,"html_url":"https://github.com/Indoqa/indoqa-rebass-theme","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/Indoqa%2Findoqa-rebass-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Findoqa-rebass-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Findoqa-rebass-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indoqa%2Findoqa-rebass-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Indoqa","download_url":"https://codeload.github.com/Indoqa/indoqa-rebass-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251017227,"owners_count":21523537,"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-11T02:35:02.428Z","updated_at":"2025-04-26T16:30:43.009Z","avatar_url":"https://github.com/Indoqa.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Indoqa Rebass Theme\n\nA rebass theme based on material design. See a list of already styled components in our [demo app](https://indoqa.github.io/indoqa-rebass-theme/)\n\n## Design\n\nThe theme is designed to add a basic material look and feel. It intents to be extended by a custom application theme. So the cascading order can be\n```\n\"Rebass base styles\" \u003c \"Material Theme\" \u003c \"Custom Applicaton Theme\" \u003c \"Per component styling\"\n```\n\n## Usage\n\n### Higher order component\n\nFor convenience we provide a higher order component that\n  * sets app the rebass child context\n  * merges a custom application theme into the material theme\n  * adds a root `\u003cdiv\u003e` that sets font-family to 'Roboto'\n  * adds a css file that includes the Roboto font files downloaded from Google Fonts\n\n```javascript\nimport React from 'react'\nimport MaterialProvider from 'indoqa-rebass-theme'\nimport DemoPage from './DemoPage.react'\n\nconst customTheme = {\n  Heading: {\n    marginBottom: '10px',\n    marginTop: '30px'\n  }\n}\n\nconst DemoApp = () =\u003e (\n  \u003cMaterialProvider customTheme={customTheme}\u003e\n    \u003cDemoPage /\u003e\n  \u003c/MaterialProvider\u003e\n)\n\nexport default DemoApp\n\n```  \n\n### Low level \n\nIf you only want to reuse the rebass configuration file merged with custom application styles, you can create the config object with \n```javascript\nimport createMaterialTheme from 'indoqa-rebass-theme'\nimport customTheme from './my-custom-theme.js'\n\nconst rebassConfig = createMaterialTheme(customTheme)\n....\ngetChildContext() {\n return {\n  rebass: rebassConfig\n }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findoqa%2Findoqa-rebass-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findoqa%2Findoqa-rebass-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findoqa%2Findoqa-rebass-theme/lists"}