@serendie/ui
Version:
Adaptive UI component library as part of Serendie Design System by Mitsubishi Electric
16 lines (15 loc) • 455 B
TypeScript
/**
* OSのカラースキーム設定を検出するフック
* prefers-color-schemeメディアクエリを監視し、変更を検知する
*
* @returns 'light' | 'dark' - 現在のシステムカラースキーム
*
* @example
* ```tsx
* function Component() {
* const systemScheme = useSystemColorScheme();
* // systemScheme は 'light' または 'dark'
* }
* ```
*/
export declare function useSystemColorScheme(): "light" | "dark";