# webkit-autofill

> Mixins to webkit autofill styling

Latest version **1.0.0** (published 2016-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install webkit-autofill
pnpm add webkit-autofill
yarn add webkit-autofill
bun add webkit-autofill
```

## 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 | 1.0.0 |
| Published | 2016-09-12 |
| First published | 2016-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | irekrog |
| Maintainers | irekrog |
| Keywords | autofill, autocomplete, styles, chrome, safari, webkit |

## Links

- npm: https://www.npmjs.com/package/webkit-autofill
- Repository: https://github.com/irekrog/webkit-autofill
- Issues: https://github.com/irekrog/webkit-autofill/issues
- npm.io page: https://npm.io/package/webkit-autofill

## Recent versions

- 1.0.0 (latest) — 2016-09-12

## README

# webkit-autofill

A simple scss file with mixins to styling autofill. More info about autofill in WebKit browsers: [CSS-Tricks](https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/)

## Install
In your project install a package:
```
npm install webkit-autofill
```

## Usage
First, import autofill.scss file from node_modules to your .scss / .sass file in project. For example:
```
@import '../../node_modules/webkit-autofill/autofill'
```

Then you can use mixins from autofill.scss. For example:

```
input:-webkit-autofill {
  @include backgroundColorAutoFill(#2196F3);
}
```

## Examples (examples for .scss files)

A default style for autofill in Chrome with examples login data:

![Default style](http://irekrog.pl/files/images/default.png)

### disableAutoFill
![Default style](http://irekrog.pl/files/images/disableAutoFill.png)

```
input:-webkit-autofill {
  @include disableAutoFill;
}
```

### backgroundColorAutoFill(color)
![Default style](http://irekrog.pl/files/images/backgroundColor.png)

```
input:-webkit-autofill {
  ...
  @include backgroundColorAutoFill(#2196F3);
}
```

### textColorAutoFill(color)
![Default style](http://irekrog.pl/files/images/textColor.png)

```
input:-webkit-autofill {
  ...
  @include textColorAutoFill(#FFFFFF);
}
```

### hoverBackgroundColorAutoFill(color)
![Default style](http://irekrog.pl/files/images/hoverBackground.png)

```
input:-webkit-autofill {
  ...
  @include hoverBackgroundColorAutoFill(#FF5722);
}
```

### hoverTextColorAutoFill(color)
![Default style](http://irekrog.pl/files/images/hoverTextColor.png)

```
input:-webkit-autofill {
  ...
  @include hoverTextColorAutoFill(#212121);
}
```

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