tumble-yellow-dark-vscode/src/index.js

18 lines
430 B
JavaScript
Raw Normal View History

2020-05-17 15:36:57 +02:00
const fs = require("fs").promises;
const getTheme = require("./theme");
const lightTheme = getTheme({
style: "light",
name: "GitHub Light",
});
const darkTheme = getTheme({
style: "dark",
name: "GitHub Dark",
});
2020-05-17 15:36:57 +02:00
2020-05-19 18:54:28 +02:00
fs.mkdir("./themes", { recursive: true }).then(() => {
2020-05-17 15:36:57 +02:00
fs.writeFile("./themes/light.json", JSON.stringify(lightTheme, null, 2))
fs.writeFile("./themes/dark.json", JSON.stringify(darkTheme, null, 2))
})