@patreon/studio
Version:
Patreon Studio Design System
17 lines (16 loc) • 691 B
TypeScript
import type { ExtractTokenValue } from './types';
/**
* This hook can be used as an escape hatch when you need
* to get the underlying value of a token.
*
* WARNING! This hook is not SSR safe! There is a chance of hydration
* mismatch when the tokenColorMode is selected by the system preferences
* and dark mode is active. In this case the result will be the
* light mode value until the client side hydration occurs.
*
* Consider using useExtractTokenValuePair or useExtractedTokenCss
* where possible to better support SSR.
*
* @deprecated Use `useExtractTokenValuePair` + `useCurrentColorScheme` instead
*/
export declare function useExtractTokenValue(): ExtractTokenValue;