{"id":20604398,"url":"https://github.com/heybran/cucumber-components","last_synced_at":"2025-04-15T02:24:07.048Z","repository":{"id":186735270,"uuid":"667043996","full_name":"heybran/cucumber-components","owner":"heybran","description":"A collection of native web components built on top of web standards with a focus on accessibility.","archived":false,"fork":false,"pushed_at":"2024-11-18T03:09:12.000Z","size":1134,"stargazers_count":13,"open_issues_count":21,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T14:11:15.269Z","etag":null,"topics":["components","css","customelements","webcomponents"],"latest_commit_sha":null,"homepage":"https://cucumber-components.netlify.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heybran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-16T13:06:12.000Z","updated_at":"2025-03-12T07:25:13.000Z","dependencies_parsed_at":"2023-10-04T15:15:20.184Z","dependency_job_id":"fc18200e-c02c-42fe-9ca1-f132d854665f","html_url":"https://github.com/heybran/cucumber-components","commit_stats":null,"previous_names":["heybran/breeze-components"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heybran%2Fcucumber-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heybran%2Fcucumber-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heybran%2Fcucumber-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heybran%2Fcucumber-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heybran","download_url":"https://codeload.github.com/heybran/cucumber-components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248992471,"owners_count":21195050,"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":["components","css","customelements","webcomponents"],"created_at":"2024-11-16T09:22:57.431Z","updated_at":"2025-04-15T02:24:07.032Z","avatar_url":"https://github.com/heybran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\u003cimg align=\"center\" src=\"./docs/public/cucumber-components.svg\" alt=\"Cucumber Components Logo\"\u003e\u003c/div\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003eA collection of native web components built on top of web standards with a focus on:\u003c/p\u003e\n\u003cul align=\"center\" style=\"display: flex;\"\u003e\u003cspan role=\"listitem\"\u003e🚹 Accessibility  \u003c/span role=\"listitem\"\u003e\u003cspan\u003e🏗 Easy to use  \u003c/span role=\"listitem\"\u003e\u003cspan\u003e🎨 Easy to style\u003c/span\u003e\u003c/ul\u003e\n\u003cp align=\"center\"\u003eInspired by \u003ca href=\"https://github.com/thepassle/generic-components\" target=\"_blank\"\u003ehttps://github.com/thepassle/generic-components\u003c/a\u003e\u003c/p\u003e\n\n\u003e This project started out as `Breeze Components`, then it was renamed to `Cucumber Components` on Sep 4, 2023. Logo was designed by me with `Inkscape` based on cucumber icons ideas from https://www.flaticon.com/free-icons/cucumber, logo font is `Input Mono`. Reason for renaming is writing `cc-button` is a bit easier than `breeze-button`.\n\n\n## Why build a Web Components collection when there are many battle-tested Web Components collections already?\n\n- A project to dive deep into web accessibility.\n- Helps develop a mindset from both component author and component consumer.\n- A learning experience and an opportunity to gain a deeper understanding of web components best practices.\n- It's fun as you're writing HTML/CSS/JavaScript!\n\n## Why go with vanilla Web Components?\n- Vanilla Web Components can take you all the way if you're just building components collection to be consumed by other projects.\n- A better way to play around web components specs and trying out new ideas.\n- Provide a low barrier for entry, making it easier for developers to contribute to component collections.\n- Minimize the bundled size of each component.\n- \"The beauty of zero-dependencies!\" (#UseThePlatform).\n\n## How to contribute\n#### 1. Fork and Clone This Repo.\n```bash\ngit clone https://github.com/heybran/cucumber-components.git\n```\n#### 2. Install dev dependencies\nWeb Components dev dependencies\n```bash\nnpm install\n```\n\nDocs dependencies\n```bash\ncd docs \u0026\u0026 npm install\n```\n\n#### 3. Creat a component folder at `./src/components`.\nStructure:\n```\n── password-field\n   ├── password-field.css\n   ├── password-field.html\n   └── password-field.js\n```\n\n#### 4. Add new component to DOCS `./docs/src/components/demo/ComponentPreview.svelte`. This is to import the components codes to render them on the documentation.\n```javascript\nconst components = [\n  'button',\n  'icon',\n  'option',\n  'select',\n  'spinner',\n  'switch',\n  'text-field',\n  'textarea',\n  'tooltip',\n  'form-layout',\n  'password-field',\n  // new component folder name here\n];\n```\n#### 5. Create new component documentation page at `./docs/src/pages/components/new-component.md`. (If new component folder name is 'new-component').\n#### 6. Add sidebar link at `./docs/src/config.ts`. \ne.g.\n```javascript\nexport const SIDEBAR = [\n  { text: \"Alert\", link: \"/components/alert\" },\n  { text: \"Button\", link: \"/components/button\" },\n  { text: \"Tooltip\", link: \"/components/tooltip\" },\n  { text: \"Text Field\", link: \"/components/text-field\" },\n  { text: \"Select\", link: \"/components/select\" },\n  { text: \"Switch\", link: \"/components/switch\" },\n  { text: \"Textarea\", link: \"/components/textarea\" },\n  { text: \"Spinner\", link: \"/components/spinner\" },\n  // new component item here\n];\n```\n#### 7. Run DOCS dev server and visit `http://localhost:3000/`\n\nAt the moment, all testing are done manually on the components you add to the documentation page.\n\n```bash\ncd docs \u0026\u0026 npm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheybran%2Fcucumber-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheybran%2Fcucumber-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheybran%2Fcucumber-components/lists"}