UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

19 lines (18 loc) 703 B
import { ColorMode, ColorModeWithAuto, Theme } from "./ThemeProvider.js"; import React from "react"; //#region src/useTheme.d.ts declare function useTheme(): { theme?: Theme; colorScheme?: string; colorMode?: ColorModeWithAuto; resolvedColorMode?: ColorMode; resolvedColorScheme?: string; dayScheme?: string; nightScheme?: string; setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>; setDayScheme: React.Dispatch<React.SetStateAction<string>>; setNightScheme: React.Dispatch<React.SetStateAction<string>>; }; declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string; //#endregion export { useColorSchemeVar, useTheme };