Skip to content

Commit 3234f00

Browse files
committed
Add a theme to Icon
1 parent 69b393f commit 3234f00

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

docs/specification/draft/schema.mdx

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,15 @@ export interface Icon {
319319
* If not provided, the client should assume that the icon can be used at any size.
320320
*/
321321
sizes?: string[];
322+
323+
/**
324+
* Optional specifier for the theme this icon is designed for. `light` indicates
325+
* the icon is designed to be used with a light background, and `dark` indicates
326+
* the icon is designed to be used with a dark background.
327+
*
328+
* If not provided, the client should assume the icon can be used with any theme.
329+
*/
330+
theme?: 'light' | 'dark';
322331
}
323332

324333
/**

0 commit comments

Comments
 (0)