rowActionSwatch
An action's swatch: its `accent` (`red` is `danger`), else its tone's (`danger` when destructive, else `tint`).
packages/ui-native/src/tokens/row-action-tones.ts
@marktiderman/genesis-ui-nativeimport { rowActionSwatch } from "@marktiderman/genesis-ui-native";react-docgen-typescript.rowActionSwatch
An action's swatch: its `accent` (`red` is `danger`), else its tone's (`danger` when destructive, else `tint`).
| Prop | Type | Default | Description |
|---|---|---|---|
| accent | enum | — | A system color by name, over `tone` (see {@link RowActionAccent}). |
| destructive | boolean | — | Destructive (delete, leave): `danger` unless a `tone` or `accent` says otherwise. |
| tone | enum | — | What it means; its color comes from that. Default `danger` when destructive, else `tint`. |
onRowActionColor
The text and icon color on an action of this swatch. - **System colors** (blue, green, orange, purple, indigo, gray): white, as iOS draws them; black on yellow. - **`tint` and `danger`** sit on the app's own colors (`background`), so they take what reads on that color: white or black by contrast when it's a hex color, else `foreground` (the theme's `onPrimary` or `destructiveForeground`, which the caller passes), else white (iOS's systemRed, as Mail draws Delete). `useRowActionColors` passes them.
No declared props.
useRowActionColors
The colors of a row's actions on the phone, for the current theme: `tint` is the app's primary and `onPrimary` (useThemeRoles: the brand's native primary under a GenesisThemeProvider), `danger` the destructive role and its foreground, a system color its iOS color (with the Android fallbacks) and white, or black on yellow.
No declared props.
readableOn
White or black, whichever reads better on `background`, else undefined. It reads hex (`#rgb`, `#rrggbb`, with or without alpha), `rgb()`/`rgba()` and `hsl()`/`hsla()` (alpha is ignored: the color as if opaque); a PlatformColor or a named color gives undefined.
No declared props.
ROW_ACTION_SYSTEM_COLORS
Each system color's iOS name, and its fallback where there is no `PlatformColor`. iOS keeps its system colors with white on them, as Mail and Messages draw them: that is iOS's own look, and not every pair reaches WCAG AA (white on systemGreen or systemOrange is about 2.2:1). The fallbacks are darker shades that carry white at 4.5:1 or more.
No declared props.
TONE_SWATCHES
The system color each semantic tone draws, on iOS as in Mail: success green, warning orange, info blue, neutral gray.
No declared props.
ON_ROW_ACTION
Text and icons on a system color: white, as iOS draws them, except on yellow, where only black reads.
No declared props.
ROW_PILL
The pill a row becomes while its round actions are open (iOS 26 Messages): systemGray5.
No declared props.