An open API service indexing awesome lists of open source software.

https://github.com/maxam2017/form.css

A classless CSS library for form
https://github.com/maxam2017/form.css

classless-css

Last synced: 30 days ago
JSON representation

A classless CSS library for form

Awesome Lists containing this project

README

          


Form.css ⚡️




## Overview

> This project is still under construction 🚧

A CSS library for form fields. It's simple and **classless**.

[Demo 👨🏻‍💻](https://maxam2017.github.io/form.css/)

## Installation

```html

```

## Documentation

### Theme

#### Scheme

- Support two common color scheme: `light` and `dark`.
- By default, we use [`prefers-color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme).
- Simply put attribute `data-theme` on `
```

#### Customize your own theme

We provide some css-variables to customize theme color.

| css-variable | default value(light) | default value(dark) |
| ---------------------------- | :------------------: | :-----------------: |
| `--primary-color` | `51, 151, 207` | `51, 151, 207` |
| `--default-text-color` | `0, 0, 0` | `255, 255, 255` |
| `--default-background-color` | `255, 255, 255` | `0, 0, 0` |

> For easily modify theme color without compiling by sass processor, we only put `r,b,a` parameters into css-variable

### Components

#### Normal Input

- Ex.
```html

```

#### Switch

- material-ui style
- simply add attribute `data-type="switch"` on checkbox input
- Ex.
```html

```

#### Checkbox

- material-ui style
- Ex.
```html

```

## License

Distributed under the MIT License. See `LICENSE` for more information.