{"id":19973773,"url":"https://github.com/dojo/cli-create-theme","last_synced_at":"2025-05-04T02:32:07.223Z","repository":{"id":27453107,"uuid":"113056215","full_name":"dojo/cli-create-theme","owner":"dojo","description":"This package provides tooling support for theme generation in Dojo.","archived":false,"fork":false,"pushed_at":"2022-12-02T02:47:07.000Z","size":920,"stargazers_count":2,"open_issues_count":13,"forks_count":10,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-07T15:18:09.779Z","etag":null,"topics":["cli","command","create-theme","dojo","theme"],"latest_commit_sha":null,"homepage":"","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/dojo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-04T14:56:45.000Z","updated_at":"2023-07-23T06:03:51.000Z","dependencies_parsed_at":"2023-01-14T06:47:16.282Z","dependency_job_id":null,"html_url":"https://github.com/dojo/cli-create-theme","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fcli-create-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fcli-create-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fcli-create-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fcli-create-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dojo","download_url":"https://codeload.github.com/dojo/cli-create-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224379908,"owners_count":17301525,"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":["cli","command","create-theme","dojo","theme"],"created_at":"2024-11-13T03:12:49.261Z","updated_at":"2024-11-13T03:12:49.889Z","avatar_url":"https://github.com/dojo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dojo/cli-create-theme\n\n[![Build Status](https://travis-ci.org/dojo/cli-create-theme.svg?branch=master)](https://travis-ci.org/dojo/cli-create-theme)\n[![codecov](https://codecov.io/gh/dojo/cli-create-theme/branch/master/graph/badge.svg)](https://codecov.io/gh/dojo/cli-create-theme)\n[![npm version](https://badge.fury.io/js/dojo-cli-create-theme.svg)](http://badge.fury.io/js/dojo-cli-create-theme)\n\nThis package provides tooling support for theme generation in Dojo 2.\n\nImagine a scenario in which you are using third-party widgets in your Dojo 2 application (or the widgets provided by `@dojo/widgets`) and you want to theme them to match your existing application styles. This is where the `dojo create theme` command helps you.\n\nThis package will quickly generate theme scaffolding for third party widgets.\n\n## Features\n\nAdds a `dojo create theme` command which displays an interactive instruction to ask two questions:\n\n* What Package to do you want to theme?\n* Which of the theme files would you like to scaffold?\n\nUpon successful execution of this command, `dojo create theme` creates a number of files for you in your app:\n\n* `src/themes/theme.ts`\n* `src/themes/widget/path/widget.m.css`\n\nThe latter CSS module comes ready with themable CSS selectors which you can fill in the styles for.\n\n## How do I use this package?\n\nInstall `dojo/cli-create-theme` in a Dojo 2 app:\n\n```sh\nnpm install --save-dev @dojo/cli-create-theme\n```\n\nRun the command: `dojo create theme`.\n\nFor example, if you have widgets which live in the folder: `node_modules/@dojo/widgets`, you can enter: `@dojo/widgets` as the answer to `What Package to do you want to theme?`.\n\n### Compatible packages\n\nAny package that has a `theme` directory containing `.m.css` and coresponding, compiled definition files (`.m.css.js`) is compatible.\n\n```\nnode_modules\n└── package\n    └── theme\n        │   theme-file.m.css\n        │   theme-file.m.css.js\n```\n\n## How do I contribute?\n\nWe appreciate your interest!  Please see the [Dojo 2 Meta Repository](https://github.com/dojo/meta#readme) for the Contributing Guidelines.\n\n### Code Style\n\nThis repository uses [`prettier`](https://prettier.io/) for code styling rules and formatting. A pre-commit hook is installed automatically and configured to run `prettier` against all staged files as per the configuration in the projects `package.json`.\n\nAn additional npm script to run `prettier` (with write set to `true`) against all `src` and `test` project files is available by running:\n\n```bash\nnpm run prettier\n```\n\n## Testing\n\nTest cases MUST be written using [Intern](https://theintern.github.io) using the Object test interface and Assert assertion interface.\n\n90% branch coverage MUST be provided for all code submitted to this repository, as reported by istanbul’s combined coverage results for all supported platforms.\n\nTo test locally in node run:\n\n`grunt test`\n\nTo test against browsers with a local selenium server run:\n\n`grunt test:local`\n\nTo test against BrowserStack or Sauce Labs run:\n\n`grunt test:browserstack`\n\nor\n\n`grunt test:saucelabs`\n\n## Licensing information\n\n© 2018 [JS Foundation](https://js.foundation/) \u0026 contributors. [New BSD](http://opensource.org/licenses/BSD-3-Clause) and [Apache 2.0](https://opensource.org/licenses/Apache-2.0) licenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojo%2Fcli-create-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdojo%2Fcli-create-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojo%2Fcli-create-theme/lists"}