You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`theme`|[`Theme`](#theme)| The current theme object, which contains the values for various design tokens such as colors, typography, and spacing. |
24
-
|`colorScheme`|[`ColorScheme`](#colorscheme)| The current color scheme of the application, which can be either 'light' or 'dark'. |
25
-
|`platform`|[`Platform`](#platform)| The current platform of the application, which can be either 'onDesktop' or 'onMobile'. |
26
-
|`setColorScheme`|`(colorScheme: `[`ColorSchemeInput`](#colorschemeinput)`) => void`| A function that allows you to set the color scheme of the application. |
21
+
```ts
22
+
typeThemeContext= {
23
+
/**
24
+
* The current theme object, which contains the values for various design tokens such as colors, typography, and spacing.
25
+
*/
26
+
theme:Theme;
27
+
/**
28
+
* The current color scheme of the application, which can be either 'light' or 'dark'.
29
+
*/
30
+
colorScheme:ColorSchemeNames;
31
+
/**
32
+
* The current platform of the application, which can be either 'onDesktop' or 'onMobile'.
33
+
*/
34
+
platform:Platform;
35
+
/**
36
+
* A function that allows you to set the color scheme of the application.
The current color scheme of the application. Can be either `'dark'` or `'light'`.
84
98
If color scheme is set to 'system' using `setColorScheme`, the colorScheme property will return `'dark'` or `'light'` based on the user's system preferences.
0 commit comments