{"id":13826939,"url":"https://github.com/lucagez/Debucsser","last_synced_at":"2025-07-09T02:32:57.054Z","repository":{"id":55465509,"uuid":"155976504","full_name":"lucagez/Debucsser","owner":"lucagez","description":" CSS debugging tool with an unpronounceable name","archived":false,"fork":false,"pushed_at":"2019-04-04T14:35:50.000Z","size":2446,"stargazers_count":1011,"open_issues_count":2,"forks_count":39,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-15T00:02:31.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/lucagez.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":"2018-11-03T11:25:45.000Z","updated_at":"2024-11-12T01:43:16.000Z","dependencies_parsed_at":"2022-08-15T01:00:41.615Z","dependency_job_id":null,"html_url":"https://github.com/lucagez/Debucsser","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/lucagez%2FDebucsser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucagez%2FDebucsser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucagez%2FDebucsser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucagez%2FDebucsser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucagez","download_url":"https://codeload.github.com/lucagez/Debucsser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225481098,"owners_count":17481151,"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-04T09:01:47.151Z","updated_at":"2024-11-20T06:30:38.511Z","avatar_url":"https://github.com/lucagez.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"\n![](/gif/debucsser.gif)\n\n# DebuCSSer\n\nCSS debugging tool with an unpronounceable name.\n\n### [Codepen Demo](https://codepen.io/lucagez/full/LMEerQ)\n\n## Installation\n\nIf you are using a bundler:\n\n`npm install debucsser`\n\nAlternatively: download debucsser.js in /module folder and link it in your HTML.\n\n_**A chrome extension is under development**_\n\n## Why\n\nDebucsser is a simple CSS debugging tool made to be unobtrusive in your workflow.\n\nI often find myself applying an \"outline\" to a lot of elements on the page to see their dimensions.\n\nWith Debucsser I simply hold **`CTRL`** and move my mouse around to see the dimensions in px and apply an outline class to every element I hover.\n\nIf you  hold **`CTRL`** + **`SHIFT`** you apply the outline class to all the elements on the page by adding a global class.\n\nYou can configure some parameters.\n\nI find handy the possibility to specify a custom class I want to apply to different elements without the need to comment and uncomment the my css files.\n\n## Usage\n\n```javascript\n// only if you installed via NPM\nimport Debucsser from 'debucsser';\n\n// pass all the custom properties you want\nconst config = {\n  color: 'palevioletred', // color of the outline\n  width: '4px', // width of the outline\n  grayscaleOnDebugAll: true, // apply grayscale filter to every element \n  customClass: 'exampleClass',  // a class existent in your stylesheet\n}\n\n// init the debugger\nconst debug = new Debucsser(config).init();\n```\n\nWhen you have done this, simply hold **`CTRL`** or **`CTRL`** + **`SHIFT`** and move the mouse around on the page.\n\n## Props\n\n|       property        |  propType    |    default    |                              description                              |\n| :-------------------- | ------------  | ------------: | :-------------------------------------------------------------------- |\n| `color`               | { string }   | palevioletred | Outline color.                                                        |\n| `width`               | { string }   | 3px           | Outline width.                                                        |\n| `style`               | { string }   | solid         | Outline style.                                                        |\n| `grayscaleOnDebug`    | { bool }  | false         | Apply grayscale filter on hovered element while holding `CTRL`.       |\n| `grayscaleOnDebugAll` | { bool }  | false         | Apply grayscale filter on all elements while holding `CTRL` + `SHIFT`.|\n| `customClass`         | { string }   | null          | Apply custom class on hovered element while holding `CTRL`.           |\n| `mainKey`             | {number}    | 17            | Set the key to use alternatively to `CTRL`.                           |\n| `secondKey`           | {number}    | 16            | Set the key to use alternatively to `SHIFT`.                          |\n\n## Contributing\n\nFork ➡ new branch ➡ PR 🎉\n\n**TODO:**\n\n- [ ] Make a usable chrome extension (very experimental by now)\n- [ ] Improve default styling of label\n\nIf you have any idea on how to make Debucsser better don't hesitate 😎\n\n#### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucagez%2FDebucsser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucagez%2FDebucsser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucagez%2FDebucsser/lists"}