UNPKG

@patreon/studio

Version:

Patreon Studio Design System

8 lines (7 loc) 324 B
import type { ColorScheme } from '~/types/color-scheme'; import type { AnyToken } from '~/types/tokens'; /** * This hook can be used as an escape hatch when you need * to get the light and dark value pair of a token. */ export declare function useExtractTokenValuePair(): <T = string>(token: AnyToken) => ColorScheme<T>;