mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-13 17:05:47 +01:00
✨ Add about modal
This commit is contained in:
12
src/components/layout/useGradient.tsx
Normal file
12
src/components/layout/useGradient.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { MantineGradient } from '@mantine/core';
|
||||
import { useColorTheme } from '../../tools/color';
|
||||
|
||||
export const usePrimaryGradient = (): MantineGradient => {
|
||||
const { primaryColor, secondaryColor } = useColorTheme();
|
||||
|
||||
return {
|
||||
from: primaryColor,
|
||||
to: secondaryColor,
|
||||
deg: 145,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user