|
| 1 | +import fs from 'node:fs/promises' |
| 2 | +import { getTheme } from './theme.js' |
| 3 | + |
| 4 | +const writeData = { |
| 5 | + "$schema": "https://zed.dev/schema/themes/v0.1.0.json", |
| 6 | + "name": "Github Theme", |
| 7 | + "author": "Pyae Sone Aung", |
| 8 | + "themes": [ |
| 9 | + getTheme({ themeKey: 'light', name: "Github Light", type: 'light' }), |
| 10 | + getTheme({ themeKey: 'light_colorblind', name: "Github Light Colorblind", type: 'light' }), |
| 11 | + getTheme({ themeKey: 'light_high_contrast', name: "Github Light High Contrast", type: 'light' }), |
| 12 | + getTheme({ themeKey: 'light_tritanopia', name: "Github Light Tritanopia", type: 'light' }), |
| 13 | + getTheme({ themeKey: 'dark', name: "Github Dark", type: 'dark' }), |
| 14 | + getTheme({ themeKey: 'dark_colorblind', name: "Github Dark Colorblind", type: 'dark' }), |
| 15 | + getTheme({ themeKey: 'dark_high_contrast', name: "Github Dark High Contrast", type: 'dark' }), |
| 16 | + getTheme({ themeKey: 'dark_tritanopia', name: "Github Dark Tritanopia", type: 'dark' }), |
| 17 | + getTheme({ themeKey: 'dark_dimmed', name: "Github Dark Dimmed", type: 'dark' }), |
| 18 | + ] |
| 19 | +} |
| 20 | + |
| 21 | +await fs.mkdir('./themes', { recursive: true }) |
| 22 | + |
| 23 | +await fs.writeFile('./themes/github_theme.json', JSON.stringify(writeData, null, 2)) |
0 commit comments