UNPKG

@blockstack/ui

Version:

Blockstack UI components built using React and styled-components with styled-system.

16 lines (11 loc) 364 B
import { useContext } from 'react'; import { ThemeContext } from '../theme-provider/index.esm.js'; var useTheme = function useTheme() { var theme = useContext(ThemeContext); if (theme === undefined) { throw new Error('useTheme must be used within a ThemeProvider'); } return theme; }; export { useTheme }; //# sourceMappingURL=use-theme.esm.js.map