> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# text-stroke-color

APISummary
## Introduction

`text-stroke-color` specifies the stroke color of characters of text.

## Example

**This is an example below: css-api**

**Entry:** `src/text-stroke-color`
**Bundle:** `dist/text-stroke-color.lynx.bundle`

```tsx
import { root } from "@lynx-js/react";
import "./index.scss";

const TextStokeColor = () => {
  const textStyleRed = {
    textStrokeWidth: "1px",
    textStrokeColor: "#ff0000",
  };
  const textStyleGreen = {
    textStrokeWidth: "1px",
    textStrokeColor: "green",
  };

  return (
    <scroll-view className="root" scroll-orientation="vertical">
      {/* @ts-expect-error TODO(types): Support textStroke in `@lynx-js/types` */}
      <text style={textStyleRed}>The stroke of this text is red</text>
      {/* @ts-expect-error TODO(types): Support textStroke in `@lynx-js/types` */}
      <text style={textStyleGreen}>The stroke of this text is green</text>
    </scroll-view>
  );
};

root.render(<TextStokeColor />);

```

v0.11.0



## Syntax

```css
text-stroke-color: red;
text-stroke-color: #e08ab4;
text-stroke-color: rgb(200, 100, 0);
```

### Values

- [`<color>`](/next/api/css/properties/color.md)

  The color of the stroke.

## Formal definition

| Initial value | empty value |
| Applies to | all elements |
| Inherited | no |
| Animatable | no |


## Formal syntax

```css
text-stroke-color = <color>
```

## Compatibility

**Compatibility Table**

**Query:** `css.properties.text-stroke-color`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/196-text-stroke-color.json) · [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke-color)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| text-stroke-color | Yes (1.0) | Yes (3.4) | Yes (1.0) | Yes (1.0) | Yes (1.0) | Yes |

**`text-stroke-color`**

**Specifications:**

