{"id":22377032,"url":"https://github.com/jerosoler/css-houdini-pixel-box","last_synced_at":"2025-08-01T14:12:14.589Z","repository":{"id":41547606,"uuid":"376920403","full_name":"jerosoler/css-houdini-pixel-box","owner":"jerosoler","description":"👾 Pixel Box CSS Houdini PaintWorklet 👾","archived":false,"fork":false,"pushed_at":"2021-06-15T17:32:04.000Z","size":69,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-01T01:49:53.890Z","etag":null,"topics":["8bit","css","css-houdini","csshoudini","gaming","houdini","houdini-css-paint","nes","paintworklet","pixel","pixel-art","retro"],"latest_commit_sha":null,"homepage":"https://jerosoler.github.io/css-houdini-pixel-box/","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":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://paypal.me/jerosoler"]}},"created_at":"2021-06-14T18:30:00.000Z","updated_at":"2025-05-19T06:40:19.000Z","dependencies_parsed_at":"2022-09-06T08:01:53.000Z","dependency_job_id":null,"html_url":"https://github.com/jerosoler/css-houdini-pixel-box","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jerosoler/css-houdini-pixel-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcss-houdini-pixel-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcss-houdini-pixel-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcss-houdini-pixel-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcss-houdini-pixel-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerosoler","download_url":"https://codeload.github.com/jerosoler/css-houdini-pixel-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerosoler%2Fcss-houdini-pixel-box/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267960679,"owners_count":24172506,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["8bit","css","css-houdini","csshoudini","gaming","houdini","houdini-css-paint","nes","paintworklet","pixel","pixel-art","retro"],"created_at":"2024-12-04T22:12:32.028Z","updated_at":"2025-07-30T23:31:47.718Z","avatar_url":"https://github.com/jerosoler.png","language":"HTML","funding_links":["https://paypal.me/jerosoler"],"categories":[],"sub_categories":[],"readme":"[![GitHub license](https://img.shields.io/github/license/jerosoler/css-houdini-pixel-box)](https://github.com/jerosoler/css-houdini-pixel-box/blob/master/LICENSE)\n\n# PixelBox\n\nCSS Houdini library.\n\n[PLAY DEMO](https://jerosoler.github.io/css-houdini-pixel-box/)\n\n![Demo buttons](https://github.com/jerosoler/css-houdini-pixel-box/raw/master/docs/buttons.png)\n\n![Demo combine](https://github.com/jerosoler/css-houdini-pixel-box/raw/master/docs/combine.png)\n\n## CDN\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/jerosoler/css-houdini-pixel-box/pixelbox.js\"\u003e\u003c/script\u003e\n```\n\n## NPM\n\n```bash\nnpm install css-houdini-pixel-box\n```\n\n## How to use\n\nDownload `pixelbox.js` file.\n\n### Polyfill\n\nView support in [caniuse](https://caniuse.com/mdn-api_css_paintworklet)\n\n```html\n\u003cscript src=\"https://unpkg.com/css-paint-polyfill\"\u003e\u003c/script\u003e\n```\n\n### Javascript:\n\n```javascript\nif (\n  \"paintWorklet\" in CSS \u0026\u0026\n  \"registerProperty\" in CSS \u0026\u0026\n  \"CSSUnitValue\" in window\n) {\n  CSS.registerProperty({\n    name: \"--pixelbox-border\",\n    syntax: \"\u003clength\u003e\",\n    initialValue: \"2px\",\n    inherits: false,\n  });\n\n  CSS.registerProperty({\n    name: \"--pixelbox-border-radius\",\n    syntax: \"\u003clength\u003e\",\n    initialValue: \"0px\",\n    inherits: false,\n  });\n\n  CSS.registerProperty({\n    name: \"--pixelbox-border-color\",\n    syntax: \"\u003ccolor\u003e\",\n    initialValue: \"#000000\",\n    inherits: false,\n  });\n\n  CSS.registerProperty({\n    name: \"--pixelbox-background-color\",\n    syntax: \"\u003ccolor\u003e\",\n    initialValue: \"#ffffff\",\n    inherits: false,\n  });\n\n  CSS.registerProperty({\n    name: \"--pixelbox-background-shadow-border\",\n    syntax: \"\u003clength\u003e\",\n    initialValue: \"0px\",\n    inherits: false,\n  });\n\n  CSS.registerProperty({\n    name: \"--pixelbox-background-shadow-color\",\n    syntax: \"\u003ccolor\u003e\",\n    initialValue: \"#adafbc\",\n    inherits: false,\n  });\n\n  /*CSS.registerProperty({\n        name: '--pixelbox-background-shadow-position',\n        syntax: '\u003cstring\u003e',\n        initialValue: 'bottom-right',\n        inherits: false\n    });\n    */\n} else {\n  console.log(\"Not Supported\");\n}\nCSS.paintWorklet.addModule(\"pixelbox.js\");\n```\n\n### CSS\n\n```css\ndiv {\n  display: inline-block;\n  width: 200px;\n  height: 200px;\n  text-align: center;\n  line-height: 200px;\n  color: white;\n  background-image: paint(pixelbox);\n  --pixelbox-border: 10px;\n  --pixelbox-border-radius: 5px;\n  --pixelbox-border-color: #a0a0a0;\n  --pixelbox-background-color: #000000;\n  --pixelbox-background-shadow-border: 20px;\n  --pixelbox-background-shadow-color: #494949;\n  --pixelbox-background-shadow-position: bottom-right;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerosoler%2Fcss-houdini-pixel-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerosoler%2Fcss-houdini-pixel-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerosoler%2Fcss-houdini-pixel-box/lists"}