{"id":19973774,"url":"https://github.com/dojo/themes","last_synced_at":"2025-05-04T02:32:05.506Z","repository":{"id":28517309,"uuid":"117568885","full_name":"dojo/themes","owner":"dojo","description":"Dojo Framework Themes","archived":false,"fork":false,"pushed_at":"2022-12-01T23:25:19.000Z","size":2322,"stargazers_count":11,"open_issues_count":19,"forks_count":19,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-27T15:51:17.174Z","etag":null,"topics":["dojo","framework","themes"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dojo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-15T16:28:46.000Z","updated_at":"2023-08-24T15:48:58.000Z","dependencies_parsed_at":"2023-01-14T08:58:25.041Z","dependency_job_id":null,"html_url":"https://github.com/dojo/themes","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fthemes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fthemes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fthemes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo%2Fthemes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dojo","download_url":"https://codeload.github.com/dojo/themes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252278992,"owners_count":21722804,"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":["dojo","framework","themes"],"created_at":"2024-11-13T03:12:49.303Z","updated_at":"2025-05-04T02:32:05.004Z","avatar_url":"https://github.com/dojo.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## The `@dojo/themes` repository has been deprecated. Dojo themes have been merged into [`@dojo/widgets`](https://github.com/dojo/widgets).\n\n# Dojo Themes\n\nPackage that contains a collection of Dojo themes.\n\n**Please Note:** If you are looking for Dojo 1 themes, these have been relocated to [`@dojo/dijit-themes`](https://github.com/dojo/dijit-themes). The github url registered with bower has also been updated to point to the new repository, if you encounter any issues please run `bower cache clean` and try again.\n\n## Usage\n\n### With Dojo applications\n\n1. Install `@dojo/themes` with `npm i @dojo/themes`.\n2. Import the theme CSS into your project's `main.css`: `@import '~@dojo/themes/dojo/index.css`.\n3. Import the theme module and pass it to the widgets you need themed:\n\n``` javascript\nimport theme from '@dojo/themes/dojo';\n\nrender() {\n\treturn w(Button, { theme }, [ 'Hello World' ]);\n}\n```\n\n### With custom elements\n\n1. Install `@dojo/themes` with `npm i @dojo/themes`.\n2. Add the custom element-specific theme CSS to `index.html`: `\u003clink rel=\"stylesheet\" href=\"node_modules/@dojo/themes/dojo/dojo-{version}.css\"\u003e`.\n3. Add the custom element-specific theme JS to `index.html`: `\u003cscript src=\"node_modules/@dojo/themes/dojo/dojo-{version}.js\"\u003e\u003c/script\u003e`.\n\n## Composition\n\nTo compose and extend the themes within a dojo project, run `npm i @dojo/themes` and use the `css-module` composes functionality.\nVariables can be used by using `@import` to import the `variables.css` file from a theme. This functionality is added by a `post-css` plugin within the dojo build command.\n\n``` css\n/* myButton.m.css */\n@import '@dojo/themes/dojo/variables.css';\n\n.root {\n\tcomposes: root from '@dojo/themes/dojo/button.m.css';\n\tbackground-color: var(--dojo-green);\n}\n```\n\n## Generating typings\n\nThe following `npm` scripts are available to facilitate development:\n\n- `build:tcm`: generate `.m.css.d.ts` files\n- `watch`: generate `.m.css.d.ts` files in watch mode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojo%2Fthemes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdojo%2Fthemes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojo%2Fthemes/lists"}