added theme and gradients and stuff

This commit is contained in:
David Meincke
2022-03-24 23:00:10 +01:00
parent 5fb596daae
commit cda1b5c972
17 changed files with 225 additions and 51 deletions
+17
View File
@@ -0,0 +1,17 @@
import themeLess from '!!raw-loader!./theme.less';
export function getLessThemeObj(): any {
var result: any = {};
var lines = themeLess.split(";");
for (let i = 0; i < lines.length; i++) {
const line = lines[i].trim();
var keyValPair = line.split(':');
if (keyValPair[0] && keyValPair[1])
result[keyValPair[0].trim()] = keyValPair[1].trim();
}
return result;
}