mirror of
https://github.com/Tyriar/vscode-theme-generator.git
synced 2025-12-07 09:36:11 -08:00
Start implementing fallback colors
This commit is contained in:
43
src/index.ts
43
src/index.ts
@@ -1,50 +1,11 @@
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import { IColorSet } from './themeGenerator'
|
||||
import { IColorSet } from './interfaces'
|
||||
import { VscodeThemeGenerator } from './vscodeThemeGenerator'
|
||||
|
||||
const colorSet1: IColorSet = {
|
||||
syntax: {
|
||||
identifier: '#ffffff',
|
||||
boolean: '#be84ff',
|
||||
string: '#87d75f',
|
||||
number: '#ffcc66',
|
||||
keyword: '#ff8f7e',
|
||||
functionCall: '#cae682',
|
||||
storage: '#88b8f6',
|
||||
comment: '#989898',
|
||||
class: '#cae682',
|
||||
type: '#88b8f6'
|
||||
},
|
||||
ui: {
|
||||
background: '#151515'
|
||||
}
|
||||
};
|
||||
|
||||
const glacierColorSet: IColorSet = {
|
||||
syntax: {
|
||||
identifier: '#d73c4d', // Should be bold in Glacier
|
||||
// boolean: '#',
|
||||
string: '#ffe792',
|
||||
// number: '#',
|
||||
keyword: '#d7503c',
|
||||
// functionCall: '#',
|
||||
storage: '#3cadd7',
|
||||
comment: '#515c68',
|
||||
// class: '#',
|
||||
// type: '#',
|
||||
modifier: '#3cadd7'
|
||||
},
|
||||
ui: {
|
||||
background: '#0e151b',
|
||||
foreground: '#efefef',
|
||||
cursor: '#ffe792'
|
||||
}
|
||||
};
|
||||
|
||||
export function generateTheme(themeName: string, colorSet: IColorSet, outputFile: string) {
|
||||
const themeJson = new VscodeThemeGenerator().generateTheme(themeName, colorSet);
|
||||
fs.writeFileSync(outputFile, themeJson);
|
||||
}
|
||||
|
||||
export { IColorSet } from './themeGenerator';
|
||||
export { IColorSet } from './interfaces';
|
||||
|
||||
Reference in New Issue
Block a user