Skip to content

Commit

Permalink
feat: add types
Browse files Browse the repository at this point in the history
  • Loading branch information
fisenkodv committed Aug 7, 2023
1 parent b255c2c commit 558e678
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scripts/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,36 @@ const DEFAULT_COLOR_SCHEMES_MANAGER_URL = "https://raw.githubusercontent.com/Jet

// https://github.com/JetBrains/colorSchemeTool

interface Option {
name: string;
value: OptionValue[];
}

interface OptionValue {
name: OptionValueName;
value?: string;
deuteranopia?: string;
protanopia?: string;
}

enum OptionValueName {
FOREGROUND,
BACKGROUND,
FONT_TYPE,
EFFECT_COLOR,
EFFECT_TYPE
}

interface Scheme {
name: string;
colors: OptionValue[];
attributes: Option[];
}

function loadScheme(xml: string, name: string): Scheme {}

function map(scheme: Scheme) {}

async function main() {
const response = await axios.get(DEFAULT_COLOR_SCHEMES_MANAGER_URL);
const xml = response.data;
Expand Down

0 comments on commit 558e678

Please sign in to comment.