# @types/is-color

> TypeScript definitions for is-color

Latest version **1.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/is-color
pnpm add @types/is-color
yarn add @types/is-color
bun add @types/is-color
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-11-07 |
| First published | 2018-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/is-color
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-color
- npm.io page: https://npm.io/package/@types/is-color

## Recent versions

- 1.0.3 (latest) — 2023-11-07
- 1.0.0 (ts2.0) — 2018-03-27
- 1.0.2 — 2023-10-18
- 1.0.1 — 2023-09-26

## README

# Installation
> `npm install --save @types/is-color`

# Summary
This package contains type definitions for is-color (https://github.com/morishitter/is-color).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-color.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-color/index.d.ts)
````ts
declare function isColor(str: string): boolean;

declare namespace isColor {
    function isRgb(str: string): boolean;
    function isRgba(str: string): boolean;
    function isHsl(str: string): boolean;
    function isHsla(str: string): boolean;
    function isHex(str: string): boolean;
    function isKeyword(str: string): boolean;
    function isInherit(str: string): str is "inherit";
    function isCurrentColor(str: string): str is "currentColor" | "currentcolor";
    function isTransparent(str: string): str is "transparent";
}

export = isColor;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Vitor Luiz Cavalcanti](https://github.com/VitorLuizC).

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