{"id":14982166,"url":"https://github.com/yifaneye/checkboxes","last_synced_at":"2025-10-29T11:31:17.173Z","repository":{"id":40823039,"uuid":"273553354","full_name":"yifaneye/checkboxes","owner":"yifaneye","description":"Checkboxes ✅ with customisable color, size, border radius and animation time","archived":false,"fork":false,"pushed_at":"2022-12-11T22:03:29.000Z","size":1706,"stargazers_count":9,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-28T06:42:01.210Z","etag":null,"topics":["browser-compatibility","checkbox","checkboxes","css","customizable","customization","gulpjs","npm","sass","scss"],"latest_commit_sha":null,"homepage":"http://yifanai.com/cbs","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/yifaneye.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":"2020-06-19T17:42:21.000Z","updated_at":"2024-09-07T17:51:29.000Z","dependencies_parsed_at":"2023-01-27T07:45:34.106Z","dependency_job_id":null,"html_url":"https://github.com/yifaneye/checkboxes","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/yifaneye%2Fcheckboxes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yifaneye%2Fcheckboxes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yifaneye%2Fcheckboxes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yifaneye%2Fcheckboxes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yifaneye","download_url":"https://codeload.github.com/yifaneye/checkboxes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857795,"owners_count":16556052,"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":["browser-compatibility","checkbox","checkboxes","css","customizable","customization","gulpjs","npm","sass","scss"],"created_at":"2024-09-24T14:04:54.142Z","updated_at":"2025-10-29T11:31:16.760Z","avatar_url":"https://github.com/yifaneye.png","language":"HTML","readme":"# Checkboxes\n\nA library for customizable checkboxes ✅\n\n👉 [Website Demo](https://unpkg.com/checkboxes@1.3.3/dist/checkboxes.html)\n\n## Background\n\nDifferent browsers have different implementations for checkboxes:\n\nSee [this post](https://stackoverflow.com/questions/24322599/why-cannot-change-checkbox-color-whatever-i-do) about not able to style checkboxes. 😭\n\n![checkbox on Safari](https://yifanai.s3-ap-southeast-2.amazonaws.com/checkboxes/safari.jpg)\n![checkbox on Chrome](https://yifanai.s3-ap-southeast-2.amazonaws.com/checkboxes/chrome.jpg)\n![checkbox on Firefox](https://yifanai.s3-ap-southeast-2.amazonaws.com/checkboxes/firefox.jpg)\n![checkbox on Opera](https://yifanai.s3-ap-southeast-2.amazonaws.com/checkboxes/opera.jpg)\n![checkbox on Edge](https://yifanai.s3-ap-southeast-2.amazonaws.com/checkboxes/edge.jpg)\n\nChrome uses the thick white tick, while Safari, Opera, Edge and Firefox all use the thin white tick. 😢\n\nIn addition, Safari, Opera and Edge use user's preferred Accent colour (from System Preferences on a Mac) as background for the checkboxes, whereas Chrome and Firefox stick with blue background. 🤯\n\n![macOS System Preferences](https://yifanai.s3-ap-southeast-2.amazonaws.com/checkboxes/preferences.jpg)\n\nThese checkboxes by browsers are styled by User Agent style sheets and they can not be overridden easily. 😕 \\\nThus, these checkboxes can hardly match the logo and theme colour of a website or a system! 😩\n\nAfter some work, I successfully styled the checkboxes for our company's website. 😀 \\\nSee [my reflection tweet](https://twitter.com/yifaneye/status/1273599758129483776).\n\nI would like to style them with ease in the future and for everyone, hence the creation of this small side project. 🙌\n\n![checkboxes demo](https://yifanai.s3-ap-southeast-2.amazonaws.com/checkboxes/checkboxes.gif)\n\nThere are now a couple of customizable options for the checkboxes. And many more to come!\n\n## Getting Started\n\n### Using CDN\n\nAdd this line to HTML file\n\n```\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"https://unpkg.com/checkboxes@1.3.3/dist/css/checkboxes.min.css\"\u003e\n```\n\n✅\n\n### Using NPM\n\nInstall checkboxes package using npm\n\n```\nnpm i checkboxes\n```\n\nthen \\\nadd this line to index.js\n\n```\nrequire('checkboxes');\n```\n\nOR \\\nadd this line to HTML file\n\n```\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"checkboxes/dist/css/checkboxes.min.css\"\u003e\n```\n\n✅\n\n## Usage\n\nAdd \"checkbox\" class to the checkbox input. \\\n(Optionally, add custom styles to the element to change it from the default styles.)\n\ni.e. \\\nfrom\n\n```\n\u003cinput type=\"checkbox\"\u003e\n```\n\nto\n\n```\n\u003cinput type=\"checkbox\" class=\"checkbox\"\nstyle=\"--size: {NUMBER}px; --radius: {NUMBER}px; --bg: #{RRGGBB}; --color: #{RRGGBB}; --time: {NUMBER}s;\" {checked}\u003e\n```\n\ne.g.\n\n```\n\u003cinput type=\"checkbox\" class=\"checkbox\"\nstyle=\"--size: 20px; --radius: 8px; --bg: #000000; --color: #F47A37; --time: 0.4s;\"\u003e\n```\n\nwhere the default style is\n```\ninput[type='checkbox'].checkbox {\n    --size: 12px;\n    --radius: calc(var(--size) / 10);\n    --bg: red;\n    --color: white;\n    --time: 0.5s;\n}\n```\nwhich can be easily overridden.\n\n## Package Structure\n\n```\n.\n|-- LICENSE\n|-- README.md\n|-- dist\n|   `-- css\n|       `-- checkboxes.min.css\n|-- gulpfile.js\n|-- package-lock.json\n|-- package.json\n`-- src\n    |-- checkboxes.html\n    `-- scss\n        `-- checkboxes.scss\n```\n\n## Authors\n\n* **Yifan Ai** - *Initial work*\n\nSee also the list of [contributors](https://github.com/yifaneye/checkboxes/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyifaneye%2Fcheckboxes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyifaneye%2Fcheckboxes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyifaneye%2Fcheckboxes/lists"}