UNPKG

@patreon/studio

Version:

Patreon Studio Design System

13 lines (12 loc) 610 B
import React from 'react'; import type { ChildrenProps } from '~/types/component'; import type { TokenColorMode, TokenScreenMode } from '~/types/token-modes'; interface TokenModeContextData { rootColorMode: TokenColorMode; rootScreenMode: TokenScreenMode; currentColorMode: TokenColorMode; currentScreenMode: TokenScreenMode; } export declare function useTokenModes(): TokenModeContextData; export declare function TokenModeProvider({ rootColorMode, rootScreenMode, currentColorMode, currentScreenMode, children, }: Partial<TokenModeContextData> & ChildrenProps): React.JSX.Element; export {};