{"id":18264876,"url":"https://github.com/bem/yandex-ui-themer","last_synced_at":"2025-09-01T12:11:23.544Z","repository":{"id":48798376,"uuid":"309094901","full_name":"bem/yandex-ui-themer","owner":"bem","description":"A simple way to create your theme for @yandex/ui with Themekit","archived":false,"fork":false,"pushed_at":"2021-10-12T06:42:39.000Z","size":12865,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-20T19:21:42.792Z","etag":null,"topics":["themekit","yandex-ui"],"latest_commit_sha":null,"homepage":"https://bem.github.io/yandex-ui-themer","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-01T12:50:45.000Z","updated_at":"2024-10-03T01:20:25.000Z","dependencies_parsed_at":"2022-09-23T21:40:45.078Z","dependency_job_id":null,"html_url":"https://github.com/bem/yandex-ui-themer","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/bem%2Fyandex-ui-themer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fyandex-ui-themer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fyandex-ui-themer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fyandex-ui-themer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bem","download_url":"https://codeload.github.com/bem/yandex-ui-themer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247252062,"owners_count":20908616,"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":["themekit","yandex-ui"],"created_at":"2024-11-05T11:16:21.881Z","updated_at":"2025-04-04T21:31:01.052Z","avatar_url":"https://github.com/bem.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yandex-ui-themer\n\nA simple way to create your theme for [@yandex/ui](https://github.com/bem/yandex-ui) with [Themekit](https://github.com/yarastqt/themekit)\n\n![](https://user-images.githubusercontent.com/6236209/97804446-11bdf800-1c61-11eb-8382-9b7d78e2f773.gif)\n\n## How to add new component to Theme Constructor\n\n1. Update *@yandex/ui* to version where the component is introduced\n\n```bash\nnpm i @yandex/ui@latest\n```\n\n2. Rebuild theme tokens\n\n```bash\nnpm ci\nnpm run tokens:build\n```\n\n3. Add new component into *componentList* in *themekit.config.js*\n\n\u003e **_NOTE:_**  It is better to add components in alphabetical order.\n\n```javascript\nconst componentsList = [\n  \"attach\",\n  \"badge\",\n  ...,\n  \"componentName\"\n  ...\n]\n```\n\n4. Add the showcase for the component in *src/components/Showcase/Showcases/ComponentShowcase.tsx*\n\n\u003e **_NOTE:_** Showcase should cover all possible tokens of the component. Otherwise, designers could not tune all of the tokens in Theme Constructor.\n\n```javascript\nimport React from 'react';\nimport { Component } from '@yandex/ui/Component/desktop/bundle';\n\nimport { Headline } from '../../Headline';\n\nexport const ComponentShowcase = () =\u003e {\n    return (\n        \u003cHeadline\u003eComponentName\u003c/Headline\u003e\n        \u003cdiv className=\"Showcase-Item\"\u003e\n            \u003cComponent /\u003e\n        \u003c/div\u003e\n    )\n}\n```\n\n5. Add the component showcase to *componentsMap* in *src/components/Showcase/Showcase.tsx*\n\n```javascript\nimport { ComponentShowcase } from './Showcases/ComponentShowcase';\n\nconst componentsMap: Record\u003cstring, ComponentType\u003e = {\n    button: ButtonShowcase,\n    buttonGroup: ButtonGroupShowcase,\n    ...,\n    component: ComponentShowcase,\n    ...\n}\n```\n\n## License\n\n[MPL-2.0](https://github.com/bem/yandex-ui-themer/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbem%2Fyandex-ui-themer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbem%2Fyandex-ui-themer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbem%2Fyandex-ui-themer/lists"}