{"id":15946365,"url":"https://github.com/knowler/design-mode-element","last_synced_at":"2026-04-18T10:35:40.554Z","repository":{"id":235538913,"uuid":"729298007","full_name":"knowler/design-mode-element","owner":"knowler","description":"Work in progress. A custom element that switches on Design Mode and allows you to save the changes to your filesystem.","archived":false,"fork":false,"pushed_at":"2023-12-08T20:52:59.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T10:28:37.596Z","etag":null,"topics":["custom-elements","web-components"],"latest_commit_sha":null,"homepage":"https://knowler.github.io/design-mode-element/demo","language":"JavaScript","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/knowler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-12-08T20:52:45.000Z","updated_at":"2023-12-09T01:32:45.000Z","dependencies_parsed_at":"2024-04-23T19:36:57.516Z","dependency_job_id":"fde05d10-527f-4fff-918d-c316c5fc6ad0","html_url":"https://github.com/knowler/design-mode-element","commit_stats":null,"previous_names":["knowler/design-mode-element"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fdesign-mode-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fdesign-mode-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fdesign-mode-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fdesign-mode-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowler","download_url":"https://codeload.github.com/knowler/design-mode-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247087818,"owners_count":20881468,"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":["custom-elements","web-components"],"created_at":"2024-10-07T09:21:21.032Z","updated_at":"2025-10-18T02:42:40.224Z","avatar_url":"https://github.com/knowler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Design Mode Element\n\nA custom element to switch [design mode](https://developer.mozilla.org/en-US/docs/Web/API/Document/designMode) on and off. Also, allows you to save your changes. **Work in progress! API and functionality subject to change.** See the [demo](https://knowler.github.io/design-mode-element/demo).\n\n## Defining\n\nDefine it the standard way or use the helper method:\n\n```javascript\nimport { DesignModeElement } from \"https://esm.sh/gh/knowler/design-mode-element/design-mode-element.js?raw\";\n\nDesignModeElement.define();\n```\n\nYou can pass in your own tag name if you’d like.\n\n## Usage\n\n```html\n\u003cdesign-mode\u003e\u003c/design-mode\u003e\n```\n\nStart with it on:\n\n```html\n\u003cdesign-mode on\u003e\u003c/design-mode\u003e\n```\n\n## Customization\n\nI’ll probably add some slots for providing your own elements in the future. For now the parts are exposed.\n\n```css\ndesign-mode::part(design-mode-toggle) {\n\tfont-family: Comic Sans MS;\n}\n\ndesign-mode::part(save-changes-button) {\n\tcolor: DeepPink;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fdesign-mode-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowler%2Fdesign-mode-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fdesign-mode-element/lists"}