mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
32 lines
747 B
TypeScript
32 lines
747 B
TypeScript
import { MantineThemeOverride } from '@mantine/core';
|
|
import { useMemo } from 'react';
|
|
|
|
export const useMantineTheme = () => {
|
|
const mantineTheme: MantineThemeOverride = useMemo(
|
|
() => ({
|
|
colorScheme: 'dark',
|
|
fontFamily: `'Inter Variable', sans-serif`,
|
|
components: {
|
|
ScrollArea: {
|
|
defaultProps: {
|
|
scrollbarSize: 10,
|
|
},
|
|
styles: {
|
|
scrollbar: {
|
|
'&:hover': {
|
|
backgroundColor: 'var(--invokeai-colors-baseAlpha-300)',
|
|
},
|
|
},
|
|
thumb: {
|
|
backgroundColor: 'var(--invokeai-colors-baseAlpha-300)',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
[]
|
|
);
|
|
|
|
return mantineTheme;
|
|
};
|