diff --git a/packages/editor/src/lib/editor/shapes/text/TextShapeUtil.tsx b/packages/editor/src/lib/editor/shapes/text/TextShapeUtil.tsx index 5b270b1e5..f6b28d8d6 100644 --- a/packages/editor/src/lib/editor/shapes/text/TextShapeUtil.tsx +++ b/packages/editor/src/lib/editor/shapes/text/TextShapeUtil.tsx @@ -63,9 +63,10 @@ export class TextShapeUtil extends ShapeUtil { const { id, type, - props: { text }, + props: { text, color }, } = shape + const theme = getDefaultColorTheme(this.editor) const { width, height } = this.getMinDimensions(shape) const { @@ -95,6 +96,7 @@ export class TextShapeUtil extends ShapeUtil { transformOrigin: 'top left', width: Math.max(1, width), height: Math.max(FONT_SIZES[shape.props.size] * TEXT_PROPS.lineHeight, height), + color: theme[color].solid, }} >