In react-jss, you can pass an optional type-argument to createUseStyles (e.g. createUseStyles<MyTheme>()), which will use MyTheme instead of DefaultTheme.
However, this option is not available for react-jss's useTheme, the type definitions for which come from this package.
I've changed it so you can supply an optional type argument like this:
const { ... } = useTheme<MyTheme>();
which will override the DefaultTheme defined here:
In react-jss, you can pass an optional type-argument to createUseStyles (e.g.
createUseStyles<MyTheme>()
), which will useMyTheme
instead ofDefaultTheme
.However, this option is not available for react-jss's
useTheme
, the type definitions for which come from this package.I've changed it so you can supply an optional type argument like this:
which will override the
DefaultTheme
defined here:https://github.com/cssinjs/theming/blob/dabb2cb/src/index.d.ts#L3