mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 03:59:55 +00:00
6734a0e69d
Co-Authored-By: Nate Butler <1714999+iamnbutler@users.noreply.github.com>
17 lines
563 B
TypeScript
17 lines
563 B
TypeScript
import * as fs from "fs";
|
|
import * as path from "path";
|
|
import dark from "./themes/dark";
|
|
import light from "./themes/light";
|
|
import app from "./styleTree/app";
|
|
import decamelizeTree from "./utils/decamelizeTree";
|
|
|
|
const themes = [dark, light];
|
|
for (let theme of themes) {
|
|
let styleTree = decamelizeTree(app(theme));
|
|
let styleTreeJSON = JSON.stringify(styleTree, null, 2);
|
|
let outPath = path.resolve(
|
|
`${__dirname}/../crates/zed/assets/themes/${theme.name}.json`
|
|
);
|
|
fs.writeFileSync(outPath, styleTreeJSON);
|
|
console.log(`Generated ${outPath}`);
|
|
}
|