useTheme

Theme hook

Examples

Basic Usage

This hook allows you to get the current prism-ui theme, including the primary color

// import { useTheme } from '@octanner/prism-core/hooks';
() => {
const theme = useTheme();
console.log(theme.palette.primary.main);
// open console to see results
return null;
};