@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
15 lines (14 loc) • 519 B
JavaScript
import { keys } from '@mantine/core';
export const plasmaCSSVariablesResolver = (theme)=>{
const result = {
variables: {},
dark: {},
light: {}
};
keys(theme.colors).forEach((color)=>{
result.light[`--mantine-color-${color}-light`] = theme.colors[color][color === 'gray' ? 1 : 0];
result.light[`--mantine-color-${color}-light-hover`] = theme.colors[color][color === 'gray' ? 2 : 1];
});
return result;
};
//# sourceMappingURL=plasmaCSSVariablesResolver.js.map