UNPKG

@material-ui/core

Version:

Quickly build beautiful React apps. Material-UI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

13 lines (11 loc) 385 B
import { useTheme as useThemeSystem } from '@material-ui/system'; import * as React from 'react'; import defaultTheme from './defaultTheme'; export default function useTheme() { const theme = useThemeSystem(defaultTheme); if (process.env.NODE_ENV !== 'production') { // eslint-disable-next-line react-hooks/rules-of-hooks React.useDebugValue(theme); } return theme; }