{"id":13747723,"url":"https://github.com/electerious/formbase","last_synced_at":"2025-05-16T19:02:09.582Z","repository":{"id":53934129,"uuid":"74889669","full_name":"electerious/formbase","owner":"electerious","description":"Better default styles for common input elements.","archived":false,"fork":false,"pushed_at":"2022-10-01T13:59:26.000Z","size":81,"stargazers_count":569,"open_issues_count":0,"forks_count":36,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-15T00:04:52.246Z","etag":null,"topics":["checkbox","css","design","form","input","radiobox","select","textarea"],"latest_commit_sha":null,"homepage":null,"language":"SCSS","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/electerious.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"electerious","custom":["https://paypal.me/electerious","https://www.buymeacoffee.com/electerious"]}},"created_at":"2016-11-27T13:34:45.000Z","updated_at":"2025-04-07T01:39:06.000Z","dependencies_parsed_at":"2022-08-13T05:00:14.820Z","dependency_job_id":null,"html_url":"https://github.com/electerious/formbase","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Fformbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Fformbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Fformbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Fformbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electerious","download_url":"https://codeload.github.com/electerious/formbase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592367,"owners_count":22097010,"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":["checkbox","css","design","form","input","radiobox","select","textarea"],"created_at":"2024-08-03T06:01:39.531Z","updated_at":"2025-05-16T19:02:09.564Z","avatar_url":"https://github.com/electerious.png","language":"SCSS","readme":"# formbase\n\n[![Dependencies](https://david-dm.org/electerious/formbase.svg)](https://david-dm.org/electerious/formbase.svg#info=dependencies) [![Donate via PayPal](https://img.shields.io/badge/paypal-donate-009cde.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CYKBESW577YWE)\n\nBetter default styles for common input elements.\n\n![formbase](https://s.electerious.com/images/formbase/readme.png)\n\nformbase eliminates cross browser bugs, inconsistencies across systems and applies a beautiful default styling to several input elements.\n\n## Contents\n\n- [Demos](#demos)\n- [Features](#features)\n- [Setup](#setup)\n- [Usage](#usage)\n- [Options](#options)\n- [Semver strategy](#semver-strategy)\n\n## Demos\n\n| Name | Description | Link |\n|:-----------|:------------|:------------|\n| Default | Includes all features. | [Try it on CodePen](http://codepen.io/electerious/pen/ENvEOb) |\n\n## Features\n\n- Works in all modern browsers and IE11\n- No JavaScript, just CSS\n- Works with inputs, textareas, selects, checkboxes and radio buttons\n- Consistent styling across browsers\n- Zero dependencies\n\n## Setup\n\nWe recommend installing formbase using [npm](https://npmjs.com) or [yarn](https://yarnpkg.com).\n\n```sh\nnpm install formbase\n```\n\n```sh\nyarn add formbase\n```\n\nInclude the CSS file in the `head`…\n\n```html\n\u003clink rel=\"stylesheet\" href=\"dist/formbase.min.css\"\u003e\n```\n\n…or import the SASS file directly:\n\n```scss\n@import 'src/styles/main';\n```\n\n## Usage\n\n### Input\n\n```html\n\u003cinput class=\"input\" type=\"text\"\u003e\n```\n\n### Textarea\n\n```html\n\u003ctextarea class=\"input\" rows=\"8\" cols=\"40\"\u003e\u003c/textarea\u003e\n```\n\n### Select\n\n```html\n\u003cselect class=\"select\"\u003e\n\t\u003coption selected disabled\u003e-\u003c/option\u003e\n\t\u003coption value=\"one\"\u003eOne\u003c/option\u003e\n\t\u003coption value=\"two\"\u003eTwo\u003c/option\u003e\n\u003c/select\u003e\n```\n\n### Radio\n\n```html\n\u003cdiv class=\"control\"\u003e\n\t\u003cinput class=\"control__input\" id=\"Radio\" type=\"radio\"\u003e\n\t\u003clabel class=\"control__label\" for=\"Radio\"\u003eRadio\u003c/label\u003e\n\u003c/div\u003e\n```\n\n### Checkbox\n\n```html\n\u003cdiv class=\"control\"\u003e\n\t\u003cinput class=\"control__input\" id=\"checkbox\" type=\"checkbox\"\u003e\n\t\u003clabel class=\"control__label\" for=\"checkbox\"\u003eCheckbox\u003c/label\u003e\n\u003c/div\u003e\n```\n\n## Options\n\nImport `src/styles/main.scss` directly to customize the look of formbase:\n\n```scss\n$formbase__prefix: ''; // Class name prefix\n$formbase__margin: .9rem; // Margin\n$formbase__padding: .6rem; // Padding\n$formbase__select_size: 12px; // Size of the select arrow\n$formbase__control_size: 20px; // Size of the checkbox and radio button (1)\n$formbase__radius: 0; // Input border radius\n$formbase__svg: #000; // Hex color for svgs (2)\n$formbase__color: #000; // Input and label color\n$formbase__placeholder: #999; // Input placeholder color\n$formbase__background: #fff; // Background color\n$formbase__border: #bbb; // Border color\n$formbase__active: #17f; // Active highlight color\n$formbase__shadow: inset 0 1px 3px rgba(0, 0, 0, .05); // Shadow styling\n$formbase__duration: .3s; // Transition duration\n$formbase__timing: ease; // Transition timing\n\n// (1) It's recommended to use an absolute unit (px) for the control size to avoid half pixels. Half pixels can transform the circle of the radio control into an egg.\n// (2) Only works with hex values\n\n@import 'src/styles/main';\n```\n\n## Semver strategy\n\nAny change to CSS rules whatsoever is considered backwards-breaking and will result in a new **major** release. Others changes with no impact on rendering are considered backwards-compatible and will result in a new **patch** release. No changes to CSS rules can add functionality in a backwards-compatible manner, therefore no changes are considered **minor**.","funding_links":["https://github.com/sponsors/electerious","https://paypal.me/electerious","https://www.buymeacoffee.com/electerious","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CYKBESW577YWE"],"categories":["SCSS"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felecterious%2Fformbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felecterious%2Fformbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felecterious%2Fformbase/lists"}