'init'
This commit is contained in:
8
app/hooks/useMainColor.ts
Normal file
8
app/hooks/useMainColor.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { useMantineTheme } from "@mantine/core";
|
||||
import { useColorScheme } from "@mantine/hooks";
|
||||
|
||||
export function useMainColor () {
|
||||
const colorScheme = useColorScheme();
|
||||
const theme = useMantineTheme();
|
||||
return colorScheme == "light" ? theme.colors.gray[1] : theme.colors.dark[8];
|
||||
}
|
||||
Reference in New Issue
Block a user