T
CreateStyles
The style factory: turns a spec (or a function returning one) into a theme-aware hook, so call it
inside a component body: const styles = useStyles();.
type CreateStyles = <T extends StyleSheetSpec>(styles: StyleSheetSpecOrFactory<T>) => () => ResolvedStyles<T>