{"id":22377037,"url":"https://github.com/jerosoler/cornerbox","last_synced_at":"2025-06-29T08:37:52.459Z","repository":{"id":57209485,"uuid":"338891204","full_name":"jerosoler/cornerbox","owner":"jerosoler","description":"🎨 CSS Houdini corner box","archived":false,"fork":false,"pushed_at":"2021-02-18T19:41:07.000Z","size":42,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T16:11:57.782Z","etag":null,"topics":["css","css-houdini","csshoudini","houdini","paintworklet"],"latest_commit_sha":null,"homepage":"https://jerosoler.github.io/cornerbox/","language":"HTML","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/jerosoler.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":"2021-02-14T20:05:52.000Z","updated_at":"2024-10-16T00:11:53.000Z","dependencies_parsed_at":"2022-09-18T01:55:48.225Z","dependency_job_id":null,"html_url":"https://github.com/jerosoler/cornerbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jerosoler/cornerbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcornerbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcornerbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcornerbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcornerbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerosoler","download_url":"https://codeload.github.com/jerosoler/cornerbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcornerbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262565849,"owners_count":23329653,"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":["css","css-houdini","csshoudini","houdini","paintworklet"],"created_at":"2024-12-04T22:12:33.585Z","updated_at":"2025-06-29T08:37:52.434Z","avatar_url":"https://github.com/jerosoler.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub license](https://img.shields.io/github/license/jerosoler/cornerbox)](https://github.com/jerosoler/cornerbox/blob/main/LICENSE)\n\n# CornerBox \nCSS Houdini library. \n\n\n[PLAY](https://jerosoler.github.io/cornerbox/)\n\n![Demo](https://github.com/jerosoler/cornerbox/raw/main/docs/cornerbox.png)\n\n## CDN\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/jerosoler/cornerbox/CornerBox.js\"\u003e\u003c/script\u003e\n```\n\n## NPM \n```bash\nnpm install cornerbox\n```\n\n## How to use\n\nDownload `Cornerbox.js` file.\n\n### Javascript:\n```javascript\nif ('paintWorklet' in CSS \u0026\u0026 'registerProperty' in CSS \u0026\u0026 'CSSUnitValue' in window) {\n            CSS.registerProperty({\n                name: '--cornerbox-width',\n                syntax: '\u003clength\u003e',\n                initialValue: '10px',\n                inherits: false\n            });\n            CSS.registerProperty({\n                name: '--cornerbox-length',\n                syntax: '\u003clength\u003e',\n                initialValue: '10px',\n                inherits: false\n            });\n            CSS.registerProperty({\n                name: '--cornerbox-color',\n                syntax: '\u003ccolor\u003e',\n                initialValue: '#ffffff',\n                inherits: false\n            });\n\n            CSS.paintWorklet.addModule('CornerBox.js');\n        } else {\n            console.log(\"Not Supported\");\n            alert(\"Not Supported\");\n        }\n```\n\n### CSS \n```css\ndiv {\n    --cornerbox-color:#1100fc;\n    --cornerbox-width: 5px;\n    --cornerbox-length: 15px;\n    background-image: paint(cornerbox);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerosoler%2Fcornerbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerosoler%2Fcornerbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerosoler%2Fcornerbox/lists"}