1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-09 16:21:51 +00:00
tobspr_shapez.io/src/js/game/theme.js
EmeraldBlock 24ceb6664d ES modules and config refactor
- 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
2023-03-04 00:46:55 -06:00

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];
}