UNPKG

react-query

Version:

Hooks for managing, caching and syncing asynchronous and remote data in React

37 lines (36 loc) 1.16 kB
import React from 'react'; export declare const defaultTheme: { readonly background: "#0b1521"; readonly backgroundAlt: "#132337"; readonly foreground: "white"; readonly gray: "#3f4e60"; readonly grayAlt: "#222e3e"; readonly inputBackgroundColor: "#fff"; readonly inputTextColor: "#000"; readonly success: "#00ab52"; readonly danger: "#ff0085"; readonly active: "#006bff"; readonly paused: "#8c49eb"; readonly warning: "#ffb200"; }; export declare type Theme = typeof defaultTheme; interface ProviderProps { theme: Theme; children?: React.ReactNode; } export declare function ThemeProvider({ theme, ...rest }: ProviderProps): JSX.Element; export declare function useTheme(): { readonly background: "#0b1521"; readonly backgroundAlt: "#132337"; readonly foreground: "white"; readonly gray: "#3f4e60"; readonly grayAlt: "#222e3e"; readonly inputBackgroundColor: "#fff"; readonly inputTextColor: "#000"; readonly success: "#00ab52"; readonly danger: "#ff0085"; readonly active: "#006bff"; readonly paused: "#8c49eb"; readonly warning: "#ffb200"; }; export {};