mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-23 18:32:39 +00:00
16 lines
464 B
JavaScript
16 lines
464 B
JavaScript
import { themeFromSourceColor, argbFromHex, hexFromArgb } from "@material/material-color-utilities";
|
|
const themeBase = "#6D81C7";
|
|
const themeSuccessBase = "#00ff00";
|
|
const theme = themeFromSourceColor(argbFromHex(themeBase), [
|
|
{ name: "success", value: argbFromHex(themeSuccessBase), blend: true }
|
|
]);
|
|
const themeColor = hexFromArgb(theme.schemes.dark.background);
|
|
const load = async () => ({
|
|
themeSuccessBase,
|
|
themeBase,
|
|
themeColor
|
|
});
|
|
export {
|
|
load
|
|
};
|