# @remirror/extension-text-color

> Wraps text with a styled span using the color css property. The name of the wrapper tag should be configurable.

Latest version **3.0.2** (published 2025-08-02) · MIT license · 64.8K weekly downloads

## Install

```sh
npm install @remirror/extension-text-color
pnpm add @remirror/extension-text-color
yarn add @remirror/extension-text-color
bun add @remirror/extension-text-color
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2025-08-02 |
| First published | 2021-02-03 |
| Weekly downloads | 64.8K |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 110 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3036 |
| Maintainers | ifiokjr, ocavue |
| Keywords | remirror, extension |

## Links

- npm: https://www.npmjs.com/package/@remirror/extension-text-color
- Repository: https://github.com/remirror/remirror
- Homepage: https://github.com/remirror/remirror/tree/HEAD/packages/remirror__extension-text-color
- Issues: https://github.com/remirror/remirror/issues
- npm.io page: https://npm.io/package/@remirror/extension-text-color

## Dependencies (5)

- [color2k](https://npm.io/package/color2k.md) ^2.0.2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.27.0
- [@remirror/core](https://npm.io/package/@remirror/core.md) 3.0.2
- [@remirror/theme](https://npm.io/package/@remirror/theme.md) 3.0.0
- [@remirror/messages](https://npm.io/package/@remirror/messages.md) 3.0.0

## Recent versions

- 3.0.2 (latest) — 2025-08-02
- 3.0.0-beta.8 (beta) — 2024-07-22
- 0.0.0-pr2271.2 (pr2271) — 2024-07-18
- 0.0.0-pr2222.1 (pr2222) — 2023-12-12
- 0.0.0-pr2223.1 (pr2223) — 2023-12-12
- 0.0.0-pr2169.2 (pr2169) — 2023-11-06
- 0.0.0-pr2166.4 (pr2166) — 2023-10-06
- 0.0.0-pr2128.4 (pr2128) — 2023-07-26
- 0.0.0-pr2118.1 (pr2118) — 2023-07-13
- 0.0.0-pr2100.1 (pr2100) — 2023-06-28
- 0.0.0-pr1966.1 (pr1966) — 2022-12-26
- 0.0.0-pr1948.1 (pr1948) — 2022-11-25
- 0.0.0-pr1942.1 (pr1942) — 2022-11-21
- 0.0.0-pr1938.1 (pr1938) — 2022-11-15
- 0.0.0-pr1922.2 (pr1922) — 2022-10-26
- … 222 more at https://npm.io/package/@remirror/extension-text-color/versions

## README

# @remirror/extension-text-color

> **Wraps text with a styled span using the color css property. The name of the wrapper tag should be configurable.**

[![Version][version]][npm] [![Weekly Downloads][downloads-badge]][npm] [![Bundled size][size-badge]][size] [![Typed Codebase][typescript]](#) [![MIT License][license]](#)

[version]: https://flat.badgen.net/npm/v/@remirror/extension-text-color
[npm]: https://npmjs.com/package/@remirror/extension-text-color
[license]: https://flat.badgen.net/badge/license/MIT/purple
[size]: https://bundlephobia.com/result?p=@remirror/extension-text-color
[size-badge]: https://flat.badgen.net/bundlephobia/minzip/@remirror/extension-text-color
[typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label
[downloads-badge]: https://badgen.net/npm/dw/@remirror/extension-text-color/red?icon=npm

## Installation

```bash
# yarn
yarn add @remirror/extension-text-color

# pnpm
pnpm add @remirror/extension-text-color

# npm
npm install @remirror/extension-text-color
```

## Usage

The following code creates an instance of this extension.

```ts
import { TextColorExtension } from '@remirror/extension-text-color';

const extension = new TextColorExtension();
```

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