-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"languages": { | ||
"TypeScript": { | ||
"language_servers": ["deno", "!typescript-language-server", "!eslint"] | ||
}, | ||
"TSX": { | ||
"language_servers": ["deno", "!typescript-language-server", "!eslint"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "Kleur", | ||
"foreground": "#dadbf8", | ||
"background": "#060613", | ||
"cursorColor": "#dadbf8", | ||
"selectionBackground": "#141327", | ||
"black": "#060613", | ||
"red": "#e6443d", | ||
"green": "#11d770", | ||
"yellow": "#f1a400", | ||
"blue": "#00c0ff", | ||
"purple": "#a89dff", | ||
"cyan": "#00dad0", | ||
"white": "#dadbf8", | ||
"brightBlack": "#2b2b41", | ||
"brightRed": "#e6443d", | ||
"brightGreen": "#11d770", | ||
"brightYellow": "#f1a400", | ||
"brightBlue": "#00c0ff", | ||
"brightPurple": "#a89dff", | ||
"brightCyan": "#00dad0", | ||
"brightWhite": "#a89dff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from "./css.ts"; | ||
export * from "./base16.ts"; | ||
export * from "./hex.ts"; | ||
export * from "./vscode.ts"; | ||
export * from "./vscode.ts"; | ||
export * from "./windowsTerminal.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
import { render } from 'mustache' | ||
import { render } from "mustache"; | ||
import { HumanPalette } from "../palletes.ts"; | ||
import { toHex } from "./hex.ts"; | ||
|
||
export const toVscodeTheme = async (pallete: HumanPalette) => { | ||
const hex = toHex(pallete) | ||
const template = await Deno.readTextFile('templates/vscode.mustache') | ||
const theme = Object.fromEntries( | ||
Object.entries(hex).map(([key, value]) => [key + '-hex', value.replace?.("#", "")]) | ||
) | ||
const hex = toHex(pallete); | ||
const template = await Deno.readTextFile("templates/vscode.mustache"); | ||
const theme = Object.fromEntries( | ||
Object.entries(hex).map(([key, value]) => [ | ||
key + "-hex", | ||
value.replace?.("#", ""), | ||
]), | ||
); | ||
|
||
return render(template, { | ||
'scheme-name': "Kleur", | ||
...theme | ||
}) | ||
} | ||
return render(template, { | ||
"scheme-name": "Kleur", | ||
...theme, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { render } from "mustache"; | ||
import { HumanPalette } from "../palletes.ts"; | ||
import { toHex } from "./hex.ts"; | ||
|
||
export const toWindowsTerminalTheme = async (pallete: HumanPalette) => { | ||
const hex = toHex(pallete); | ||
const template = await Deno.readTextFile( | ||
"templates/windowsTerminal.mustache", | ||
); | ||
const theme = Object.fromEntries( | ||
Object.entries(hex).map(([key, value]) => [ | ||
key + "-hex", | ||
value.replace?.("#", ""), | ||
]), | ||
); | ||
|
||
return render(template, { | ||
"scheme-name": "Kleur", | ||
...theme, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "{{scheme-name}}", | ||
"foreground": "#{{base05-hex}}", | ||
"background": "#{{base00-hex}}", | ||
"cursorColor": "#{{base05-hex}}", | ||
"selectionBackground": "#{{base02-hex}}", | ||
"black": "#{{base00-hex}}", | ||
"red": "#{{red-hex}}", | ||
"green": "#{{green-hex}}", | ||
"yellow": "#{{orange-hex}}", | ||
"blue": "#{{blue-hex}}", | ||
"purple": "#{{mauve-hex}}", | ||
"cyan": "#{{teal-hex}}", | ||
"white": "#{{base05-hex}}", | ||
"brightBlack": "#{{base03-hex}}", | ||
"brightRed": "#{{red-hex}}", | ||
"brightGreen": "#{{green-hex}}", | ||
"brightYellow": "#{{orange-hex}}", | ||
"brightBlue": "#{{blue-hex}}", | ||
"brightPurple": "#{{mauve-hex}}", | ||
"brightCyan": "#{{teal-hex}}", | ||
"brightWhite": "#{{base07-hex}}" | ||
} |