mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-09 16:21:51 +00:00
- switches to ES modules in gulp and src - uses dengr's webpack configs and package.json, with modifications - removes gulp/package.json - removes babel stuff - removes gulp-load-plugins, instead importing gulp plugins manually - removes unused and trivial packages - upgrades packages - uses path/posix, for gulp - removes __dirname in favor of relative urls
14 lines
227 B
JavaScript
14 lines
227 B
JavaScript
import dark from "./themes/dark.json";
|
|
import light from "./themes/light.json";
|
|
|
|
export const THEMES = {
|
|
dark,
|
|
light,
|
|
};
|
|
|
|
export let THEME = THEMES.light;
|
|
|
|
export function applyGameTheme(id) {
|
|
THEME = THEMES[id];
|
|
}
|