mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-13 17:05:47 +01:00
14 lines
303 B
TypeScript
14 lines
303 B
TypeScript
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,
|
|
};
|
|
};
|