diff --git a/packages/design-system/src/types/icon.ts b/packages/design-system/src/types/icon.ts index b16116e4c4..e2d7a36634 100644 --- a/packages/design-system/src/types/icon.ts +++ b/packages/design-system/src/types/icon.ts @@ -1,8 +1,9 @@ +import type { TextColor } from 'n8n-design-system/types/text'; + const ICON_SIZE = ['xsmall', 'small', 'medium', 'large'] as const; export type IconSize = (typeof ICON_SIZE)[number]; -const ICON_COLOR = ['primary', 'danger', 'success', 'warning', 'text-base'] as const; -export type IconColor = (typeof ICON_COLOR)[number]; +export type IconColor = TextColor; const ICON_ORIENTATION = ['horizontal', 'vertical'] as const; export type IconOrientation = (typeof ICON_ORIENTATION)[number];