TextLayer.fill
The solid fill paint applied to the text.
TextLayer.fill property
The solid fill paint applied to the text.
Signature:
readonly fill: SolidPaint | undefined;Remarks
Text layers support at most one fill. Unlike shape layers, text fills are solid only — gradient fills are not supported. Use TextLayer.createFill() to create or update the fill.
Example
const fill = textLayer.createFill({
type: "SOLID",
color: { r: 255, g: 0, b: 0 },
});
fill.color.staticValue = { r: 0, g: 0, b: 255 };
textLayer.fill?.remove();Last updated: October 8, 2026 at 10:45 AMEdit this page