{"id":15697454,"url":"https://github.com/giuseppeg/suitcss-components-form","last_synced_at":"2026-03-01T22:04:53.052Z","repository":{"id":57374253,"uuid":"48620719","full_name":"giuseppeg/suitcss-components-form","owner":"giuseppeg","description":"A CSS form component.","archived":false,"fork":false,"pushed_at":"2016-09-27T08:57:44.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-05T01:19:11.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://giuseppeg.github.io/suitcss-components-form/test","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/giuseppeg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-26T19:00:58.000Z","updated_at":"2025-07-17T18:28:25.000Z","dependencies_parsed_at":"2022-09-17T16:51:10.112Z","dependency_job_id":null,"html_url":"https://github.com/giuseppeg/suitcss-components-form","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/giuseppeg/suitcss-components-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppeg%2Fsuitcss-components-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppeg%2Fsuitcss-components-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppeg%2Fsuitcss-components-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppeg%2Fsuitcss-components-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giuseppeg","download_url":"https://codeload.github.com/giuseppeg/suitcss-components-form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppeg%2Fsuitcss-components-form/sbom","scorecard":{"id":428575,"data":{"date":"2025-08-11","repo":{"name":"github.com/giuseppeg/suitcss-components-form","commit":"d7c1cf4ecb0160e339691a56895aa7993131ff90"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 1/6 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T02:48:17.160Z","repository_id":57374253,"created_at":"2025-08-19T02:48:17.160Z","updated_at":"2025-08-19T02:48:17.160Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29986242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-03T19:19:59.458Z","updated_at":"2026-03-01T22:04:53.036Z","avatar_url":"https://github.com/giuseppeg.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SUIT CSS components-form\n\n[![Build Status](https://secure.travis-ci.org/giuseppeg/suitcss-components-form.png?branch=master)](http://travis-ci.org/giuseppeg/suitcss-components-form)\n\nComponent CSS for forms. Provides general styling to build hightly composable and consistent forms.\n\nRead more about [SUIT CSS](https://github.com/suitcss/suit/).\n\n## Installation\n\n* [npm](https://www.npmjs.org/package/suitcss-components-form): `npm install suitcss-components-form`\n* Download: [zip](https://github.com/giuseppeg/suitcss-components-form/releases/latest)\n\n## Features\n\n* Full-width forms\n* Inter-fields vertical spacing\n* Fields adapt to the dimensions of an ancestral context\n* Simple Custom Select\n* Basic validation states\n\n## Available classes\n\n* `Form` core component\n* `Form--spaced` adds spacing between form fields\n* `Form-field` a form field container\n* `Form-field--checkbox` checkbox input modifier\n* `Form-field--radio` radio input modifier\n* `Form-label` form label text\n* `Form-input` the actual form input\n* `Form-message` an (optional) form message\n\n## Use\n\nA form can have any number of fields. Each form field must contain a single\nform input, label and optionally a message.\n\n```html\n\u003cform class=\"Form\" action=\"/\" method=\"GET\"\u003e\n  \u003cdiv class=\"Form-field\"\u003e\n    \u003clabel class=\"Form-label\" for=\"field\"\u003eField\u003c/label\u003e\n    \u003cinput class=\"Form-input\" type=\"text\" id=\"field\"\u003e\n    \u003cp class=\"Form-message\"\u003eHello there\u003c/p\u003e\n  \u003c/div\u003e\n\u003c/form\u003e\n```\n\n### Special form fields\n\nBasic styles for more complex form fields are included in this component.\n\n#### Buttons\n\nButtons are not styled. You are free to style buttons as you please or use an existing component like [suitcss-button](https://github.com/suitcss/components-button).\n\nSUIT CSS Form however provides two classes:\n\n* `.Form-button` – Attaches to a nested component\n* `.Form-wrapButton` – Wraps a nested component\n\nBoth make buttons [full-width](https://github.com/suitcss/suit/blob/master/doc/components.md#adapting-to-ancestral-context) and consistent with the `Form` styles by tweaking padding, borders and border radii only.\n\nRead more about how to [style dependencies](https://github.com/suitcss/suit/blob/master/doc/components.md#styling-dependencies).\n\n\n```html\n\u003cform class=\"Form\" action=\"/\" method=\"GET\"\u003e\n  \u003cdiv class=\"Form-field\"\u003e\n    \u003clabel class=\"Form-label\" for=\"field\"\u003eField\u003c/label\u003e\n    \u003cinput class=\"Form-input\" type=\"text\" id=\"field\"\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"Form-field\"\u003e\n    \u003c!-- .Form-button attaches to the .Button component --\u003e\n    \u003cbutton class=\"Form-button Button\"\u003e\n      Submit\n    \u003c/button\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"Form-field u-inlineBlock\"\u003e\n    \u003c!-- .Form-wrapButton wraps the .Button component --\u003e\n    \u003cspan class=\"Form-wrapButton\"\u003e\n      \u003cbutton class=\"Button\"\u003eSubmit\u003c/button\u003e\n    \u003c/span\u003e\n\n  \u003c/div\u003e\n\u003c/form\u003e\n```\n\nTip: Use an utility class e.g. `u-inlineBlock` when you don't want full-width buttons.\n\n#### Checkbox and Radio inputs\n\n* `Form-field--checkbox`\n* `Form-field--radio`\n\nCheckbox and radio inputs are `Form-field` modifiers.\u003cbr\u003e\nUse one `Form-field` per `Form-input`.\n\n```html\n\u003cform class=\"Form\" action=\"/\" method=\"GET\"\u003e\n  \u003cdiv class=\"Form-field Form-field--checkbox\"\u003e\n    \u003cinput class=\"Form-input\" type=\"checkbox\" id=\"check-field\"\u003e\n    \u003clabel class=\"Form-label\" for=\"check-field\"\u003eField\u003c/label\u003e\n  \u003c/div\u003e\n  \u003clabel class=\"Form-field Form-field--radio\"\u003e\n    \u003cinput class=\"Form-input\" type=\"radio\"\u003e\n    \u003cspan class=\"Form-label\"\u003eField\u003c/span\u003e\n  \u003c/label\u003e\n\u003c/form\u003e\n```\n\n#### Custom Select\n\nModern browsers that support the CSS3 `appearance` property\nget basic custom select styles without any additional class\nneeded:\n\n* Padding, border and border radii match other inputs styles.\n* Custom arrow.\n\n### Horizontal forms\n\nUse a layout component like [suitcss-grid](https://github.com/suitcss/components-grid).\n\n### Vertical spacing between Form-field\n\n`Form--spaced` adds uniform vertical space between `Form-field`.\n\n```html\n\u003cform class=\"Form Form--spaced\" action=\"/\" method=\"GET\"\u003e\n  \u003cdiv class=\"Form-field\"\u003e\n    \u003clabel class=\"Form-label\" for=\"field-regular\"\u003eField\u003c/label\u003e\n    \u003cinput class=\"Form-input\" type=\"text\" id=\"field-regular\"\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"Form-field Form-field--radio\"\u003e\n    \u003cinput class=\"Form-input\" type=\"radio\" id=\"radio-field\"\u003e\n    \u003clabel class=\"Form-label\" for=\"radio-field\"\u003eField\u003c/label\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"Form-field Form-field--radio\"\u003e\n    \u003cinput class=\"Form-input\" type=\"radio\" id=\"radio-field1\"\u003e\n    \u003clabel class=\"Form-label\" for=\"radio-field1\"\u003eField\u003c/label\u003e\n  \u003c/div\u003e\n\u003c/form\u003e\n```\n\nN.B. Checkboxes or radio inputs are grouped and the space between each\nis half of the regular `Form-field` margin.\n\n### Basic Form validation styles\n\nBasic styles for **visual** validation state classes for the `Form-field`:\n\n* `is-valid`\n* `is-invalid`\n* `is-warning`\n\n\n## Configurable properties\n\nProperties names are self explainatory.\n\n#### .Form-label\n\n* `--Form-label-color`\n* `--Form-label-font-size`\n* `--Form-label-font-weight`\n\n#### .Form-input\n\n* `--Form-input-border-color`\n* `--Form-input-border-radius`\n* `--Form-input-color`\n* `--Form-input-font-size`\n* `--Form-input-padding`\n\n#### checkbox and radio\n\n* `--Form-checkradio-gutter` vertical space between the form input and the label.\n\n#### Custom \u0026lt;select\u0026gt; arrow\n\n* `--Form-select-arrow` `url(imageUrl|base64 encoded image)` – must include `url()`\n* `--Form-select-arrow-width`\n\n#### .Form-message\n\n* `--Form-message-color`\n* `--Form-message-font-size`\n\n#### .Form--spaced\n\n* `--Form--spaced-margin`\n\n### .Form-field's State\n\n#### .Form-field.is-valid\n\n* `--Form-state-valid-border-color`\n* `--Form-state-valid-label-color`\n* `--Form-state-valid-message-color`\n\n#### .Form-field.is-invalid\n\n* `--Form-state-invalid-border-color`\n* `--Form-state-invalid-label-color`\n* `--Form-state-invalid-message-color`\n\n#### .Form-field.is-warning\n\n* `--Form-state-warning-border-color`\n* `--Form-state-warning-label-color`\n* `--Form-state-warning-message-color`\n\n## Testing\n\nInstall [Node](http://nodejs.org) (comes with npm).\n\n```\nnpm install\n```\n\nTo generate a build:\n\n```\nnpm run build\n```\n\nTo generate the testing build:\n\n```\nnpm run build-test\n```\n\nTo watch the files for making changes to test:\n\n```\nnpm run watch\n```\n\nBasic visual tests are in `test/index.html`.\n\n## Browser support\n\n* Google Chrome (latest)\n* Opera (latest)\n* Firefox (latest)\n* Safari 5.1+\n* Internet Explorer 8+\n* Android 2.2+\n* iOS 5.1+\n* Windows Phone 8.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppeg%2Fsuitcss-components-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiuseppeg%2Fsuitcss-components-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppeg%2Fsuitcss-components-form/lists"}