{"id":13563185,"url":"https://github.com/ElementUI/element-theme","last_synced_at":"2025-04-03T19:32:29.154Z","repository":{"id":12678499,"uuid":"72524982","full_name":"ElementUI/element-theme","owner":"ElementUI","description":"Theme generator cli tool for Element.","archived":false,"fork":false,"pushed_at":"2022-12-07T09:16:14.000Z","size":226,"stargazers_count":495,"open_issues_count":63,"forks_count":141,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-29T02:38:59.439Z","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/ElementUI.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-11-01T10:09:24.000Z","updated_at":"2025-03-15T18:41:11.000Z","dependencies_parsed_at":"2023-01-13T17:04:51.820Z","dependency_job_id":null,"html_url":"https://github.com/ElementUI/element-theme","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementUI%2Felement-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementUI%2Felement-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementUI%2Felement-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementUI%2Felement-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElementUI","download_url":"https://codeload.github.com/ElementUI/element-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246540519,"owners_count":20793930,"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-08-01T13:01:16.111Z","updated_at":"2025-04-03T19:32:29.116Z","avatar_url":"https://github.com/ElementUI.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# element-theme\n[![Build Status](https://travis-ci.org/ElementUI/element-theme.svg?branch=master)](https://travis-ci.org/ElementUI/element-theme)\n[![npm](https://img.shields.io/npm/v/element-theme.svg)](https://www.npmjs.com/package/element-theme)\n\n\u003e Theme generator cli tool for Element.\n\n![](./media/element.gif)\n\n\u003e The current version is compatible with element-ui@2.x. For element-ui@1.x, please check out the legacy branch.\n\n## Installation\ninstall local or global\n```shell\nnpm i element-theme -D\n```\n\ninstall `theme-chalk`\n```shell\nnpm i element-theme-chalk -D\n# or from github\nnpm i https://github.com/ElementUI/theme-chalk -D\n```\n\n## CLI\n```shell\n# init variables file\net --init [file path]\n\n# watch then build\net --watch [--config variable file path] [--out theme path]\n\n# build\net [--config variable file path] [--out theme path] [--minimize]\n```\n\n## Node API\n```javascript\nvar et = require('element-theme')\n\n// watch mode\net.watch({\n  config: 'variables/path',\n  out: 'output/path'\n})\n\n// build\net.run({\n  config: 'variables/path',\n  out: 'output/path',\n  minimize: true\n})\n```\n\n## Options\n### config\nVariable file path, default `./element-variables.css`.\n\n### out\nTheme output path, default `./theme`.\n\n### minimize\nCompressed file.\n\n### browsers\nset browsers, default `['ie \u003e 9', 'last 2 versions']`.\n\n### watch\nwatch variable file changes then build.\n\n### components\nA lists of components that you want to generate themes for.  All by default.\n\n## Config\nYou can configure some options in `element-theme` by putting it in package.json:\n```json\n{\n  \"element-theme\": {\n    \"browsers\": [\"ie \u003e 9\", \"last 2 versions\"],\n    \"out\": \"./theme\",\n    \"config\": \"./element-variables.css\",\n    \"theme\": \"element-theme-chalk\",\n    \"minimize\": false,\n    \"components\": [\"button\", \"input\"]\n  }\n}\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElementUI%2Felement-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElementUI%2Felement-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElementUI%2Felement-theme/lists"}