{"id":18510384,"url":"https://github.com/cebus-org/theme-generator","last_synced_at":"2025-05-14T11:16:21.178Z","repository":{"id":40435865,"uuid":"480638199","full_name":"cebus-org/theme-generator","owner":"cebus-org","description":"A tool used to dynamically create accessible themes.","archived":false,"fork":false,"pushed_at":"2025-03-03T12:42:04.000Z","size":156,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T08:54:24.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/cebus-org.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-12T03:22:38.000Z","updated_at":"2022-04-14T01:23:45.000Z","dependencies_parsed_at":"2023-01-21T06:01:47.180Z","dependency_job_id":"201eec7c-a8b5-4226-bbb5-e2535eca222b","html_url":"https://github.com/cebus-org/theme-generator","commit_stats":null,"previous_names":["czearing/theme-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebus-org%2Ftheme-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebus-org%2Ftheme-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebus-org%2Ftheme-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebus-org%2Ftheme-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebus-org","download_url":"https://codeload.github.com/cebus-org/theme-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129552,"owners_count":22019629,"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-06T15:23:07.403Z","updated_at":"2025-05-14T11:16:21.153Z","avatar_url":"https://github.com/cebus-org.png","language":"TypeScript","readme":"# Theme Generator\n\nA tool used to dynamically create accessible themes.\n\nAll themes are dynamically generated based on the canvas color to ensure safe contrast ratios.\n\n## Installation\n\n1. Install the `themeGenerator`.\n\nUsing NPM\n\n```\nnpm install @calebz/react-theme-generator\n```\n\nUsing Yarn\n\n```\nyarn add @calebz/react-theme-generator\n```\n\n## Input\n\n```tsx\nimport { themeGenerator } from '@calebz/react-theme-generator';\n\nconst theme = themeGenerator({\n  canvasColor: '#202020',\n  semanticColors: {\n    inherit: '#908D8D',\n    brand: '#2165da',\n  },\n});\n```\n\n## Output\n\n```tsx\n{\n  textColor: \"#dfdfdf\"\n  canvasColor: \"#202020\"\n  inherit: \"#908D8D\"\n  brand: \"#2165da\"\n  inheritHover: \"#a09d9d\"\n  inheritPressed: \"#a8a6a6\"\n  inheritBackground: \"#3c3b3b\"\n  inheritBackgroundDisabled: \"#636161\"\n  inheritDisabled: \"#585757\"\n  inheritForegroundHover: \"#242424\"\n  inheritForegroundPressed: \"#292929\"\n  brandHover: \"#477ddb\"\n  brandPressed: \"#5a8adc\"\n  brandBackground: \"#20314f\"\n  brandBackgroundDisabled: \"#214990\"\n  brandDisabled: \"#21437d\"\n  brandForegroundHover: \"#202327\"\n  brandForegroundPressed: \"#20262f\"\n  elevate: \"drop-shadow(0 0 2px rgb(223,223,223,0.12))drop-shadow(0 4px 8px rgb(223,223,223,0.14))\"\n  hoverShadow: \"0px 3px 1px -2px rgb(223,223,223,0.2), 0px 2px 2px 0px rgb(223,223,223,0.14), 0px 1px 5px 0px rgb(223,223,223,0.12)\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebus-org%2Ftheme-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebus-org%2Ftheme-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebus-org%2Ftheme-generator/lists"}