{"id":19739524,"url":"https://github.com/suitcss/components-button","last_synced_at":"2025-12-12T03:45:14.231Z","repository":{"id":4927045,"uuid":"6083638","full_name":"suitcss/components-button","owner":"suitcss","description":"Component CSS for buttons","archived":false,"fork":false,"pushed_at":"2022-12-06T19:48:54.000Z","size":300,"stargazers_count":52,"open_issues_count":11,"forks_count":13,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-10T08:46:54.325Z","etag":null,"topics":["component-css","css","suit-css","theme"],"latest_commit_sha":null,"homepage":"http://suitcss.github.io/components-button/test/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"RJMetrics/sweet-liberty","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suitcss.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":"2012-10-04T23:40:14.000Z","updated_at":"2023-11-29T12:26:36.000Z","dependencies_parsed_at":"2022-08-30T20:01:03.569Z","dependency_job_id":null,"html_url":"https://github.com/suitcss/components-button","commit_stats":null,"previous_names":["suitcss/button"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suitcss%2Fcomponents-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suitcss","download_url":"https://codeload.github.com/suitcss/components-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251649176,"owners_count":21621488,"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":["component-css","css","suit-css","theme"],"created_at":"2024-11-12T01:17:34.709Z","updated_at":"2025-12-12T03:45:14.202Z","avatar_url":"https://github.com/suitcss.png","language":"HTML","readme":"# SUIT CSS components-button\n\n[![Build Status](https://travis-ci.org/suitcss/components-button.svg?branch=master)](https://travis-ci.org/suitcss/components-button)\n\nA SUIT CSS component that provides a structural UI button template to be\nextended with modifiers.\n\nRead more about [SUIT CSS's design principles](https://github.com/suitcss/suit/).\n\n## Installation\n\n* [npm](http://npmjs.org/): `npm install suitcss-components-button`\n* Download: [zip](https://github.com/suitcss/components-button/releases/latest)\n\n## Available classes\n\n* `Button` - [core] The core button component\n* `is-disabled` - [state] For disabled-state button styles (themes)\n\nN.B. You must also include the `disabled` attribute on `button` elements. For\n`a` elements, you should prevent JavaScript event handlers from firing.\n\n## Configurable variables\n\n* `--Button-border-width`\n* `--Button-border-color`\n* `--Button-color`\n* `--Button-font`\n* `--Button-padding`\n* `--Button-disabled-opacity`\n\n## Use\n\nExamples:\n\n```html\n\u003ca class=\"Button\" href=\"{{url}}\"\u003eSign up\u003c/a\u003e\n\n\u003cbutton class=\"Button Button--default is-disabled\" type=\"button\"\u003eClose\u003c/button\u003e\n```\n\n### Theming / extending\n\nThe CSS is focused on common structural requirements for buttons. You can build\nyour application-specific theme styles in your app. For example:\n\n```css\n@import \"suitcss-components-button\";\n\n/**\n * Modifier: default buttons\n */\n\n.Button--default {\n  background-color: #eee;\n  color: #444;\n  border-color: #d9d9d9 #d9d9d9 #ccc;\n  border-radius: 2px;\n}\n\n.Button--default:hover,\n.Button--default:focus,\n.Button--default:active,\n.Button--default.is-pressed {\n  background-color: #f5f5f5;\n  color: #222;\n  border-color: #c6c6c6 #c6c6c6 #bbb;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n}\n\n.Button--default:focus {\n  border-color: #069;\n  outline: 0;\n}\n\n.Button--default:active,\n.Button--default.is-pressed {\n  background-color: #ccc;\n  box-shadow: inset 0 1px 2px rgba(0,0,0, 0.2);\n}\n\n/**\n * Modifier: large buttons\n */\n\n.Button--large {\n  font-size: 1.5em;\n  padding: 0.75em 1.5em;\n}\n```\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 lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](http://stylelint.io/)\n\n```\nnpm run lint\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\n* Firefox\n* Opera\n* Safari\n* Internet Explorer 9+\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuitcss%2Fcomponents-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuitcss%2Fcomponents-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuitcss%2Fcomponents-button/lists"}