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

45 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-05-17 15:36:57 +02:00
const fs = require("fs").promises;
const getTheme = require("./classic/theme");
2021-02-02 14:32:30 +01:00
const getDotcomTheme = require("./dotcom/theme");
2021-02-02 14:32:30 +01:00
// Classic
const classicLight = getTheme({
style: "light",
name: "GitHub Light",
});
2021-02-02 14:32:30 +01:00
const classicDark = getTheme({
style: "dark",
name: "GitHub Dark",
});
2020-05-17 15:36:57 +02:00
2021-02-02 14:32:30 +01:00
// Dotcom
const dotcomLight = getDotcomTheme({
theme: "light",
name: "GitHub.com Light",
});
const dotcomDark = getDotcomTheme({
theme: "dark",
name: "GitHub.com Dark",
});
2021-03-16 20:38:21 +01:00
const dotcomDimmed = getDotcomTheme({
theme: "dimmed",
name: "Github.com Dimmed"
})
2021-02-02 14:32:30 +01:00
// Write themes
fs.mkdir("./themes", { recursive: true })
.then(() => Promise.all([
2021-02-02 14:32:30 +01:00
fs.writeFile("./themes/classic-light.json", JSON.stringify(classicLight, null, 2)),
fs.writeFile("./themes/classic-dark.json", JSON.stringify(classicDark, null, 2)),
fs.writeFile("./themes/dotcom-light.json", JSON.stringify(dotcomLight, null, 2)),
fs.writeFile("./themes/dotcom-dark.json", JSON.stringify(dotcomDark, null, 2)),
2021-03-16 20:38:21 +01:00
fs.writeFile("./themes/dotcom-dimmed.json", JSON.stringify(dotcomDimmed, null, 2))
]))
.catch(() => process.exit(1))