From 1d425471342ceb414aa47eaca0173d3f35014633 Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Mon, 15 Dec 2025 11:03:03 -0500 Subject: [PATCH] Add theme property to Icon schema (#1290) Co-authored-by: Konstantin Konstantinov --- src/types.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index beb5fd92..a5a324e0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -279,7 +279,15 @@ export const IconSchema = z.object({ * * If not provided, the client should assume that the icon can be used at any size. */ - sizes: z.array(z.string()).optional() + sizes: z.array(z.string()).optional(), + /** + * Optional specifier for the theme this icon is designed for. `light` indicates + * the icon is designed to be used with a light background, and `dark` indicates + * the icon is designed to be used with a dark background. + * + * If not provided, the client should assume the icon can be used with any theme. + */ + theme: z.enum(['light', 'dark']).optional() }); /**