Skip to content

Commit c75e758

Browse files
committed
add some clarification to types
1 parent eedfaf3 commit c75e758

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

site/src/theme/index.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@ import type { ExternalImageModeStyles } from "./externalImages";
88
import light from "./light";
99
import type { Roles } from "./roles";
1010

11-
export interface Theme extends MuiTheme {
12-
experimental: NewTheme;
11+
export interface Theme extends Omit<MuiTheme, "palette"> {
12+
/** @deprecated use `theme.roles` instead */
13+
palette: MuiTheme["palette"];
14+
15+
/** Sets of colors that can be used based on the role that a UI element serves
16+
* for the user.
17+
* Does it signify an error? a warning? that something is currently running? etc.
18+
*/
1319
roles: Roles;
20+
21+
/** Theme properties that we're testing out but haven't committed to. */
22+
experimental: NewTheme;
1423
monaco: monaco.editor.IStandaloneThemeData;
1524
externalImages: ExternalImageModeStyles;
1625
}

0 commit comments

Comments
 (0)