{"id":22072777,"url":"https://github.com/dunks1980/cookiemunch","last_synced_at":"2025-07-24T11:30:51.200Z","repository":{"id":54396489,"uuid":"336535878","full_name":"Dunks1980/Cookiemunch","owner":"Dunks1980","description":"A simple, customizable, minimal setup cookie plugin that allows your users to select which cookies to accept or decline.","archived":false,"fork":false,"pushed_at":"2021-12-02T23:38:26.000Z","size":223,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-30T09:46:24.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Dunks1980.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-06T12:45:51.000Z","updated_at":"2024-08-28T21:32:21.000Z","dependencies_parsed_at":"2022-08-13T14:20:53.755Z","dependency_job_id":null,"html_url":"https://github.com/Dunks1980/Cookiemunch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunks1980%2FCookiemunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunks1980%2FCookiemunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunks1980%2FCookiemunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunks1980%2FCookiemunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dunks1980","download_url":"https://codeload.github.com/Dunks1980/Cookiemunch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227432294,"owners_count":17775894,"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-11-30T21:14:30.708Z","updated_at":"2024-11-30T21:14:31.202Z","avatar_url":"https://github.com/Dunks1980.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/dunks1980"],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://unpkg.com/@dunks1980/cookiemunch/cookiemunch.svg?v=2\" width=\"40\"\u003e Cookiemunch\n\nIts a simple, customizable, minimal setup cookie plugin that allows your users to select which cookies to accept or decline. Go to [Cookiemunch](https://cookiemunch.dunks1980.com/) for documentation and demos.\n\u003cbr /\u003e\n\nIf you wish to support this project please [buy me a coffee.](https://www.buymeacoffee.com/dunks1980) ☕\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n## Installation:\n\n\u003cbr /\u003e\n\nDownload the ZIP or:\n```\ngit clone https://github.com/Dunks1980/Cookiemunch.git\n```\nThen install dev dependencies:\n```\nnpm install\n```\n\u003cbr /\u003e\n\n## Usage:\n\u003cbr /\u003e\n\nTo start a local server with live-reload and make changes to the custom theme:\n```\nnpm run custom\n```\n\nChanges to the cookies objects and settings can be made in: serve/src_custom.html\u003cbr\u003e\nThese are the custom theme files located in src_custom/:\n\n```\nsrc_custom/js/cookiemunch_custom.js\n\nsrc_custom/scss/cookiemunch_custom.scss\n\nsrc_custom/scss/cookiemunch_common_custom.scss\n\nsrc_custom/images/cookiemunch_custom.svg\n```\n\u003cbr /\u003e\n\nFrom line 15 of src_custom/scss/cookiemunch_custom.scss, these are the main colour controls. Making a change to just $main-body-bg and $main-body-text can drastically change its appearance.\n```scss\n// override theme:\n$main-body-bg: #1b1d35;\n$main-body-text: rgb(184, 178, 235);\n$main-body-border-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.4);\n$btn-border: 0px solid #fff;\n$btn-text: #fff;\n$btn-bg-decline: rgb(197, 49, 49);\n$btn-bg-accept_select: #4b4b4b;\n$btn-bg-accept_selected: rgb(49, 91, 197);\n$btn-bg-accept_all: rgb(36, 146, 64);\n$switch-on-bg: $btn-bg-accept_selected; \n$mix-btn-bg-with: $main-body-text;\n$mix-btn-bg-with-percent: 65%;\n```\nAll colour variables are in the file src_custom/scss/cookiemunch_custom.scss but if you need further changes, they can be made in src_custom/scss/cookiemunch_common_custom.scss.\u003cbr /\u003e\n\nFor the cookie image 3 options are included, If you choose to use your own design its ideal ratio is square 1:1, any type of image can be used but for best results .svg or .png with transparency are recommended.\u003cbr /\u003e\n\nFor any js customizations the file is src_custom/js/cookiemunch_custom.js, if you add anything cool please send me a pull request and I will consider adding it to the main branch.\n\n\u003cbr /\u003e\n\nTo start a local server and view/edit the default themes:\n```\nnpm run default\n```\n\n\u003cbr /\u003e\n\n## Building for production:\n\u003cbr /\u003e\n\n```\nnpm run build\n```\nThen answer 1 for custom (this will compile only the \\*_custom\\* files), or 2 for default (this will build the bundled default themes and not custom). Once complete the auto pre-fixed and minifed files will be available in ./dist. \u003cbr/\u003e\n\nCustom:\n```\ncookiemunch.min.js\ncookiemunch_custom.min.css\ncookiemunch_custom.svg\n```\nDefault:\n```\ncookiemunch_flat_dark.min.css\ncookiemunch_flat_dark.svg\ncookiemunch_flat_light.min.css\ncookiemunch_flat_light.svg\ncookiemunch.min.css\ncookiemunch.min.js\ncookiemunch.svg\n```\n\nTo test the build ./dist:\n```\nnpm run dist\n```\n\u003cbr /\u003e\n\nMore information on configuring Cookiemunch can be found \u003ca href=\"https://cookiemunch.dunks1980.com/\"\u003ehere\u003c/a\u003e. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunks1980%2Fcookiemunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunks1980%2Fcookiemunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunks1980%2Fcookiemunch/lists"}