mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: Move Mantine Theme Override to own file
This commit is contained in:
parent
9a914250a0
commit
5b20766ea3
@ -16,6 +16,7 @@ import { oceanBlueColors } from 'theme/colors/oceanBlue';
|
||||
|
||||
import '@fontsource/inter/variable.css';
|
||||
import { MantineProvider } from '@mantine/core';
|
||||
import { mantineTheme } from 'mantine-theme/theme';
|
||||
import 'overlayscrollbars/overlayscrollbars.css';
|
||||
import 'theme/css/overlayscrollbars.css';
|
||||
|
||||
@ -52,11 +53,7 @@ function ThemeLocaleProvider({ children }: ThemeLocaleProviderProps) {
|
||||
}, [direction]);
|
||||
|
||||
return (
|
||||
<MantineProvider
|
||||
withGlobalStyles
|
||||
withNormalizeCSS
|
||||
theme={{ colorScheme: 'dark' }}
|
||||
>
|
||||
<MantineProvider withGlobalStyles withNormalizeCSS theme={mantineTheme}>
|
||||
<ChakraProvider theme={theme} colorModeManager={manager}>
|
||||
{children}
|
||||
</ChakraProvider>
|
||||
|
21
invokeai/frontend/web/src/mantine-theme/theme.ts
Normal file
21
invokeai/frontend/web/src/mantine-theme/theme.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { MantineThemeOverride } from '@mantine/core';
|
||||
|
||||
export const mantineTheme: MantineThemeOverride = {
|
||||
colorScheme: 'dark',
|
||||
colors: {
|
||||
ocean: [
|
||||
'#dcf5ff',
|
||||
'#afddff',
|
||||
'#80c4fd',
|
||||
'#50acf9',
|
||||
'#2295f6',
|
||||
'#097bdd',
|
||||
'#0060ad',
|
||||
'#00447d',
|
||||
'#00294e',
|
||||
'#000f20',
|
||||
],
|
||||
},
|
||||
primaryColor: 'ocean',
|
||||
primaryShade: 6,
|
||||
};
|
Loading…
Reference in New Issue
Block a user