# basscss-color-forms

> Form color styles module for Basscss

Latest version **3.0.2** (published 2016-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install basscss-color-forms
pnpm add basscss-color-forms
yarn add basscss-color-forms
bun add basscss-color-forms
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2016-02-06 |
| First published | 2014-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 157 |
| Author | Brent Jackson |
| Maintainers | jxnblk |
| Keywords | css, oocss, basscss |

## Links

- npm: https://www.npmjs.com/package/basscss-color-forms
- Repository: https://github.com/basscss/addons
- Issues: https://github.com/basscss/addons/issues
- npm.io page: https://npm.io/package/basscss-color-forms

## Dependencies (1)

- [basscss-defaults](https://npm.io/package/basscss-defaults.md) ^2.0.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 3.0.2 (latest) — 2016-02-06
- 3.0.0-beta.2 (beta) — 2015-06-26
- 3.0.1 — 2016-02-01
- 3.0.0 — 2015-06-26
- 3.0.0-beta.1 — 2015-06-26
- 3.0.0-beta.0 — 2015-05-24
- 2.2.1 — 2015-05-21
- 2.2.0 — 2015-05-20
- 2.1.1 — 2015-05-09
- 2.1.0 — 2015-05-09
- 2.0.3 — 2015-04-11
- 2.0.2 — 2015-04-11
- 2.0.1 — 2015-04-10
- 1.1.2 — 2015-04-09
- 1.1.1 — 2015-03-19
- … 5 more at https://npm.io/package/basscss-color-forms/versions

## README

This module sets basic color styles for form elements on a light background.

## Input Fields

To style the color, background, and border styles for form fields, use the `.field` style.
This style works on text inputs, selects, and textareas.

```html
<label>Input</label>
<input type="text" class="block col-12 field">
<label>Select</label>
<select class="block col-12 field">
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
</select>
<label>Textarea</label>
<textarea class="block col-12 field"></textarea>
```

The `.field` style includes states for disabled and read-only fields, as well as success, warning, and error states.

```html
<label>Normal</label>
<input type="text" class="block col-12 field">
<label>Disabled</label>
<input type="text" class="block col-12 field" disabled value="This is disabled">
<label>Read Only</label>
<input type="text" class="block col-12 field" readonly value="This is read-only">
<label>Required</label>
<input type="text" class="block col-12 field" required>
<label>.is-focused</label>
<input type="text" class="block col-12 field is-focused">
<label>.is-disabled</label>
<input type="text" class="block col-12 field is-disabled">
<label>.is-read-only</label>
<input type="text" class="block col-12 field is-read-only">
<label>Success</label>
<input type="text" class="block col-12 field is-success">
<label>Warning</label>
<input type="text" class="block col-12 field is-warning">
<label>Error</label>
<input type="text" class="block col-12 field is-error">
```

---
_Source: https://npm.io/package/basscss-color-forms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
